I was a rookie, please master have a look this Python code why?? Several forum n

def rstorsht(gparm):#The shutdown restart
ntdll = ctypes.windll.LoadLibrary("ntdll.dll")
if ntdll==None:
return False
rt=ntdll.RtlAdjustPrivilege(19,True, 0x0, 0x0)
print rt
if gparm==1:
ntdll.NtShutdownSystem(0)
pass
else:
ntdll.NtShutdownSystem(1)
pass

Started by Jennifer at February 05, 2016 - 11:51 AM

A prototype NTSTATUS RtlAdjustPrivilege(ULONG, BOOLEAN, BOOLEAN, PBOOLEAN)

There seems to your argument, try:
...
p = ctypes.byref(ctypes.c_byte())
rt = ntdll.RtlAdjustPrivilege(19, True, False, p)
...

Posted by Cornelius at January 04, 2017 - 11:19 AM

This is what the module, completely cannot read. .

Posted by Timothy at January 06, 2017 - 10:08 AM

Enthusiastic people to a building

Posted by Jennifer at January 12, 2017 - 10:30 AM