Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include "stdafx.h"
HINSTANCE hDll = LoadLibraryA("poc.dll");
#pragma once
#pragma comment (linker, "/export:GetFileVersionInfoA=C:\\Windows\\System32\\version.GetFileVersionInfoA,@1")
#pragma comment (linker, "/export:GetFileVersionInfoByHandle=C:\\Windows\\System32\\version.GetFileVersionInfoByHandle,@2")
#pragma comment (linker, "/export:GetFileVersionInfoExW=C:\\Windows\\System32\\version.GetFileVersionInfoExW,@3")
#pragma comment (linker, "/export:GetFileVersionInfoSizeA=C:\\Windows\\System32\\version.GetFileVersionInfoSizeA,@4")
#pragma comment (linker, "/export:GetFileVersionInfoSizeExW=C:\\Windows\\System32\\version.GetFileVersionInfoSizeExW,@5")
#pragma comment (linker, "/export:GetFileVersionInfoSizeW=C:\\Windows\\System32\\version.GetFileVersionInfoSizeW,@6")
#pragma comment (linker, "/export:GetFileVersionInfoW=C:\\Windows\\System32\\version.GetFileVersionInfoW,@7")
#pragma comment (linker, "/export:VerFindFileA=C:\\Windows\\System32\\version.VerFindFileA,@8")
#pragma comment (linker, "/export:VerFindFileW=C:\\Windows\\System32\\version.VerFindFileW,@9")
#pragma comment (linker, "/export:VerInstallFileA=C:\\Windows\\System32\\version.VerInstallFileA,@10")
#pragma comment (linker, "/export:VerInstallFileW=C:\\Windows\\System32\\version.VerInstallFileW,@11")
#pragma comment (linker, "/export:VerLanguageNameA=C:\\Windows\\System32\\version.VerLanguageNameA,@12")
#pragma comment (linker, "/export:VerLanguageNameW=C:\\Windows\\System32\\version.VerLanguageNameW,@13")
#pragma comment (linker, "/export:VerQueryValueA=C:\\Windows\\System32\\version.VerQueryValueA,@14")
#pragma comment (linker, "/export:VerQueryValueW=C:\\Windows\\System32\\version.VerQueryValueW,@15")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.