How to use ExitWindowsEx function in C#
-
Please show me how to call ExitWindowsEx function in user32.dll in .NET.I've tried this: [DllImport("user32.dll")] private static extern int ExitWindowsEx(int dwReserved, int uReturnCode ); public static void Main() { ExitWindowsEx(0,0) } This previous code can log off the computer but when i change it to ExitWindowsEx(1,0) nothing happen.i dont understand clearly about these parameters's meanings.So please explain more clearly for me.Tnx lots
-
Please show me how to call ExitWindowsEx function in user32.dll in .NET.I've tried this: [DllImport("user32.dll")] private static extern int ExitWindowsEx(int dwReserved, int uReturnCode ); public static void Main() { ExitWindowsEx(0,0) } This previous code can log off the computer but when i change it to ExitWindowsEx(1,0) nothing happen.i dont understand clearly about these parameters's meanings.So please explain more clearly for me.Tnx lots
-
Please show me how to call ExitWindowsEx function in user32.dll in .NET.I've tried this: [DllImport("user32.dll")] private static extern int ExitWindowsEx(int dwReserved, int uReturnCode ); public static void Main() { ExitWindowsEx(0,0) } This previous code can log off the computer but when i change it to ExitWindowsEx(1,0) nothing happen.i dont understand clearly about these parameters's meanings.So please explain more clearly for me.Tnx lots
-
Hi there, While you want to get help from CodeProject, but your username can make people here really annoyed, it's not polite :( (or do you think people don't know Vietnamese?)
minhpc_bk wrote:
(or do you think people don't know Vietnamese?)
:confused: Regards, Nish
My blog : Nish’s thoughts on MFC, C++/CLI and .NET
-
minhpc_bk wrote:
(or do you think people don't know Vietnamese?)
:confused: Regards, Nish
My blog : Nish’s thoughts on MFC, C++/CLI and .NET
-
Hi Nish, You probably get shocked when you know what his id means in English. It's currently in Vnese, and in English it means "f*ck your mom" ! However, I think he might be joking when he picked up this id for himself.
-
HI all.I'm really sorry.I dont mean that because i'm not vnese and i dont understand its meaning.I've changed it already.However pls help me with this problem
You can check out the ExitWindowsEx[^] function in the Platform SDK for the meaning of the parameter. You can also find the sample code from here: + http://www.pinvoke.net/default.aspx/user32/ExitWindowsEx.html[^] + http://blogs.msdn.com/brad_mccabe/archive/2005/03/02/383542.aspx[^]
-
Hi Nish, You probably get shocked when you know what his id means in English. It's currently in Vnese, and in English it means "f*ck your mom" ! However, I think he might be joking when he picked up this id for himself.
minhpc_bk wrote:
You probably get shocked when you know what his id means in English. It's currently in Vnese, and in English it means "f*ck your mom" ! However, I think he might be joking when he picked up this id for himself.
Egad! That is bad!!! Regards, Nish
My blog : Nish’s thoughts on MFC, C++/CLI and .NET