-
C++ (
http://www.daniweb.com/forums/forum8.html)
| maxicube | Nov 21st, 2008 10:02 am | |
| Install Directory of another program how would I get the install directory of another program, the registry perhaps? (using HLDS as my directory to be found) (GET HLDS HERE!)
i fond the key which might be useful. (how would i open it?
[HKEY_CURRENT_USER\Software\Valve\HLServer]
"InstallPath"="C:\\hlds"
"Full Name"="Half-Life Dedicated Server"
"Region"="5" |
| niek_e | Nov 21st, 2008 10:51 am | |
| Re: Install Directory of another program Quote: Originally Posted by maxicube (Post 741429) i fond the key which might be useful. (how would i open it? | How about using this incredible site ? :) |
| maxicube | Nov 21st, 2008 7:10 pm | |
| Re: Install Directory of another program heh. didnt help me that much :/ but dad had some code for me
HKEY hKey;
DWORD buffersize = 1024;
char* hldsloc = new char[buffersize];
RegOpenKeyEx (HKEY_CURRENT_USER,
"Software\\Valve\\HLServer",NULL,KEY_READ,&hKey);
RegQueryValueEx(hKey,"InstallPath",NULL,NULL,(LPBYTE) hldsloc,&buffersize);
RegCloseKey (hKey); |
| All times are GMT -4. The time now is 4:00 am. | |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC