#include "condrv.h"
#include <condrv/ntddcon.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ ConDrvCreateController()
Definition at line 21 of file control.c.
23{
28
29 DPRINT1(
"Create the Controller device...\n");
30
33
34
37
38
40 0,
45 &Controller);
47
50 {
52 goto Done;
53 }
54
55 Controller->
Flags &= ~DO_DEVICE_INITIALIZING;
56
57
59
60Done:
63}
#define FILE_DEVICE_SECURE_OPEN
struct _CONDRV_DRIVER * PCONDRV_DRIVER
#define NT_SUCCESS(StatCode)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define DD_CONDRV_CTRL_DEVICE_NAME_U
#define DD_CONDRV_CTRL_SYMLNK_NAME_U
NTSTATUS NTAPI IoCreateDevice(IN PDRIVER_OBJECT DriverObject, IN ULONG DeviceExtensionSize, IN PUNICODE_STRING DeviceName, IN DEVICE_TYPE DeviceType, IN ULONG DeviceCharacteristics, IN BOOLEAN Exclusive, OUT PDEVICE_OBJECT *DeviceObject)
VOID NTAPI IoDeleteDevice(IN PDEVICE_OBJECT DeviceObject)
PVOID NTAPI IoGetDriverObjectExtension(IN PDRIVER_OBJECT DriverObject, IN PVOID ClientIdentificationAddress)
NTSTATUS NTAPI IoCreateSymbolicLink(IN PUNICODE_STRING SymbolicLinkName, IN PUNICODE_STRING DeviceName)
PPCI_DRIVER_EXTENSION DriverExtension
#define FILE_DEVICE_UNKNOWN
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Referenced by DriverEntry().
◆ ConDrvDeleteController()
Definition at line 66 of file control.c.
67{
71
72 DPRINT1(
"Delete the Controller device...\n");
73
74
77
80
81
83
86}
#define STATUS_OBJECT_TYPE_MISMATCH
NTSTATUS NTAPI IoDeleteSymbolicLink(IN PUNICODE_STRING SymbolicLinkName)
Referenced by ConDrvUnload().