internal static extern bool AdjustTokenPrivileges( [In] SafeCloseHandle tokenHandle, [In] bool disableAllPrivileges, [In] ref TOKEN_PRIVILEGE newState, [In] uint bufferLength, [Out] out TOKEN_PRIVILEGE previousState, [Out] out uint returnLength );
internal static extern bool OpenProcessToken( [In] IntPtr processToken, [In] int desiredAccess, [Out] out SafeCloseHandle tokenHandle );