We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee37178 commit 3428accCopy full SHA for 3428acc
tests/test_generated_def.py
@@ -113,6 +113,12 @@ def test_CTL_CODE_macro():
113
assert gdef.IOCTL_MOUNTMGR_CREATE_POINT == 0x006DC000
114
assert gdef.IOCTL_MOUNTMGR_QUERY_POINTS == 0x006D0008
115
116
+def test_HRESULT_FACILITY_macro():
117
+ """Test that the HRESULT_FACILITY() macro, (reimplemented in python in windef.py) returns the correct values"""
118
+ assert gdef.HRESULT_FACILITY(0x800706d1) == gdef.FACILITY_WIN32 == 7
119
+ # RPC_E_INVALID_HEADER(0x80010111)
120
+ assert gdef.HRESULT_FACILITY(gdef.RPC_E_INVALID_HEADER) == gdef.FACILITY_RPC == 1
121
+
122
123
# typedef struct _DnsRecordFlags
124
# {
0 commit comments