Lines Matching refs:hkey
112 HKEY hkey; member
146 if (obkey->hkey) in PyHKEY_deallocFunc()
147 RegCloseKey((HKEY)obkey->hkey); in PyHKEY_deallocFunc()
154 return ((PyHKEYObject *)ob)->hkey != 0; in PyHKEY_boolFunc()
161 return PyLong_FromVoidPtr(pyhkey->hkey); in PyHKEY_intFunc()
168 return PyUnicode_FromFormat("<PyHKEY:%p>", pyhkey->hkey); in PyHKEY_strFunc()
297 if (PySys_Audit("winreg.PyHKEY.Detach", "n", (Py_ssize_t)self->hkey) < 0) { in winreg_HKEYType_Detach_impl()
300 ret = (void*)self->hkey; in winreg_HKEYType_Detach_impl()
301 self->hkey = 0; in winreg_HKEYType_Detach_impl()
350 {"handle", T_INT, OFF(hkey), READONLY},
396 key->hkey = hInit; in PyHKEY_New()
410 ((PyHKEYObject*)ob_handle)->hkey = 0; in PyHKEY_Close()
432 *pHANDLE = pH->hkey; in PyHKEY_AsHKEY()
467 op->hkey = h; in PyHKEY_FromHKEY()
826 winreg_CloseKey(PyObject *module, PyObject *hkey) in winreg_CloseKey() argument
829 if (!PyHKEY_Close(hkey)) in winreg_CloseKey()