[SDK:KMDF] Populate OsVersionInfo in our static linking hack

This commit is contained in:
Victor Perevertkin 2021-03-10 18:41:46 +03:00
parent 6d1ca3553e
commit df35c8d05e
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -32,6 +32,7 @@ const WDFFUNC *WdfFunctions_01017 = (WDFFUNC *)(&WdfVersion.Functions);
// PWDF_DRIVER_GLOBALS WdfDriverGlobals = &((PFX_DRIVER_GLOBALS)&WdfDriverGlobalsVal)->Public;
WDF_BIND_INFO WdfBindInfo = {0};
PWDF_DRIVER_GLOBALS WdfDriverGlobals;
extern FxLibraryGlobalsType FxLibraryGlobals;
#define KMDF_DEFAULT_NAME "Wdf01000"
@ -61,6 +62,8 @@ RosInitWdf()
WdfBindInfo.FuncCount = WdfVersion.FuncCount;
WdfBindInfo.FuncTable = (WDFFUNC *)(&WdfVersion.Functions);
fxDriverGlobals->WdfBindInfo = &WdfBindInfo;
FxLibraryGlobals.OsVersionInfo.dwMajorVersion = 5;
FxLibraryGlobals.OsVersionInfo.dwMinorVersion = 1;
}
void