- Add
kernel32.lib
toIgnore Specific Default Libraries
.
But don't removekernel32.lib
fromAdditional Dependencies
. - Set
Additional Dependencies
tofileextd.lib;ntdll.lib;%(AdditionalDependencies)
.
Order is important.fileextd.lib
must come beforekernel32.lib
. - FileExtd.lib was not created with __declspec(dllimport) in mind. Need to take precautions against the _imp__ symbol.
Do either.#define WINBASEAPI
before#include <windows.h>
. Although this is easy, keep in mind that it affects the entire source file.- Override
__imp__SetFileInformationByHandle@16
using assembly.
-
-
Save 0xbadfca11/5bde6392f4a402ebb981ba1e16a35956 to your computer and use it in GitHub Desktop.
Using FileExtd.lib with newer Windows SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.MODEL FLAT | |
EXTERN _SetFileInformationByHandle@16:PROC | |
PUBLIC __imp__SetFileInformationByHandle@16 | |
.CONST | |
__imp__SetFileInformationByHandle@16 DD _SetFileInformationByHandle@16 | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment