Lines Matching refs:hkey
111 HKEY hkey; member
145 if (obkey->hkey) in PyHKEY_deallocFunc()
146 RegCloseKey((HKEY)obkey->hkey); in PyHKEY_deallocFunc()
153 return ((PyHKEYObject *)ob)->hkey != 0; in PyHKEY_boolFunc()
160 return PyLong_FromVoidPtr(pyhkey->hkey); in PyHKEY_intFunc()
167 return PyUnicode_FromFormat("<PyHKEY:%p>", pyhkey->hkey); in PyHKEY_strFunc()
296 if (PySys_Audit("winreg.PyHKEY.Detach", "n", (Py_ssize_t)self->hkey) < 0) { in winreg_HKEYType_Detach_impl()
299 ret = (void*)self->hkey; in winreg_HKEYType_Detach_impl()
300 self->hkey = 0; in winreg_HKEYType_Detach_impl()
349 {"handle", T_INT, OFF(hkey), READONLY},
395 key->hkey = hInit; in PyHKEY_New()
409 ((PyHKEYObject*)ob_handle)->hkey = 0; in PyHKEY_Close()
431 *pHANDLE = pH->hkey; in PyHKEY_AsHKEY()
467 op->hkey = h; in PyHKEY_FromHKEY()
816 winreg_CloseKey(PyObject *module, PyObject *hkey) in winreg_CloseKey() argument
819 if (!PyHKEY_Close(hkey)) in winreg_CloseKey()