Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
I am new to MFC and i'm developing an application in which i need to get current system statics i.e login, logout, idle ,system lock-unlock time etc.
how i can acheive system lock-unlock and idle time in mfc.
Please Help......
Posted
Updated 23-Jun-10 0:27am
v2

Hi,
1.Login Session can be taken by WMI > Win32_LogonSession >StartTime

http://msdn.microsoft.com/en-us/library/aa394189(VS.85).aspx[^]

2.Win32_NetworkLoginProfile Class
http://msdn.microsoft.com/en-us/library/aa394221(VS.85).aspx[^]

MSDN provides a lot of samples for WMI using C++

BIJU
 
Share this answer
 
Thanks BIJU for your response.....
I have tried on the link that you have specified but i want some more information because i'm new to MFC.
So, Pls give me more info. or any demo application....
 
Share this answer
 
v3
Hi Gurmeet,
from MSDN, you can view the C++ example of WMI.
Just copy and paste.. nothing more is needed..(i think so..:cool:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900