Lines Matching refs:hkey
307 HKEY hkey; in icvLoadWindowPos() local
315 if( RegOpenKeyEx(HKEY_CURRENT_USER,szKey,0,KEY_QUERY_VALUE,&hkey) == ERROR_SUCCESS ) in icvLoadWindowPos()
321 RegQueryValueEx(hkey, "Left", NULL, &dwType, (BYTE*)&rect.x, &dwSize); in icvLoadWindowPos()
322 RegQueryValueEx(hkey, "Top", NULL, &dwType, (BYTE*)&rect.y, &dwSize); in icvLoadWindowPos()
323 RegQueryValueEx(hkey, "Width", NULL, &dwType, (BYTE*)&rect.width, &dwSize); in icvLoadWindowPos()
324 RegQueryValueEx(hkey, "Height", NULL, &dwType, (BYTE*)&rect.height, &dwSize); in icvLoadWindowPos()
336 RegCloseKey(hkey); in icvLoadWindowPos()
348 HKEY hkey; in icvSaveWindowPos() local
354 if( RegOpenKeyEx( HKEY_CURRENT_USER,szKey,0,KEY_READ,&hkey) != ERROR_SUCCESS ) in icvSaveWindowPos()
389 …Ex(HKEY_CURRENT_USER,szKey,0,NULL,REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &hkey, NULL) != ERROR_SUC… in icvSaveWindowPos()
394 RegCloseKey( hkey ); in icvSaveWindowPos()
395 if( RegOpenKeyEx( HKEY_CURRENT_USER,szKey,0,KEY_WRITE,&hkey) != ERROR_SUCCESS ) in icvSaveWindowPos()
399 RegSetValueEx(hkey, "Left", 0, REG_DWORD, (BYTE*)&rect.x, sizeof(rect.x)); in icvSaveWindowPos()
400 RegSetValueEx(hkey, "Top", 0, REG_DWORD, (BYTE*)&rect.y, sizeof(rect.y)); in icvSaveWindowPos()
401 RegSetValueEx(hkey, "Width", 0, REG_DWORD, (BYTE*)&rect.width, sizeof(rect.width)); in icvSaveWindowPos()
402 RegSetValueEx(hkey, "Height", 0, REG_DWORD, (BYTE*)&rect.height, sizeof(rect.height)); in icvSaveWindowPos()
403 RegCloseKey(hkey); in icvSaveWindowPos()