> RegCreateKeyEx(HKEY_LOCAL_MACHINE,"\\ab\\",0,0,0,KEY_ALL_AC > CESS,NULL,&HKeyReg,NULL); > RegSetValueEx(HKeyReg,"bb",0,REG_SZ,"123",3); > RegCloseKey(HKeyReg); > > Вобщем почему сиё чудо работает в Win9x а в winNT 4 нет ???
from MSDN
Windows NT/2000: The subkey name specified by lpSubKey must not begin with the backslash character ('\'). If it does, ERROR_BAD_PATHNAME is returned.
Windows 95/98: Beginning backslash characters in the subkey name specified by lpSubKey are ignored