So, I want to use the CreateProcess API function in C#. I know that I have to import the kernel32.dll file and overwrite the function header and mark it as extern. I also know that I have to implement the structures that the function uses. The problem that I have is the following: Where can I see the exact structure of the structure I need to implement?
[DllImport("Kernel32.dll")]
public static extern HANDLE CreateThread(PSECURITY_ATTRIBUTES psa,
DWORD cbStack,
PTHREAD_START_ROUTINE pfnStartAddr,
PVOID pvParam,
DWORD fwdCreate,
PDWORD pdwThreadID);
I need to implemenent the following structures in order for this to work: HANDLE, DWORD... and the rest how do I do this?