#include <ntddk.h>
#include <portcls.h>
#include <debug.h>
Go to the source code of this file.
◆ INITGUID
◆ MAX_MINIPORTS
◆ PUT_GUIDS_HERE
◆ AddDevice()
Definition at line 92 of file adapter.cpp.
96 DPRINT1(
"MPU401_KS AddDevice called\n");
PDEVICE_OBJECT PhysicalDeviceObject
NTSTATUS NTAPI PcAddAdapterDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject, IN PCPFNSTARTDEVICE StartDevice, IN ULONG MaxObjects, IN ULONG DeviceExtensionSize)
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
NTSTATUS(NTAPI * PCPFNSTARTDEVICE)(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PRESOURCELIST ResourceList)
NTSTATUS GZCALL StartDevice(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PRESOURCELIST ResourceList)
◆ DriverEntry()
Definition at line 107 of file adapter.cpp.
112 DPRINT1(
"MPU401_KS DriverEntry\n");
118 DPRINT1(
"PcInitializeAdapterDriver result 0x%08x\n",
Status);
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
DRIVER_ADD_DEVICE AddDevice
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
NTSTATUS NTAPI PcInitializeAdapterDriver(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPathName, IN PDRIVER_ADD_DEVICE AddDevice)
◆ StartDevice()
Definition at line 25 of file adapter.cpp.
34 DPRINT1(
"MPU401_KS StartDevice called\n");
45 DPRINT1(
"Calling PcNewPort with CLSID_PortMidi\n");
54 DPRINT1(
"Calling PcNewMiniport with CLSID_MiniportDriverUart\n");
63 DPRINT1(
"Calling Init of port object\n");
72 DPRINT1(
"Registering subdevice via PcRegisterSubdevice\n");
78 DPRINT1(
"PcRegisterSubdevice FAILED with status 0x%08x\n",
Status);
_In_ PNDIS_STRING _In_ PNDIS_STRING _Out_ PDEVICE_OBJECT * pDeviceObject
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
#define STATUS_INVALID_PARAMETER_3
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI PcNewPort(OUT PPORT *OutPort, IN REFCLSID ClassId)
NTSTATUS NTAPI PcNewMiniport(OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
NTSTATUS NTAPI PcRegisterSubdevice(IN PDEVICE_OBJECT DeviceObject, IN PWCHAR Name, IN PUNKNOWN Unknown)
◆ DeviceName