#include "serial.h"
#include <debug.h>
Go to the source code of this file.
◆ SerialCreate()
Definition at line 15 of file create.c.
18{
22
23 TRACE_(SERIAL,
"IRP_MJ_CREATE\n");
26
28 {
29 INFO_(SERIAL,
"Not a directory\n");
31 goto ByeBye;
32 }
33
35 {
36 WARN_(SERIAL,
"COM%lu is already opened\n", DeviceExtension->
ComPort);
38 goto ByeBye;
39 }
40
41 INFO_(SERIAL,
"Open COM%lu: successfull\n", DeviceExtension->
ComPort);
44
45ByeBye:
47 Irp->IoStatus.Information = 0;
50}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
#define FILE_DIRECTORY_FILE
struct _SERIAL_DEVICE_EXTENSION * PSERIAL_DEVICE_EXTENSION
#define IoCompleteRequest
#define STATUS_NOT_A_DIRECTORY
#define STATUS_ACCESS_DENIED
_In_ PDEVICE_OBJECT DeviceObject
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack