[DllImport("kernel32.dll")]
static extern IntPtr CreateThread([In] ref SECURITY_ATTRIBUTES
SecurityAttributes, uint StackSize, ThreadStartDelegate StartFunction,
IntPtr ThreadParameter, uint CreationFlags, out uint ThreadId);
SECURITY_ATTRIBUTES
None.
Please add some!
Please add some!
Try System.Threading.Thread.Start. It doesn't give you all the control of directly calling CreateThread, (such as specifing the flags), but it will get you a vanilla thread to spin up.