You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all headers define GUIDs using the macros windows-clangs currently looks for to discern GUID facts. Some use EXTERN_GUID (defined in rpcndr.h), and some don't use a macro at all, declaring with a raw initializer list.
In all cases, these declarations get skipped over and don't end up in the rdl and consequently in the windows(-sys) bindings crate. I confirmed win32metadata contained these GUIDs in their winmd.
Request
Extend windows-clang’s GUID detection logic to support:
EXTERN_GUID(...) macro expansions
Raw GUID / CLSID declarations using initializer lists
Confirmed with SDK 10.0.28000.2957: EXTERN_GUID and raw GUID/CLSID initializer lists now work. Keeping this open for the remaining CLSID_DxcUtils case: Clang reports that copying the non-constexpr CLSID_DxcLibrary is not a constant expression, so the current capture omits it rather than guessing a constant value.
The IAMFilterGraphCallback omission is separate. strmif.h explicitly says its methods are not stdcall; UnableToRender uses the C++ member calling convention on x86. Its IID is captured, but the interface cannot be projected as ordinary COM without changing its ABI.
Activity
jorge-ortega commentedon Oct 22, 2026
FWIWs, I had copilot take a shot at this. I've published a branch that implements the change and brings in way more GUIDs then I was expecting.
Diff
jorge-ortega commentedon Oct 29, 2026
The new clang backend picks up the previously missed GUID definitions.
I tried out the new scrapper with dxcapi.h, and it also picks up the CLSIDs except for
CLSID_DxcUtils.Unrelated, but I also noticed in
strmif.rdl, theIID_IAMFilterGraphCallbackGUID was added but theIAMFilterGraphCallbackinterface was removed.kennykerr commentedon Nov 5, 2026
Confirmed with SDK 10.0.28000.2957: EXTERN_GUID and raw GUID/CLSID initializer lists now work. Keeping this open for the remaining CLSID_DxcUtils case: Clang reports that copying the non-constexpr CLSID_DxcLibrary is not a constant expression, so the current capture omits it rather than guessing a constant value.
The IAMFilterGraphCallback omission is separate. strmif.h explicitly says its methods are not stdcall; UnableToRender uses the C++ member calling convention on x86. Its IID is captured, but the interface cannot be projected as ordinary COM without changing its ABI.
The GUID cases are covered here:
windows-rs/crates/tests/libs/clang/tests/issues.rs
Lines 282 to 290 in 276aec3
[-]`windows-clang` Support additional GUID/CLSID declarations[/-][+]Support additional GUID/CLSID declarations[/+]