TDL/Source/Furutaka/sup.h

58 lines
1.4 KiB
C
Raw Normal View History

2016-02-04 12:42:05 +08:00
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2016 - 2019
2016-02-04 12:42:05 +08:00
*
* TITLE: SUP.H
*
* VERSION: 1.15
2016-02-04 12:42:05 +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(
VOID);
2016-02-04 12:42:05 +08:00
PVOID supGetSystemInfo(
_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(
_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
BOOLEAN supIsObjectExists(
2017-04-17 19:45:41 +08:00
_In_ LPWSTR RootDirectory,
_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)