ReactOS 0.4.15-dev-6679-g945ee4b
|
#include <kmt_test.h>
#include "kmtest.h"
#include <kmt_public.h>
#include <assert.h>
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | _KMTFLT_MESSAGE_HEADER |
Macros | |
#define | KMT_FLT_USER_MODE |
Typedefs | |
typedef struct _KMTFLT_MESSAGE_HEADER | KMTFLT_MESSAGE_HEADER |
typedef struct _KMTFLT_MESSAGE_HEADER * | PKMTFLT_MESSAGE_HEADER |
Functions | |||||||||||||||
KmtCloseService | |||||||||||||||
Close the specified driver service handle
| |||||||||||||||
DWORD | KmtpCreateService (IN PCWSTR ServiceName, IN PCWSTR ServicePath, IN PCWSTR DisplayName OPTIONAL, IN DWORD ServiceType, OUT SC_HANDLE *ServiceHandle) | ||||||||||||||
KmtFltAddAltitude | |||||||||||||||
Sets up the mini-filter altitude data in the registry
| |||||||||||||||
DWORD | EnablePrivilegeInCurrentProcess (_In_z_ LPWSTR lpPrivName, _In_ BOOL bEnable) | ||||||||||||||
DWORD | KmtFltAddAltitude (_In_z_ LPWSTR Altitude) | ||||||||||||||
DWORD | EnablePrivilege (_In_ HANDLE hToken, _In_z_ LPWSTR lpPrivName, _In_ BOOL bEnable) | ||||||||||||||
KmtFltCreateService | |||||||||||||||
Create the specified driver service and return a handle to it
| |||||||||||||||
DWORD | KmtFltCreateService (_In_z_ PCWSTR ServiceName, _In_z_ PCWSTR DisplayName, _Out_ SC_HANDLE *ServiceHandle) | ||||||||||||||
KmtFltDeleteService | |||||||||||||||
Delete the specified filter driver
| |||||||||||||||
DWORD | KmtFltDeleteService (_In_opt_z_ PCWSTR ServiceName, _Inout_ SC_HANDLE *ServiceHandle) | ||||||||||||||
KmtFltLoadDriver | |||||||||||||||
Delete the specified filter driver
| |||||||||||||||
DWORD | KmtFltLoadDriver (_In_ BOOLEAN EnableDriverLoadPrivlege, _In_ BOOLEAN RestartIfRunning, _In_ BOOLEAN ConnectComms, _Out_ HANDLE *hPort) | ||||||||||||||
KmtFltUnloadDriver | |||||||||||||||
Unload the specified filter driver
| |||||||||||||||
DWORD | KmtFltUnloadDriver (_In_ HANDLE *hPort, _In_ BOOLEAN DisonnectComms) | ||||||||||||||
KmtFltConnectComms | |||||||||||||||
Create a comms connection to the specified filter
| |||||||||||||||
DWORD | KmtFltConnectComms (_Out_ HANDLE *hPort) | ||||||||||||||
KmtFltDisconnectComms | |||||||||||||||
Disconenct from the comms port
| |||||||||||||||
DWORD | KmtFltDisconnectComms (_In_ HANDLE hPort) | ||||||||||||||
KmtFltCloseService | |||||||||||||||
Close the specified driver service handle
| |||||||||||||||
DWORD | KmtFltCloseService (_Inout_ SC_HANDLE *ServiceHandle) | ||||||||||||||
KmtFltRunKernelTest | |||||||||||||||
Run the specified filter test part
| |||||||||||||||
DWORD | KmtFltRunKernelTest (_In_ HANDLE hPort, _In_z_ PCSTR TestName) | ||||||||||||||
KmtFltSendToDriver | |||||||||||||||
Send an I/O control message with no arguments to the driver opened with KmtOpenDriver
| |||||||||||||||
DWORD | KmtFltSendToDriver (_In_ HANDLE hPort, _In_ DWORD Message) | ||||||||||||||
KmtFltSendStringToDriver | |||||||||||||||
Send an I/O control message with a string argument to the driver opened with KmtOpenDriver
| |||||||||||||||
DWORD | KmtFltSendStringToDriver (_In_ HANDLE hPort, _In_ DWORD Message, _In_ PCSTR String) | ||||||||||||||
KmtFltSendWStringToDriver | |||||||||||||||
Send an I/O control message with a wide string argument to the driver opened with KmtOpenDriver
| |||||||||||||||
DWORD | KmtFltSendWStringToDriver (_In_ HANDLE hPort, _In_ DWORD Message, _In_ PCWSTR String) | ||||||||||||||
KmtFltSendUlongToDriver | |||||||||||||||
Send an I/O control message with an integer argument to the driver opened with KmtOpenDriver
| |||||||||||||||
DWORD | KmtFltSendUlongToDriver (_In_ HANDLE hPort, _In_ DWORD Message, _In_ DWORD Value) | ||||||||||||||
KmtSendBufferToDriver | |||||||||||||||
Send an I/O control message with the specified arguments to the driver opened with KmtOpenDriver
| |||||||||||||||
DWORD | KmtFltSendBufferToDriver (_In_ HANDLE hPort, _In_ DWORD Message, _In_reads_bytes_(BufferSize) LPVOID InBuffer, _In_ DWORD BufferSize, _Out_writes_bytes_to_opt_(OutBufferSize, *BytesReturned) LPVOID OutBuffer, _In_ DWORD OutBufferSize, _Out_opt_ LPDWORD BytesReturned) | ||||||||||||||
Variables | |
HANDLE | KmtestHandle |
static WCHAR | TestServiceName [MAX_PATH] |
#define KMT_FLT_USER_MODE |
Definition at line 10 of file fltsupport.c.
Definition at line 532 of file fltsupport.c.
Referenced by EnablePrivilegeInCurrentProcess().
Definition at line 564 of file fltsupport.c.
Referenced by KmtFltLoadDriver().
Definition at line 448 of file fltsupport.c.
Referenced by START_TEST().
Definition at line 242 of file fltsupport.c.
Definition at line 207 of file fltsupport.c.
Referenced by KmtFltLoadDriver(), and START_TEST().
DWORD KmtFltCreateService | ( | _In_z_ PCWSTR | ServiceName, |
_In_z_ PCWSTR | DisplayName, | ||
_Out_ SC_HANDLE * | ServiceHandle | ||
) |
Definition at line 63 of file fltsupport.c.
Referenced by START_TEST().
DWORD KmtFltDeleteService | ( | _In_opt_z_ PCWSTR | ServiceName, |
_Inout_ SC_HANDLE * | ServiceHandle | ||
) |
Definition at line 97 of file fltsupport.c.
Referenced by START_TEST().
DWORD KmtFltLoadDriver | ( | _In_ BOOLEAN | EnableDriverLoadPrivlege, |
_In_ BOOLEAN | RestartIfRunning, | ||
_In_ BOOLEAN | ConnectComms, | ||
_Out_ HANDLE * | hPort | ||
) |
Definition at line 112 of file fltsupport.c.
Referenced by START_TEST().
Definition at line 261 of file fltsupport.c.
DWORD KmtFltSendBufferToDriver | ( | _In_ HANDLE | hPort, |
_In_ DWORD | Message, | ||
_In_reads_bytes_(BufferSize) LPVOID | InBuffer, | ||
_In_ DWORD | BufferSize, | ||
_Out_writes_bytes_to_opt_(OutBufferSize, *BytesReturned) LPVOID | OutBuffer, | ||
_In_ DWORD | OutBufferSize, | ||
_Out_opt_ LPDWORD | BytesReturned | ||
) |
Definition at line 384 of file fltsupport.c.
Referenced by KmtFltSendStringToDriver(), KmtFltSendToDriver(), KmtFltSendUlongToDriver(), and KmtFltSendWStringToDriver().
Definition at line 305 of file fltsupport.c.
Referenced by KmtFltRunKernelTest().
Definition at line 281 of file fltsupport.c.
Definition at line 353 of file fltsupport.c.
Definition at line 169 of file fltsupport.c.
Referenced by START_TEST().
DWORD KmtpCreateService | ( | IN PCWSTR | ServiceName, |
IN PCWSTR | ServicePath, | ||
IN PCWSTR DisplayName | OPTIONAL, | ||
IN DWORD | ServiceType, | ||
OUT SC_HANDLE * | ServiceHandle | ||
) |
Definition at line 414 of file service.c.
Referenced by KmtCreateService(), and KmtFltCreateService().
Definition at line 42 of file fltsupport.c.
Referenced by KmtFltAddAltitude(), KmtFltConnectComms(), KmtFltCreateService(), KmtFltLoadDriver(), KmtFltUnloadDriver(), and START_TEST().