[FLTMGR] Latest from my branch (#135)
[reactos.git] / modules / rostests / kmtests / fltmgr / fltmgr_register / fltmgr_reg_user.c
1 /*
2 * PROJECT: ReactOS kernel-mode tests - Filter Manager
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: Tests for checking filter registration
5 * PROGRAMMER: Ged Murphy <gedmurphy@reactos.org>
6 */
7
8 #include <kmt_test.h>
9
10
11 START_TEST(FltMgrReg)
12 {
13 static WCHAR FilterName[] = L"FltMgrReg";
14 SC_HANDLE hService;
15 HANDLE hPort;
16
17 ok(KmtFltCreateService(FilterName, L"FltMgrLoad test driver", &hService) == ERROR_SUCCESS, "Failed to create the reg entry\n");
18 ok(KmtFltAddAltitude(L"123456") == ERROR_SUCCESS, "\n");
19 ok(KmtFltLoadDriver(TRUE, FALSE, FALSE, &hPort) == ERROR_SUCCESS, "Failed to load the driver\n");
20 //__debugbreak();
21 ok(KmtFltUnloadDriver(hPort, FALSE) == ERROR_SUCCESS, "Failed to unload the driver\n");
22 ok(KmtFltDeleteService(NULL, &hService) == ERROR_SUCCESS, "Failed to delete the driver\n");
23 }