How can i get date valu from ADSI with c++ code
-
Hi, i am not able to get Date value from ADSI directory VARIANT var; hr = ADsOpenObject(path,NULL,NULL,0, IID_IADsUser, id**)&pUsr); HRESULT h1= pUsr->Get(L"pwdLastSet", &var); INT8 bb=var.date; This code is not working pwdLastSet type is integer8 .it stores date value how can i get date value from adsi with c++ code please help anyone
-
Hi, i am not able to get Date value from ADSI directory VARIANT var; hr = ADsOpenObject(path,NULL,NULL,0, IID_IADsUser, id**)&pUsr); HRESULT h1= pUsr->Get(L"pwdLastSet", &var); INT8 bb=var.date; This code is not working pwdLastSet type is integer8 .it stores date value how can i get date value from adsi with c++ code please help anyone
-
Check your return codes to see if any function calls have failed and find out why. Single stepping through your code with the debugger should quickly show what is happening.
Use the best guess
Hi Richard, Thanks for reply .The method is return success var.date value returns 2.613867737909e-316#DEN . i am not able to understand this value.
-
Hi Richard, Thanks for reply .The method is return success var.date value returns 2.613867737909e-316#DEN . i am not able to understand this value.