Talk2Tom11 Posted March 31, 2005 Posted March 31, 2005 I was wondering if anyone could convert this code which is in VB6 to .Net for me. It is code to shut down windows. Private Const EWX_SHUTDOWN As Long = 1 Private Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Long, ByVal dwReserved As Long) As Long 'shut down the computer lngResult = ExitWindowsEx(EWX_SHUTDOWN, 0&) Quote
Administrators PlausiblyDamp Posted March 31, 2005 Administrators Posted March 31, 2005 Just replace the Longs with Integers and it should be fine. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts