ReactOS  0.4.15-dev-1392-g3014417
main.c File Reference
#include <ndis.h>
#include <tdi.h>
#include <debug.h>
#include "acdapi.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

NTSTATUS DriverEntry (PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPath)
 

Function Documentation

◆ DriverEntry()

NTSTATUS DriverEntry ( PDRIVER_OBJECT  pDriverObject,
PUNICODE_STRING  pRegistryPath 
)

Definition at line 18 of file main.c.

20 {
24 
26 
27  Status = IoCreateDevice(pDriverObject,
28  0,
29  &DeviceName,
31  0,
32  FALSE,
33  &pDeviceObject);
34 
35  if (!NT_SUCCESS(Status))
36  {
37  DPRINT1("IoCreateDevice() failed (Status %lx)\n", Status);
38  return Status;
39  }
40 
41  return STATUS_SUCCESS;
42 }
_In_ PNDIS_STRING _In_ PNDIS_STRING _Out_ PDEVICE_OBJECT * pDeviceObject
Definition: ndis.h:4679
#define FILE_DEVICE_RASACD
Definition: acdapi.h:13
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3272
#define FALSE
Definition: types.h:117
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static const WCHAR L[]
Definition: oid.c:1250
#define DPRINT1
Definition: precomp.h:8
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
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define STATUS_SUCCESS
Definition: shellext.h:65