2016-02-04 12:42:05 +08:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2019-04-19 13:24:11 +08:00
|
|
|
* (C) COPYRIGHT AUTHORS, 2016 - 2019
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
|
|
|
* TITLE: SUP.H
|
|
|
|
*
|
2019-04-19 13:24:11 +08:00
|
|
|
* VERSION: 1.15
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
2019-04-19 13:24:11 +08:00
|
|
|
* DATE: 19 Apr 2019
|
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(
|
2019-04-19 13:24:11 +08:00
|
|
|
VOID);
|
2016-02-04 12:42:05 +08:00
|
|
|
|
|
|
|
PVOID supGetSystemInfo(
|
2019-04-19 13:24:11 +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,
|
2019-04-19 13:24:11 +08:00
|
|
|
_In_ PULONG DataSize);
|
2016-02-04 12:42:05 +08:00
|
|
|
|
|
|
|
BOOL supBackupVBoxDrv(
|
2019-04-19 13:24:11 +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,
|
2019-04-19 13:24:11 +08:00
|
|
|
_In_ BOOL Append);
|
2016-02-04 12:42:05 +08:00
|
|
|
|
2019-04-19 13:24:11 +08:00
|
|
|
BOOLEAN supIsObjectExists(
|
2017-04-17 19:45:41 +08:00
|
|
|
_In_ LPWSTR RootDirectory,
|
2019-04-19 13:24:11 +08:00
|
|
|
_In_ LPWSTR ObjectName);
|
|
|
|
|
|
|
|
BOOLEAN supStopVBoxService(
|
|
|
|
_In_ SC_HANDLE schSCManager,
|
|
|
|
_In_ LPWSTR szSvcName);
|
2016-02-04 12:42:05 +08:00
|
|
|
|
|
|
|
#define PathFileExists(lpszPath) (GetFileAttributes(lpszPath) != (DWORD)-1)
|