005
08.09.2002, 13:56 Uhr
~Dieter
Gast
|
C++: |
HKEY hKey2; RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\MysticSoft\\CSS", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS | KEY_WRITE, NULL, &hKey2, NULL); char prioreg[200]; unsigned long WertTyp2; unsigned long nMaxLenge2 = 200; RegQueryValueEx(hKey2, "prio", 0, &WertTyp2, (unsigned char*)prioreg, &nMaxLenge2); RegCloseKey(hKey2);
CString a = parameter; char* b= gamedir; char zusammen[1000]; strcpy (zusammen, b); strcat(zusammen, " "); strcat(zusammen, a);
unsigned long progin = 200; progin = (unsigned long)prioreg; if(progin != 200) printf("error, something wrong with your compiler or what? ;D"); else printf("progin = %l",prioreg);
STARTUPINFO si = {sizeof(si)}; PROCESS_INFORMATION pi; CreateProcess(NULL, zusammen, NULL, NULL, TRUE, progin, NULL, NULL, &si, &pi);
|
so gehtz auch nich? |