Archive for 2010 年 06 月

OpenProcess時(eg.修改memory) 可能要提升權限

六月 22, 2010

RtlAdjustPrivilege

宣告RtlAdjustPrivilege

Public Declare Function RtlAdjustPrivilege Lib “ntdll.dll" (ByVal Privilege As Long, ByVal Enable As Long, ByVal CurrentThread As Long, Enabled As Long) As Long

放在form_load
Call RtlAdjustPrivilege(SE_DEBUG_PRIVILEGE, 1, 0, 0)