Article ID: 191806
Article Last Modified on 11/21/2006
HKEY_LOCAL_MACHINE\System\Foo\SubKey(SubKey is the only SubKey under Foo.)
HKEY_LOCAL_MACHINE\System\Foo
HKEY hMainKey, hSubKey; DWORD dwDisp, dwValues, cbMaxSubKeyLen; RegCreateKeyEx(HKEY_LOCAL_MACHINE, "SYSTEM\\Foo", 0, REG_NONE, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hMainKey, &dwDisp); RegCreateKey(hMainKey, "SubKey", &hSubKey); RegCloseKey(hSubKey); RegQueryInfoKey (hMainKey, NULL, NULL, NULL, &dwValues, &cbMaxSubKeyLen, NULL, NULL, NULL, NULL, NULL, NULL); RegCloseKey(hMainKey);
HKEY hMainKey, hSubKey; DWORD dwDisp, dwValues, cbMaxSubKeyLen; RegCreateKeyEx(HKEY_LOCAL_MACHINE, "SYSTEM\\Foo", 0, REG_NONE, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hMainKey, &dwDisp); RegCreateKey(HKEY_LOCAL_MACHINE, "SYSTEM\\Foo\\SubKey", &hSubKey); RegCloseKey(hSubKey); RegQueryInfoKey (hMainKey, NULL, NULL, NULL, &dwValues, &cbMaxSubKeyLen, NULL, NULL, NULL, NULL, NULL, NULL); RegCloseKey(hMainKey);
Keywords: kbapi kbbug kbkernbase kbpending kbregistry KB191806