Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- int main(int argc, char* argv[])
- {
- STARTUPINFO si;
- PROCESS_INFORMATION pi;
- ZeroMemory( &si, sizeof(si) );
- si.cb = sizeof(si);
- ZeroMemory( &pi, sizeof(pi) );
- if( !CreateProcess( NULL, "c:/windows/regedit.exe", NULL, NULL, FALSE,
- 0, NULL, NULL, &si, &pi))
- {system("pause");return 0;}
- //Close process and thread handles.
- CloseHandle( pi.hProcess );
- CloseHandle( pi.hThread );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement