fguihen Posted May 5, 2004 Posted May 5, 2004 i am writing a program that will allow me to shut down my pc after a specified length of time ( as i listen to my music whale i am falling asleep and want the pc to turn off automatically) . i know there are many ways to do this out there but i wana make my own. im going to use the "ExitWindowsEx function from the Win32 api. there are various constants such as EWX_LOGOFF, EWX_POWEROFF etc that i need to use but i dont know what values are needed in them. can anyone tell me where to get the data contained in theese constants, or how to include a headder file of c++ in c#. hope you all know what i mean. thanks Quote
Leaders dynamic_sysop Posted May 5, 2004 Leaders Posted May 5, 2004 those 2 are ... private const int EWX_LOGOFF = 0; private const int EWX_POWEROFF = 0x8; Quote
fguihen Posted May 6, 2004 Author Posted May 6, 2004 Quote those 2 are ... private const int EWX_LOGOFF = 0; private const int EWX_POWEROFF = 0x8; thats all great to get thoose, but where did you get them from?if i need different ones in future, where do i look ? Quote
Recommended Posts