How to create a process in C++ on Windows?
regasm.exe(Assembly Registration Tool) makes changes to the Windows Registry, so if you want to start regasm.exe as elevated process you could use the following code: #include “stdafx.h” #include “windows.h” #include “shellapi.h” int _tmain(int argc, _TCHAR* argv[]) { SHELLEXECUTEINFO shExecInfo; shExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); shExecInfo.fMask = NULL; shExecInfo.hwnd = NULL; shExecInfo.lpVerb = L”runas”; shExecInfo.lpFile = L”regasm.exe”; shExecInfo.lpParameters … Read more