public static extern IntPtr CreateThread(ref SECURITY_ATTRIBUTES SecurityAttributes, uint StackSize, CreateThreadProc StartFunction, IntPtr ThreadParameter, uint CreationFlags, out uint ThreadId);
public static extern IntPtr CreateThread(ref PInvokeEntity.SECURITY_ATTRIBUTES SecurityAttributes, uint StackSize, CreateThreadProc StartFunction, IntPtr ThreadParameter, uint CreationFlags, out uint ThreadId);