ReactOS  0.4.14-dev-854-gb9426a3
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
WCHAR DeviceName[]
Definition: adapter.cpp:21
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static const WCHAR L[]
Definition: oid.c:1250
Status
Definition: gdiplustypes.h:24
#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)
return STATUS_SUCCESS
Definition: btrfs.c:2938