To correctly handle the BlackIceDEVMODE the project must have the following settings:
The Structure Member Alignment must be 1 byte
The following preprocessor definitions must be used: _UNICODE, UNICODE, _WIN32_WINNT=0x0400
To open the Project Settings in the Visual C++ 2015/2017/2019/2022 environment, go to the ‘Project’ menu, ‘Properties’ menu item or press ALT+F7.
To set the Structure Member Alignment, select the ‘Configuration Properties’ / ‘C/C++’ / ‘Code Generation’ page. Set the ‘Structure Member Alignment’ to 1 byte.
To set the preprocessor definitions, select the ‘Configuration Properties’ / ‘C/C++’ / ‘Preprocessor’ page. Enter the _WIN32_WINNT=0x0400 define into the ‘preprocessor definitions’ field.
To set the project to unicode, select the ‘Configuration Properties’ / ‘General’ page and set ‘Character Set’ to ‘Use Unicode Character Set’ (This automatically defines the UNICODE and _UNICODE constants)