Links

  • Home
  • About

ntcoder

all about technology

Follow Us

Search

Posts tagged with 'Get last login time of a user'

 

How to get last login and logoff time of a user?

Posted on June 18, 2008 by Nibu Thomas 2 Comments

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…

Share this:

  • Tweet
  • Email
  • Share on Tumblr
  • Pocket
  • Print

Categories: COM

Tags: Active directory services, COM, Get last login time of a user, Get last logoff time of a user, get_LastFailedLogin, get_LastLogin, get_LastLogoff, IADsUser, Last login, Last logoff

 

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 63 other subscribers

Calendar

February 2019
M T W T F S S
« Aug    
 123
45678910
11121314151617
18192021222324
25262728  

Tags

.net ActiveX ATL C++ CComboBox CDialog Clipboard COM Console API Console Application cout CreateProcess CString Debug Debugger Debugging dumpbin Feature pack GDI GetProcAddress GetSystemMenu Interview questions MVP MVP Summit MVP Summit 2008 Nibu Nibu babu thomas Nibu Thomas Ray Ozzie Redmond SetBkMode SetWindowPos ShGetFileInfo Steve Ballmer stl Summit VC8 vector Visual studio Visual Studio 2013 VS2005 VS2008 windbg Windows Windows Phone

Categories

Nibu Thomas

Nibu Thomas

I work as a Support Escalation Engineer at Microsoft Support, supporting C#, VB.net, Visual C++, Visual Studio, MFC, STL, Compilers etc. Troubleshoot crashes, hangs, and a variety of customer issues when using Microsoft Products listed above.

  • What’s new in Visual Studio 2012 Solution Explorer
  • MFC Feature Pack Tutorial – Part 2 – CMFCPropertySheet
  • MFC Feature Pack Tutorial – Part 3 – CMFCPropertyGridCtrl
  • MFC Feature Pack Tutorial – Part 1 – Getting started
  • About Nibu

Powered by WordPress and HeatMap AdAptive Theme

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.