-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdriver.h
38 lines (23 loc) · 928 Bytes
/
driver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*++
Copyright (c) Microsoft Corporation
Module Name:
driver.h
Abstract:
--*/
#pragma once
typedef struct _WDFDRIVER_UDECXMBIM_CONTEXT {
//LIST_ENTRY ControllerListHead;
//KSPIN_LOCK ControllerListLock;
//ULONG ControllerListCount;
} WDFDRIVER_UDECXMBIM_CONTEXT, *PWDFDRIVER_UDECXMBIM_CONTEXT;
WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(WDFDRIVER_UDECXMBIM_CONTEXT, WdfDriverGetUdecxCamCtx);
extern PWDFDRIVER_UDECXMBIM_CONTEXT g_WdfDriverUdecxCamCtx;
extern PDRIVER_OBJECT g_UdecxCamDriverObject;
extern "C" {
DRIVER_INITIALIZE DriverEntry;
}
EVT_WDF_OBJECT_CONTEXT_CLEANUP DriverCleanup;
#define UDECXVDEV_POOL_TAG 'VCAM'
#define ALLOCATE_PAGED_POOL(_y) ExAllocatePoolWithTag(PagedPool,_y, UDECXVDEV_POOL_TAG)
#define ALLOCATE_NONPAGED_POOL(_y) ExAllocatePoolWithTag(NonPagedPoolNx,_y, UDECXVDEV_POOL_TAG)
#define FREE_POOL(_x) {ExFreePool(_x);_x=NULL;};