What feature to enable in windows-rs for OutputDebugStringW?

69 views Asked by At

I'd like to use OutputDebugStringW in windows-rs but it cannot be found in any scope. I tried searching the repo but the only reference is in kernel32.dll.c.

What feature do I need to enable to use OutputDebugStringW?

1

There are 1 answers

1
IInspectable On BEST ANSWER

The feature to bring in the module that provides OutputDebugStringW is "Win32_System_Diagnostics_Debug".

The required features are listed in the documentation published here. The latest version (0.52.0), however, changed things, and the requirements are no longer listed (in full) near the API call documentation (see this issue for more information).

To find the feature that introduces an API, go to the official documentation, search for the name, follow the link, and move up to the containing module (available from the link in the top left corner). The module documentation will list the required features.

This is hoping that this answer will be ephemeral and the changes be reverted to how things were before.