Lines Matching refs:retDataBuf
544 Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize) in Py2Reg() argument
551 *retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1); in Py2Reg()
552 if (*retDataBuf == NULL){ in Py2Reg()
559 memcpy(*retDataBuf, &zero, sizeof(DWORD)); in Py2Reg()
563 memcpy(*retDataBuf, &d, sizeof(DWORD)); in Py2Reg()
569 *retDataBuf = (BYTE *)PyMem_NEW(DWORD64, 1); in Py2Reg()
570 if (*retDataBuf == NULL){ in Py2Reg()
577 memcpy(*retDataBuf, &zero, sizeof(DWORD64)); in Py2Reg()
581 memcpy(*retDataBuf, &d, sizeof(DWORD64)); in Py2Reg()
591 *retDataBuf = (BYTE*)PyUnicode_AsWideCharString(value, &len); in Py2Reg()
592 if (*retDataBuf == NULL) in Py2Reg()
599 *retDataBuf = (BYTE *)PyMem_NEW(wchar_t, 1); in Py2Reg()
600 if (*retDataBuf == NULL) { in Py2Reg()
604 ((wchar_t *)*retDataBuf)[0] = L'\0'; in Py2Reg()
638 *retDataBuf = (BYTE *)PyMem_NEW(char, in Py2Reg()
640 if (*retDataBuf == NULL){ in Py2Reg()
644 P = (wchar_t *)*retDataBuf; in Py2Reg()
669 *retDataBuf = NULL; in Py2Reg()
685 *retDataBuf = (BYTE *)PyMem_NEW(char, view.len); in Py2Reg()
686 if (*retDataBuf == NULL){ in Py2Reg()
692 memcpy(*retDataBuf, view.buf, view.len); in Py2Reg()
702 Reg2Py(BYTE *retDataBuf, DWORD retDataSize, DWORD typ) in Reg2Py() argument
711 obData = PyLong_FromUnsignedLong(*(DWORD *)retDataBuf); in Reg2Py()
717 obData = PyLong_FromUnsignedLongLong(*(DWORD64 *)retDataBuf); in Reg2Py()
726 wchar_t *data = (wchar_t *)retDataBuf; in Reg2Py()
737 wchar_t *data = (wchar_t *)retDataBuf; in Reg2Py()
782 (char *)retDataBuf, retDataSize); in Reg2Py()
1106 BYTE *retDataBuf; in winreg_EnumValue_impl() local
1126 retDataBuf = (BYTE *)PyMem_Malloc(retDataSize); in winreg_EnumValue_impl()
1127 if (retDataBuf == NULL) { in winreg_EnumValue_impl()
1140 (BYTE *)retDataBuf, in winreg_EnumValue_impl()
1148 tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize); in winreg_EnumValue_impl()
1154 retDataBuf = tmpBuf; in winreg_EnumValue_impl()
1164 obData = Reg2Py(retDataBuf, retDataSize, typ); in winreg_EnumValue_impl()
1173 PyMem_Free(retDataBuf); in winreg_EnumValue_impl()