@pymethod int|EXTENSION_CONTROL_BLOCK|GetExecURLStatus|Calls ServerSupportFunction with HSE_REQ_GET_EXEC_URL_STATUS
| 761 | |
| 762 | // @pymethod int|EXTENSION_CONTROL_BLOCK|GetExecURLStatus|Calls ServerSupportFunction with HSE_REQ_GET_EXEC_URL_STATUS |
| 763 | PyObject * 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... |
no test coverage detected