Lines Matching defs:result

36     UUID result;
43 use the result. */
44 if (UuidCreate(&result) == RPC_S_UUID_NO_ADDRESS) {
45 PyErr_SetString(PyExc_NotImplementedError, "processing 'no address' result");
49 if (UuidToStringW(&result, &cresult) == RPC_S_OUT_OF_MEMORY) {
102 int result = _wopen(ws, oflag | O_NOINHERIT, pmode);
104 if (result == -1)
106 return result;
111 UINT result = (UINT)_read((int)hf, memory, cb);
112 if (result != cb)
114 return result;
119 UINT result = (UINT)_write((int)hf, memory, cb);
120 if (result != cb)
122 return result;
127 int result = _close((int)hf);
128 if (result != 0)
130 return result;
135 long result = (long)_lseek((int)hf, dist, seektype);
136 if (result == -1)
138 return result;
147 int result = _wremove(ws);
149 if (result != 0)
151 return result;
177 PyObject *result = _PyObject_CallMethodId(pv, &PyId_status, "iii", typeStatus, cb1, cb2);
178 if (result == NULL)
180 Py_DECREF(result);
190 PyObject *result = _PyObject_CallMethodId(pv, &PyId_getnextcabinet, "i", pccab->iCab);
191 if (result == NULL)
193 if (!PyBytes_Check(result)) {
196 Py_TYPE(result)->tp_name);
197 Py_DECREF(result);
200 strncpy(pccab->szCab, PyBytes_AsString(result), sizeof(pccab->szCab));
239 int result = _wopen(ws, _O_RDONLY | _O_BINARY | O_NOINHERIT);
241 return result;
645 msiobj *result = PyObject_New(struct msiobj, &record_Type);
647 if (!result) {
652 result->h = h;
653 return (PyObject*)result;
672 PyObject *result;
698 result = PyLong_FromLong(ival);
701 PyErr_SetString(PyExc_NotImplementedError, "FILETIME result");
702 result = NULL;
705 result = PyBytes_FromStringAndSize(sval, ssize);
709 result = Py_None;
712 PyErr_Format(PyExc_NotImplementedError, "result of type %d", type);
713 result = NULL;
718 return result;
732 UINT result;
734 status = MsiSummaryInfoGetPropertyCount(self->h, &result);
738 return PyLong_FromLong(result);
899 Return a result record of the query.
907 MSIHANDLE result;
909 status = MsiViewFetch(self->h, &result);
916 return record_new(result);
933 MSIHANDLE result;
935 if ((status = MsiViewGetColumnInfo(self->h, kind, &result)) != ERROR_SUCCESS)
938 return record_new(result);
1057 msiobj *result;
1062 result = PyObject_New(struct msiobj, &msiview_Type);
1063 if (!result) {
1068 result->h = hView;
1069 return (PyObject*)result;
1104 MSIHANDLE result;
1107 status = MsiGetSummaryInformation(self->h, NULL, count, &result);
1113 MsiCloseHandle(result);
1117 oresult->h = result;
1201 msiobj *result;
1212 result = PyObject_New(struct msiobj, &msidb_Type);
1213 if (!result) {
1217 result->h = h;
1218 return (PyObject*)result;