VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,837 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi experts,
When using ExitWindowsEx in VB.net, for DWORD dwReason I wanna set this value:
SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED
"Other (Planned)" A planned shutdown or restart.
So, what to set for:
ExitWindowsEx(EWX_REBOOT, xx??xx)
Their values are 0x00000000 and 0x00000000 and 0x80000000
Thanks for your help :)
Public Const SHTDN_REASON_MAJOR_OTHER As UInteger = &H0
Public Const SHTDN_REASON_MINOR_OTHER As UInteger = &H0
Public Const SHTDN_REASON_FLAG_PLANNED As UInteger = &H80000000UI
Dim nReason As UInteger = SHTDN_REASON_MAJOR_OTHER Or SHTDN_REASON_MINOR_OTHER Or SHTDN_REASON_FLAG_PLANNED