007
19.12.2002, 17:41 Uhr
~lutz
Gast
|
So cih mache das immer so:
C++: |
key.Close(); CRegKey key; key.Create(HKEY_CLASSES_ROOT,"ABC",REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL); key.SetValue("ABC-Datei" ,""); key.Close();
key.Create(HKEY_CLASSES_ROOT,"ABC-Datei",REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL); key.SetValue("ABC-Datei" ,""); key.Close();
key.Create(HKEY_CLASSES_ROOT,"ABC-Datei\\DefaultIcon",REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL); key.SetValue(c:\\MyApp.exe, -130" ,""); key.Close();
key.Create(HKEY_CLASSES_ROOT,"ABC-Datei\\shell\\open\\command",REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL); key.SetValue("%SystemRoot%\\system32\\notepad.exe" ,""); key.Close();
|
Aber |