Using kernel32 CreateThread/TerminateThread inside Azure Worker Role
问题 I have this code that I need to use, but what holds me back is that here it says that TerminateThread Applies to: desktop apps only . I wonder if I can use this code inside azure Worker role, specifically inside waiishost.exe process that I use to run the Worker thread in? [DllImport("Library.dll")] public static extern void InfiniteLoop(); [DllImport("kernel32")] private static extern int CreateThread( IntPtr lpThreadAttributes, UInt32 dwStackSize, IntPtr lpStartAddress, IntPtr param, UInt32