------------------------------
Kavitha Natarajan
Rocket Software Forum Member
------------------------------
Hi Kavitha,
See the code attached.
& this one too
Hi Kavitha,
See the code attached.
& this one too
Hi Yvon,
Thanks a lot for your response and code. I did try your code snippet and was able to see the written event, through event viewer.
I now have the need to send the local system logged in user information to the event. Is there any means we can capture the Windows logged in user through code?
Thanks & Regards,
Kavitha.
Hi Yvon,
Thanks a lot for your response and code. I did try your code snippet and was able to see the written event, through event viewer.
I now have the need to send the local system logged in user information to the event. Is there any means we can capture the Windows logged in user through code?
Thanks & Regards,
Kavitha.
Demo attached
LookupAccountNameA function (winbase.h) - Win32 apps | Microsoft Learn to get the SID
Demo attached
LookupAccountNameA function (winbase.h) - Win32 apps | Microsoft Learn to get the SID


Hi Yvon!
Thank you so much, I tried the user name part of the code and was able to pull the logged in user information to the event viewer. I have more details to populate in the event viewer as the project develops. All information you have provided has been super helpful.
Appreciate all your support!
Thanks,
Kavitha.





Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
OKSorry, our virus scanner detected that this file isn't safe to download.
OK