// cl /LD use_comctl32_6.c comctl32.lib // mt.exe -manifest use_comctl32_6.dll.embed.manifest -outputresource:"use_comctl32_6.dll;#2" // 1. should read embed manifest of dll // 2. should load dll from WinSxS // <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="amd64" publicKeyToken="6595b64144ccf1df" /> // C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.6456_none_60b8a6cb71f64256\comctl32.dll #include <windows.h> __declspec(dllimport) HRESULT WINAPI TaskDialogIndirect(); __declspec(dllexport) void UseTaskDialogIndirect() { TaskDialogIndirect(); } __declspec(dllimport) void WINAPI InitCommonControls(); __declspec(dllexport) void UseInitCommonControls() { InitCommonControls(); }
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="amd64" publicKeyToken="6595b64144ccf1df" /> </dependentAssembly> </dependency> </assembly>
There was an error while loading. Please reload this page.