ReactOS 0.4.17-dev-1133-gc25e4fd
driver.cpp
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS SuperSpeed USB Hub Driver
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Driver entry
5 * COPYRIGHT: Copyright 2026 Justin Miller <justinmiller100@gmail.com>
6 */
7
8#include "usbhub3.h"
9
10#define NDEBUG
11#include <debug.h>
12
13extern "C"
19{
22
24 Config.DriverPoolTag = HUB_POOL_TAG;
25
27 if (!NT_SUCCESS(Status))
28 DPRINT1("WdfDriverCreate failed 0x%lx\n", Status);
29
30 return Status;
31}
LONG NTSTATUS
Definition: precomp.h:26
#define DPRINT1
Definition: precomp.h:8
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
Status
Definition: gdiplustypes.h:24
#define _In_
Definition: no_sal2.h:158
#define NTAPI
Definition: typedefs.h:36
DRIVER_INITIALIZE DriverEntry
Definition: driver.cpp:13
_Must_inspect_result_ _In_ WDFDEVICE _In_ PUCX_CONTROLLER_CONFIG Config
EVT_WDF_DRIVER_DEVICE_ADD HubEvtDeviceAdd
Definition: usbhub3.h:30
#define HUB_POOL_TAG
Definition: usbhub3.h:15
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:215
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
FORCEINLINE VOID WDF_DRIVER_CONFIG_INIT(_Out_ PWDF_DRIVER_CONFIG Config, _In_opt_ PFN_WDF_DRIVER_DEVICE_ADD EvtDriverDeviceAdd)
Definition: wdfdriver.h:148
#define WDF_NO_HANDLE
Definition: wdftypes.h:107
#define WDF_NO_OBJECT_ATTRIBUTES
Definition: wdftypes.h:105