public static extern NtStatus NtCreateThread( out SafeKernelObjectHandle ThreadHandle, ThreadAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes, SafeKernelObjectHandle ProcessHandle, out ClientIdStruct ClientId, IntPtr ThreadContext, IntPtr InitialTeb, bool CreateSuspended );
public ClientId(ClientIdStruct cid) { UniqueProcess = cid.UniqueProcess; UniqueThread = cid.UniqueThread; }