In this Tutorial, I have created a process in Windows. I have used following API's.
1. CreateProcess -- create the process.
2. GetProcessID - Printing the process id of process.
3. GetThreadID - Printing the thread id of primary thread.
4.WaitforSingleObject - wait of signal.
5.CloseHandle - closing the process and its primary thread.
for more info about of all function. visit msdn website.