MCPcopy Create free account
hub / github.com/mhammond/pywin32 / GetExecURLStatus

Method GetExecURLStatus

isapi/src/PyExtensionObjects.cpp:763–781  ·  view source on GitHub ↗

@pymethod int|EXTENSION_CONTROL_BLOCK|GetExecURLStatus|Calls ServerSupportFunction with HSE_REQ_GET_EXEC_URL_STATUS

Source from the content-addressed store, hash-verified

761
762// @pymethod int|EXTENSION_CONTROL_BLOCK|GetExecURLStatus|Calls ServerSupportFunction with HSE_REQ_GET_EXEC_URL_STATUS
763PyObject * PyECB::GetExecURLStatus(PyObject *self, PyObject *args)
764{
765 if (!PyArg_ParseTuple(args, ":GetExecURLStatus"))
766 return NULL;
767
768 PyECB * pecb = (PyECB *) self;
769 EXTENSION_CONTROL_BLOCK *ecb = pecb->m_pcb->GetECB();
770 if (!pecb || !pecb->Check()) return NULL;
771 BOOL bRes;
772 HSE_EXEC_URL_STATUS status;
773 Py_BEGIN_ALLOW_THREADS
774 bRes = ecb->ServerSupportFunction(ecb->ConnID, HSE_REQ_GET_EXEC_URL_STATUS, &status, NULL,NULL);
775 Py_END_ALLOW_THREADS
776 if (!bRes)
777 return SetPyECBError("ServerSupportFunction(HSE_REQ_GET_EXEC_URL_STATUS)");
778 // @rdesc The result of a tuple of 3 integers - (uHttpStatusCode, uHttpSubStatus, dwWin32Error)
779 // @pyseeapi HSE_EXEC_URL_STATUS
780 return Py_BuildValue("HHk", status.uHttpStatusCode, status.uHttpSubStatus, status.dwWin32Error);
781}
782
783// *sob* - these autoduck comments should be closer to the actual callback impl,
784// but autoduck makes life harder than it should be...

Callers 1

io_callbackFunction · 0.80

Calls 4

SetPyECBErrorFunction · 0.85
GetECBMethod · 0.80
ServerSupportFunctionMethod · 0.80
CheckMethod · 0.45

Tested by

no test coverage detected