Thanx a lot Banfa for your reply!
I tried using CreateProcess. But I keep getting the error "Unhandled exception at 0x7c825352 in InventoryFiles.exe: 0xC0000005: Access violation writing location 0x006a3ce2.".
I dont know where the problem lies.
the part of code I used for my testing of this function is -
-----------------------------------------
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
CreateProcess( NULL, // No module name (use command line)
TEXT("NOTEPAD"), // Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inheritance to FALSE
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi ) ; // Pointer to PROCESS_INFORMATION structure
-------------------------------------------------------------------
Kindly point out my error...
Thank you....