[SOLVED] Why pragma comment(linker,"/export …") unresolved external symbol

Issue The header file just like below #define CoverWinAPI extern "C" __declspec(dllexport) CoverWinAPI BOOL RunDll(); CoverWinAPI void ReplaceIATEntryInOneMod(PCSTR pszCalleeModName,PROC pfnCurrent,PROC pfnNew,HMODULE hmodCaller); #pragma comment(linker,"/export:[email protected]") CoverWinAPI HWND WINAPI MyCreateWindowExW( _In_opt_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle,

Continue reading

[SOLVED] How to print .html files using ShellExecuteExW?

Issue The goal is to print a htm/html file via Windows-API ::ShellExecuteExW. The parameters of ::ShellExecuteExW are shell_info.lpVerb = "open"; shell_info.lpFile = "C:\Windows\System32\rundll32.exe"; shell_info.lpParameters = "C:\Windows\System32\mshtml.dll ,PrintHTML "C:\Temp\test.html""; lpFile and lpParameters are fetched from the registry key "\HKEY_CLASSES_ROOT\htmlfile\shell\print\command" The error

Continue reading