TDL/Source/Furutaka/sup.h

60 lines
1.3 KiB
C
Raw Normal View History

2016-02-04 12:42:05 +08:00
/*******************************************************************************
*
2017-04-17 19:45:41 +08:00
* (C) COPYRIGHT AUTHORS, 2016 - 2017
2016-02-04 12:42:05 +08:00
*
* TITLE: SUP.H
*
2017-04-17 19:45:41 +08:00
* VERSION: 1.10
2016-02-04 12:42:05 +08:00
*
2017-04-17 19:45:41 +08:00
* DATE: 17 Apr 2017
2016-02-04 12:42:05 +08:00
*
* Common header file for the program support routines.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
*******************************************************************************/
#pragma once
typedef NTSTATUS(NTAPI *PENUMOBJECTSCALLBACK)(POBJECT_DIRECTORY_INFORMATION Entry, PVOID CallbackParam);
typedef struct _OBJSCANPARAM {
2017-04-17 19:45:41 +08:00
PWSTR Buffer;
ULONG BufferSize;
2016-02-04 12:42:05 +08:00
} OBJSCANPARAM, *POBJSCANPARAM;
ULONG_PTR supGetNtOsBase(
2017-04-17 19:45:41 +08:00
VOID
);
2016-02-04 12:42:05 +08:00
PVOID supGetSystemInfo(
2017-04-17 19:45:41 +08:00
_In_ SYSTEM_INFORMATION_CLASS InfoClass
);
2016-02-04 12:42:05 +08:00
PBYTE supQueryResourceData(
2017-04-17 19:45:41 +08:00
_In_ ULONG_PTR ResourceId,
_In_ PVOID DllHandle,
_In_ PULONG DataSize
);
2016-02-04 12:42:05 +08:00
BOOL supBackupVBoxDrv(
2017-04-17 19:45:41 +08:00
_In_ BOOL bRestore
);
2016-02-04 12:42:05 +08:00
SIZE_T supWriteBufferToFile(
2017-04-17 19:45:41 +08:00
_In_ PWSTR lpFileName,
_In_ PVOID Buffer,
_In_ SIZE_T Size,
_In_ BOOL Flush,
_In_ BOOL Append
);
2016-02-04 12:42:05 +08:00
BOOL supIsObjectExists(
2017-04-17 19:45:41 +08:00
_In_ LPWSTR RootDirectory,
_In_ LPWSTR ObjectName
);
2016-02-04 12:42:05 +08:00
#define PathFileExists(lpszPath) (GetFileAttributes(lpszPath) != (DWORD)-1)