1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

pyglue: Export some more HRESULT constants

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-12-12 18:31:19 +13:00 committed by Andrew Bartlett
parent 9ed2544d9f
commit e19d74bb25
2 changed files with 9 additions and 0 deletions

View File

@ -633,6 +633,12 @@ MODULE_INIT_FUNC(_glue)
PyModule_AddObject(m, "DsExtendedError", PyExc_DsExtendedError);
}
PyModule_AddObject(m, "HRES_E_INVALIDARG",
PyLong_FromUnsignedLongLong(HRES_ERROR_V(HRES_E_INVALIDARG)));
PyModule_AddObject(m, "HRES_NTE_BAD_KEY",
PyLong_FromUnsignedLongLong(HRES_ERROR_V(HRES_NTE_BAD_KEY)));
PyModule_AddObject(m, "HRES_NTE_NO_KEY",
PyLong_FromUnsignedLongLong(HRES_ERROR_V(HRES_NTE_NO_KEY)));
PyModule_AddObject(m, "HRES_SEC_E_INVALID_TOKEN",
PyLong_FromUnsignedLongLong(HRES_ERROR_V(HRES_SEC_E_INVALID_TOKEN)));
PyModule_AddObject(m, "HRES_SEC_E_LOGON_DENIED",

View File

@ -399,5 +399,8 @@ HRESULTError = _glue.HRESULTError
WERRORError = _glue.WERRORError
DsExtendedError = _glue.DsExtendedError
HRES_E_INVALIDARG = _glue.HRES_E_INVALIDARG
HRES_NTE_BAD_KEY = _glue.HRES_NTE_BAD_KEY
HRES_NTE_NO_KEY = _glue.HRES_NTE_NO_KEY
HRES_SEC_E_LOGON_DENIED = _glue.HRES_SEC_E_LOGON_DENIED
HRES_SEC_E_INVALID_TOKEN = _glue.HRES_SEC_E_INVALID_TOKEN