Network interfaces. QNetworkInterface, no need for Windows specific coding. If you do not wish to use the Qt class then the correct way to do it is the Windows API calls GetInterfaceInfo and/or GetAdaptersInfo (NOT reading the registry which is annoyingly variable across Win versions).
On Windows the last login time can be had from Windows command line:
You could get at this with QProcess (parse the net user command output in C++).Qt Code:
rem For a local user C:\> net user dinesh123 | findstr /B /C:"Last logon" rem or if a domain is involved C:\> net user dinesh123 /domain | findstr /B /C:"Last logon"To copy to clipboard, switch view to plain text mode
Bookmarks