Click here to Skip to main content
15,559,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Windows 10 - find last logon time in C++ ?? Pin
Derell Licht5-Jun-21 18:06
professionalDerell Licht5-Jun-21 18:06 
AnswerRe: Windows 10 - find last logon time in C++ ?? Pin
Derell Licht5-Jun-21 18:11
professionalDerell Licht5-Jun-21 18:11 
AnswerRe: Windows 10 - find last logon time in C++ ?? Pin
Randor 6-Jun-21 6:21
professional Randor 6-Jun-21 6:21 
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Derell Licht6-Jun-21 7:27
professionalDerell Licht6-Jun-21 7:27 
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Randor 6-Jun-21 8:26
professional Randor 6-Jun-21 8:26 
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Derell Licht6-Jun-21 8:44
professionalDerell Licht6-Jun-21 8:44 
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Randor 6-Jun-21 9:11
professional Randor 6-Jun-21 9:11 
AnswerRe: Windows 10 - find last logon time in C++ ?? Pin
Derell Licht6-Jun-21 16:20
professionalDerell Licht6-Jun-21 16:20 
Well, since this works so nicely, I thought I would include the complete, working demo function here... however, apparently, I cannot actually attach a file in a message, so I will just link to the file in my Github repository, in the program that it will be used in.

derbar/login_lsa.cpp at master · DerellLicht/derbar · GitHub[^]

Be sure to enable the STAND_ALONE macro to build stand-alone utility, either in the code, or by putting the macro on the command line, like this:
g++ -Wall -O2 -DSTAND_ALONE=1 login_lsa.cpp -o login_lsa.exe -lsecur32

It works very nicely!!
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Richard MacCutchan6-Jun-21 22:16
mveRichard MacCutchan6-Jun-21 22:16 
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Derell Licht7-Jun-21 4:14
professionalDerell Licht7-Jun-21 4:14 
GeneralRe: Windows 10 - find last logon time in C++ ?? Pin
Maximilien7-Jun-21 10:15
Maximilien7-Jun-21 10:15 
Questionurgent question Pin
MAHMOUD ALI Jun20215-Jun-21 2:03
MAHMOUD ALI Jun20215-Jun-21 2:03 
AnswerRe: urgent question Pin
Victor Nijegorodov5-Jun-21 2:24
Victor Nijegorodov5-Jun-21 2:24 
GeneralRe: urgent question Pin
MAHMOUD ALI Jun20215-Jun-21 2:37
MAHMOUD ALI Jun20215-Jun-21 2:37 
GeneralRe: urgent question Pin
Victor Nijegorodov5-Jun-21 2:41
Victor Nijegorodov5-Jun-21 2:41 
AnswerRe: urgent question Pin
Richard MacCutchan5-Jun-21 3:20
mveRichard MacCutchan5-Jun-21 3:20 
AnswerRe: urgent question Pin
David Crow5-Jun-21 5:03
David Crow5-Jun-21 5:03 
AnswerRe: urgent question Pin
Dave Kreskowiak5-Jun-21 5:22
mveDave Kreskowiak5-Jun-21 5:22 
AnswerRe: urgent question Pin
enhzflep10-Jun-21 22:13
enhzflep10-Jun-21 22:13 
AnswerRe: urgent question Pin
SeeSharp211-Jun-21 2:23
SeeSharp211-Jun-21 2:23 
QuestionC++/MFC Parameterizing a Recordset (ODBC), having problem with passing UNICODE parameter Value Pin
Zouaoui Billel31-May-21 9:05
Zouaoui Billel31-May-21 9:05 
AnswerRe: C++/MFC Parameterizing a Recordset (ODBC), having problem with passing UNICODE parameter Value Pin
Richard MacCutchan31-May-21 10:11
mveRichard MacCutchan31-May-21 10:11 
AnswerRe: C++/MFC Parameterizing a Recordset (ODBC), having problem with passing UNICODE parameter Value Pin
Dave Kreskowiak31-May-21 12:51
mveDave Kreskowiak31-May-21 12:51 
Questionterminology refresher class ?? Pin
Member 1496877127-May-21 12:04
Member 1496877127-May-21 12:04 
AnswerRe: terminology refresher class ?? Pin
Mircea Neacsu27-May-21 16:24
Mircea Neacsu27-May-21 16:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.