ReactOS 0.4.16-dev-297-gc569aee
ksecdd.c File Reference
#include "ksecdd.h"
#include <debug.h>
Include dependency graph for ksecdd.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI DriverEntry (_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
 

Variables

PDEVICE_OBJECT KsecDeviceObject
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file ksecdd.c.

Function Documentation

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( _In_ PDRIVER_OBJECT  DriverObject,
_In_ PUNICODE_STRING  RegistryPath 
)

Definition at line 25 of file ksecdd.c.

28{
31
32 /* Create the KsecDD device */
34 0,
37 0x100u,
38 FALSE,
40 if (!NT_SUCCESS(Status))
41 {
42 DPRINT1("Failed to create KsecDD device: 0x%lx\n", Status);
43 return Status;
44 }
45
46 /* Set up dispatch table */
49 DriverObject->MajorFunction[IRP_MJ_READ] = KsecDdDispatch;
54
55 /* Initialize */
57
58 return STATUS_SUCCESS;
59}
LONG NTSTATUS
Definition: precomp.h:26
#define DPRINT1
Definition: precomp.h:8
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
VOID NTAPI KsecInitializeEncryptionSupport(VOID)
Definition: crypt.c:44
NTSTATUS NTAPI KsecDdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
Definition: dispatch.c:184
Status
Definition: gdiplustypes.h:25
PDEVICE_OBJECT KsecDeviceObject
Definition: ksecdd.c:18
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)
Definition: device.c:1031
#define L(x)
Definition: ntvdm.h:50
#define FILE_DEVICE_KSEC
Definition: winioctl.h:102
#define IRP_MJ_CLOSE
Definition: rdpdr.c:45
#define IRP_MJ_READ
Definition: rdpdr.c:46
#define IRP_MJ_DEVICE_CONTROL
Definition: rdpdr.c:52
#define IRP_MJ_QUERY_VOLUME_INFORMATION
Definition: rdpdr.c:50
#define IRP_MJ_WRITE
Definition: rdpdr.c:47
#define IRP_MJ_CREATE
Definition: rdpdr.c:44
#define IRP_MJ_QUERY_INFORMATION
Definition: rdpdr.c:48
#define STATUS_SUCCESS
Definition: shellext.h:65
#define RTL_CONSTANT_STRING(s)
Definition: tunneltest.c:14
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3275
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213

Variable Documentation

◆ KsecDeviceObject

PDEVICE_OBJECT KsecDeviceObject

Definition at line 18 of file ksecdd.c.

Referenced by DriverEntry().