add separate file for delayed imports
This commit is contained in:
parent
883aadd449
commit
8c587b21dd
7 changed files with 65 additions and 29 deletions
21
inc/delay_imports.h
Normal file
21
inc/delay_imports.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef DELAY_IMPORTS_H
|
||||
#define DELAY_IMPORTS_H
|
||||
|
||||
#define ThreadQuerySetWin32StartAddress 9
|
||||
|
||||
typedef NTSTATUS(WINAPI* RTLVERIFYVERSIONINFOPROC)(PRTL_OSVERSIONINFOEXW, ULONG, ULONGLONG);
|
||||
typedef ULONGLONG(WINAPI* VERSETCONDITIONMASKPROC)(ULONGLONG, DWORD, BYTE);
|
||||
typedef const char* (CDECL* WINE_GET_VERSIONPROC)();
|
||||
typedef void (CDECL* WINE_GET_HOST_VERSIONPROC)(const char** sysname, const char** release);
|
||||
typedef NTSTATUS(WINAPI* NTQUERYINFORMATIONTHREADPROC)(HANDLE, LONG, PVOID, ULONG, PULONG);
|
||||
|
||||
extern NTQUERYINFORMATIONTHREADPROC NtQueryInformationThread;
|
||||
extern RTLVERIFYVERSIONINFOPROC RtlVerifyVersionInfo;
|
||||
extern WINE_GET_VERSIONPROC wine_get_version;
|
||||
extern WINE_GET_HOST_VERSIONPROC wine_get_host_version;
|
||||
|
||||
extern VERSETCONDITIONMASKPROC VerSetConditionMaskProc;
|
||||
|
||||
void imports_init();
|
||||
|
||||
#endif
|
|
@ -33,7 +33,6 @@
|
|||
#define VerSetConditionMask verhelp_set_mask
|
||||
#endif
|
||||
|
||||
void verhelp_init();
|
||||
BOOL verhelp_verify_version(PRTL_OSVERSIONINFOEXW versionInfo, ULONG typeMask, ULONGLONG conditionMask);
|
||||
ULONGLONG verhelp_set_mask(ULONGLONG ConditionMask, DWORD TypeMask, BYTE Condition);
|
||||
const char* verhelp_wine_get_version();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue