#include <windows.h>
#include <cfgmgr32.h>
#include <shlobj.h>
#pragma comment(linker, "/export:FwdExport=KERNEL32.CreateFileA")
extern "C" {
__declspec(dllexport) void ExportFunc1() {
HWND dummy = GetDesktopWindow();
SetWindowTextA(dummy, "dummy");
}
__declspec(dllexport) void ExportFunc2() {
CM_MapCrToWin32Err(CR_SUCCESS, ERROR_SUCCESS);
PWSTR path = nullptr;
if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_Public, 0, nullptr, &path))) {
CoTaskMemFree(path);
}
HANDLE h = CreateEvent(nullptr, FALSE, FALSE, nullptr);
CloseHandle(h);
}
}