ReactOS 0.4.16-dev-747-gbc52d5f
|
#include <kmt_test.h>
#include "kmtest.h"
#include <kmt_public.h>
#include <ndk/setypes.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) | ||||||||||||||
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 EnableDriverLoadPrivilege, _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) | ||||||||||||||
KmtFltAddAltitude | |||||||||||||||
Sets up the mini-filter altitude data in the registry
| |||||||||||||||
DWORD | KmtFltAddAltitude (_In_z_ LPWSTR Altitude) | ||||||||||||||
Variables | |
HANDLE | KmtestHandle |
static WCHAR | TestServiceName [MAX_PATH] |
#define KMT_FLT_USER_MODE |
Definition at line 10 of file fltsupport.c.
Definition at line 444 of file fltsupport.c.
Referenced by START_TEST().
Definition at line 238 of file fltsupport.c.
Definition at line 203 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 60 of file fltsupport.c.
Referenced by START_TEST().
DWORD KmtFltDeleteService | ( | _In_opt_z_ PCWSTR | ServiceName, |
_Inout_ SC_HANDLE * | ServiceHandle | ||
) |
Definition at line 94 of file fltsupport.c.
Referenced by START_TEST().
DWORD KmtFltLoadDriver | ( | _In_ BOOLEAN | EnableDriverLoadPrivilege, |
_In_ BOOLEAN | RestartIfRunning, | ||
_In_ BOOLEAN | ConnectComms, | ||
_Out_ HANDLE * | hPort | ||
) |
Definition at line 109 of file fltsupport.c.
Referenced by START_TEST().
Definition at line 257 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 380 of file fltsupport.c.
Referenced by KmtFltSendStringToDriver(), KmtFltSendToDriver(), KmtFltSendUlongToDriver(), and KmtFltSendWStringToDriver().
Definition at line 301 of file fltsupport.c.
Referenced by KmtFltRunKernelTest().
Definition at line 277 of file fltsupport.c.
Definition at line 349 of file fltsupport.c.
Definition at line 165 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 39 of file fltsupport.c.
Referenced by KmtFltAddAltitude(), KmtFltConnectComms(), KmtFltCreateService(), KmtFltLoadDriver(), KmtFltUnloadDriver(), and START_TEST().