Home | History | Annotate | Download | only in PC

Lines Matching refs:hKey

20 static BOOL PyHKEY_AsHKEY(PyObject *ob, HKEY *pRes, BOOL bNoneOK);
21 static PyObject *PyHKEY_FromHKEY(HKEY h);
67 "HKEYType -- type object for HKEY objects\n"
76 "CloseKey(hkey) - Closes a previously opened registry key.\n"
78 "The hkey argument specifies a previously opened key.\n"
81 "closed when the hkey object is destroyed by Python.");
336 "bool = QueryReflectionKey(hkey) - Determines the reflection state for the specified key.\n"
343 "This object wraps a Windows HKEY object, automatically closing it when\n"
388 HKEY hkey;
422 if (obkey->hkey)
423 RegCloseKey((HKEY)obkey->hkey);
430 return ((PyHKEYObject *)ob)->hkey != 0;
437 return PyLong_FromVoidPtr(pyhkey->hkey);
445 ob, pyhkey->hkey);
453 return PyString_FromFormat("<PyHKEY:%p>", pyhkey->hkey);
516 {"handle", T_PYSSIZET, offsetof(PyHKEYObject, hkey), READONLY},
577 ret = (void*)pThis->hkey;
578 pThis->hkey = 0;
602 PyHKEY_New(HKEY hInit)
606 key->hkey = hInit;
621 rc = key->hkey ? RegCloseKey((HKEY)key->hkey) : ERROR_SUCCESS;
622 key->hkey = 0;
629 PyHKEY_AsHKEY(PyObject *ob, HKEY *pHANDLE, BOOL bNoneOK)
635 "None is not a valid HKEY in this context");
638 *pHANDLE = (HKEY)0;
642 *pHANDLE = pH->hkey;
647 *pHANDLE = (HKEY)PyLong_AsVoidPtr(ob);
661 PyHKEY_FromHKEY(HKEY h)
670 op->hkey = h;
687 long rc = RegCloseKey((HKEY)PyInt_AsLong(obHandle));
694 long rc = RegCloseKey((HKEY)PyLong_AsVoidPtr(obHandle));
703 "A handle must be a HKEY object or an integer");
1018 HKEY hKey;
1021 HKEY retKey;
1025 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1028 rc = RegConnectRegistry(szCompName, hKey, &retKey);
1039 HKEY hKey;
1042 HKEY retKey;
1046 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1048 rc = RegCreateKey(hKey, subKey, &retKey);
1057 HKEY hKey;
1060 HKEY retKey;
1067 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1070 rc = RegCreateKeyEx(hKey, subKey, res, NULL, (DWORD)NULL,
1080 HKEY hKey;
1086 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1088 rc = RegDeleteKey(hKey, subKey );
1098 HKEY hKey;
1101 typedef LONG (WINAPI *RDKEFunc)(HKEY, const char*, REGSAM, int);
1111 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1126 rc = (*pfn)(hKey, subKey, sam, res);
1138 HKEY hKey;
1144 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1147 rc = RegDeleteValue(hKey, subKey);
1159 HKEY hKey;
1176 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1180 rc = RegEnumKeyEx(hKey, index, tmpbuf, &len, NULL, NULL, NULL, NULL);
1192 HKEY hKey;
1207 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1210 if ((rc = RegQueryInfoKey(hKey, NULL, NULL, NULL, NULL, NULL, NULL,
1231 rc = RegEnumValue(hKey,
1310 HKEY hKey;
1315 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1318 rc = RegFlushKey(hKey);
1328 HKEY hKey;
1336 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1339 rc = RegLoadKey(hKey, subKey, fileName );
1350 HKEY hKey;
1355 HKEY retKey;
1361 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1365 rc = RegOpenKeyEx(hKey, subKey, res, sam, &retKey);
1376 HKEY hKey;
1386 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1388 if ((rc = RegQueryInfoKey(hKey, NULL, NULL, 0, &nSubKeys, NULL, NULL,
1405 HKEY hKey;
1418 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1421 rc = RegQueryValue(hKey, subKey, NULL, &retSize);
1435 rc = RegQueryValue(hKey, subKey, retBuf, &retSize);
1467 HKEY hKey;
1481 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1484 rc = RegQueryValueEx(hKey, valueName, NULL, NULL, NULL, &bufSize);
1496 rc = RegQueryValueEx(hKey, valueName, NULL, &typ,
1528 HKEY hKey;
1536 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1543 rc = RegSaveKey(hKey, fileName, pSA );
1554 HKEY hKey;
1569 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1589 rc = RegSetValue(hKey, subKey, REG_SZ, str, len+1);
1600 HKEY hKey;
1618 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1628 rc = RegSetValueEx(hKey, valueName, 0, typ, data, len);
1641 HKEY hKey;
1644 typedef LONG (WINAPI *RDRKFunc)(HKEY);
1650 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1665 rc = (*pfn)(hKey);
1677 HKEY hKey;
1680 typedef LONG (WINAPI *RERKFunc)(HKEY);
1686 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1701 rc = (*pfn)(hKey);
1713 HKEY hKey;
1716 typedef LONG (WINAPI *RQRKFunc)(HKEY, BOOL *);
1723 if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
1738 rc = (*pfn)(hKey, &result);
1786 inskey(PyObject * d, char * name, HKEY key)