Go to the source code of this file.
|
#define | STATIC_KoCreateObject 0x72CF721CL, 0x525A, 0x11D1, {0x9A, 0xA1, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96} |
|
#define | KOSTRING_CreateObject L"{72CF721C-525A-11D1-9AA1-00A0C9223196}" |
|
#define | CLSCTX_KERNEL_SERVER 0x00000200 |
|
#define | STATIC_IID_IKoInitializeParentDeviceObject 0x21B36996, 0x8DE3, 0x11D1, 0x8A, 0xE0, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 |
|
#define | COMDDKMETHOD DECLSPEC_IMPORT |
|
#define | COMDDKAPI DECLSPEC_IMPORT |
|
#define | INTERFACE INonDelegatedUnknown |
|
#define | INTERFACE IIndirectedUnknown |
|
#define | INTERFACE IKoInitializeParentDeviceObject |
|
◆ CLSCTX_KERNEL_SERVER
#define CLSCTX_KERNEL_SERVER 0x00000200 |
◆ COMDDKAPI
◆ COMDDKMETHOD
◆ INTERFACE [1/3]
◆ INTERFACE [2/3]
◆ INTERFACE [3/3]
◆ KOSTRING_CreateObject
#define KOSTRING_CreateObject L"{72CF721C-525A-11D1-9AA1-00A0C9223196}" |
◆ STATIC_IID_IKoInitializeParentDeviceObject
#define STATIC_IID_IKoInitializeParentDeviceObject 0x21B36996, 0x8DE3, 0x11D1, 0x8A, 0xE0, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 |
◆ STATIC_KoCreateObject
#define STATIC_KoCreateObject 0x72CF721CL, 0x525A, 0x11D1, {0x9A, 0xA1, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96} |
◆ KoCreateObjectHandler
◆ DECLARE_INTERFACE() [1/2]
DECLARE_INTERFACE |
( |
IIndirectedUnknown |
| ) |
|
Definition at line 93 of file kcom.h.
93 {
99
103
107};
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
◆ DECLARE_INTERFACE() [2/2]
DECLARE_INTERFACE |
( |
INonDelegatedUnknown |
| ) |
|
◆ DECLARE_INTERFACE_()
DECLARE_INTERFACE_ |
( |
IKoInitializeParentDeviceObject |
, |
|
|
IUnknown |
|
|
) |
| |
◆ DEFINE_GUIDEX()
DEFINE_GUIDEX |
( |
IID_IKoInitializeParentDeviceObject |
| ) |
|
◆ DEFINE_GUIDSTRUCT()
DEFINE_GUIDSTRUCT |
( |
"72CF721C-525A-11D1-9AA1-00A0C9223196" |
, |
|
|
KoCreateObject |
|
|
) |
| |
◆ KoCreateInstance()
Definition at line 19 of file kcom.c.
25{
26
27
28
29 DPRINT(
"KoCreateInstance called\n");
30
32 {
33 DPRINT(
"KoCreateInstance: ClsContext must be CLSCTX_KERNEL_SERVER\n");
35 }
36
38 {
39 DPRINT(
"KoCreateInstance: InterfaceId cannot be IID_IUnknown\n");
41 }
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 DPRINT(
"** FAKING SUCCESS **\n");
61
63}
#define CLSCTX_KERNEL_SERVER
#define STATUS_INVALID_PARAMETER_4
#define STATUS_INVALID_PARAMETER_3
#define IsEqualGUIDAligned(guid1, guid2)
◆ KoDeviceInitialize()
Definition at line 1513 of file api.c.
1515{
1517
1518
1520
1522}
struct _BEEP_DEVICE_EXTENSION * PDEVICE_EXTENSION
KSDDKAPI NTSTATUS NTAPI KsAddObjectCreateItemToDeviceHeader(IN KSDEVICE_HEADER DevHeader, IN PDRIVER_DISPATCH Create, IN PVOID Context, IN PWCHAR ObjectClass, IN PSECURITY_DESCRIPTOR SecurityDescriptor)
NTSTATUS NTAPI KopDispatchCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
#define KOSTRING_CreateObject
_In_ PDEVICE_OBJECT DeviceObject
◆ KoDriverInitialize()
Definition at line 1530 of file api.c.
1534{
1537
1538
1540
1541
1543 {
1544
1546
1547
1551
1552
1554
1555
1557
1558
1559 DPRINT1(
"Setting KS function handlers\n");
1563
1564 }
1565
1567}
#define NT_SUCCESS(StatCode)
KSDDKAPI NTSTATUS NTAPI KsDefaultDispatchPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
NTSTATUS NTAPI KopAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject)
KSDDKAPI NTSTATUS NTAPI KsDefaultForwardIrp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
COMDDKAPI NTSTATUS NTAPI KoDriverInitialize(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPathName, IN KoCreateObjectHandler CreateObjectHandler)
KSDDKAPI NTSTATUS NTAPI KsDefaultDispatchPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
KSDDKAPI NTSTATUS NTAPI KsSetMajorFunctionHandler(IN PDRIVER_OBJECT DriverObject, IN ULONG MajorFunction)
KSDDKAPI VOID NTAPI KsNullDriverUnload(IN PDRIVER_OBJECT DriverObject)
NTSTATUS NTAPI IoAllocateDriverObjectExtension(IN PDRIVER_OBJECT DriverObject, IN PVOID ClientIdentificationAddress, IN ULONG DriverObjectExtensionSize, OUT PVOID *DriverObjectExtension)
#define IRP_MJ_DEVICE_CONTROL
KoCreateObjectHandler CreateObjectHandler
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
#define IRP_MJ_SYSTEM_CONTROL
Referenced by KoDriverInitialize(), and KopDispatchCreate().
◆ KoRelease()