I would suggest you IADsUser COM interface. There are two functions exposed by this interface which gives us last login and logoff time! get_LastLogin get_LastLogoff Here is some sample code which uses above functions to retrieve a users last login and logoff time… [sourcecode language=’cpp’]#pragma comment( lib, “ActiveDS.lib” ) // For ADsGetObject #pragma comment( lib, […]
Continue reading…