C language function:InitiateSystemShutdownEx sample codes

Search sample code in the internet.It is the result.


TITLE : Windows-driver-samples/Install.cpp at master Microsoft/Windows-driver-samples GitHub
fResult = InitiateSystemShutdownEx(.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/general/installwdf/Install.cpp


TITLE : Windows-driver-samples/devcon.cpp at master Microsoft/Windows-driver-samples GitHub
return InitiateSystemShutdownEx(NULL,.......
http://github.com/Microsoft/Windows-driver-samples/blob/master/setup/devcon/devcon.cpp
TITLE : WinApi
ssuiiiuii BOOL InitiateSystemShutdownEx(_In_opt_ LPTSTR lpMachineName, _In_opt_ LPTSTR lpMessage, _In_ DWORD dwTimeout, _In_ BOOL bForceAppsClosed, _In_ BOOL bRebootAfterShutdown, _In_ DWORD dwReason).......
http://hotkeyit.github.io/v2/docs/commands/WinApi.htm
TITLE : InitiateSystemShutdownEx function (Windows)
BOOL WINAPI InitiateSystemShutdownEx(.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/aa376874(v=vs.85).aspx
TITLE : c++ - How to turn off pc via windows API? - Stack Overflow
InitiateSystemShutdownEx(NULL, NULL, 0, FALSE, FALSE, 0);.......
http://stackoverflow.com/questions/1503839/how-to-turn-off-pc-via-windows-api
TITLE : pinvoke.net: initiatesystemshutdownex (advapi32)
public static extern bool InitiateSystemShutdownEx(.......
http://www.pinvoke.net/default.aspx/advapi32.initiatesystemshutdownex
TITLE : pinvoke.net: initiatesystemshutdownex (advapi32)
Public Function InitiateSystemShutdownEx( _.......
http://www.pinvoke.net/default.aspx/advapi32.initiatesystemshutdownex
TITLE : Caphaw attacking major European banks using webinject plugin
Caphaw sets many hooks for system functions and one of the most interesting intercepted functions is InitiateSystemShutdownEx(). This hook makes it possible to control the reboot/shutdown process and makes it possible for the malware to restore itself after some antivirus cleaning procedures have been carried out........
http://www.welivesecurity.com/2013/02/25/caphaw-attacking-major-european-banks-with-webinject-plugin/
search Google

https://www.google.com/#q=InitiateSystemShutdownEx