ReactOS 0.4.17-dev-1281-g065abb3
hubregistry.h
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: Registry helpers shared by the registry and MS OS descriptor code
5 * COPYRIGHT: Copyright 2026 Justin Miller <justin.miller@reactos.org>
6 */
7
8#pragma once
9
10/* Enumeration failure text for a usbflags read error */
11#define HUB_MSG_REGISTRY_FAILURE 0x40011006
12
15{
19};
20
21VOID
26
31HubRegReadValue(
32 _In_ WDFKEY Key,
36
41HubWriteUsbflagsValue(
46
49VOID
51HubRefreshExtPropertiesInstalled(
LONG NTSTATUS
Definition: precomp.h:26
#define _IRQL_requires_(irql)
Definition: driverspecs.h:229
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
_In_ const HubIdStrings * Ids
VOID NTAPI HubFormatIdStrings(_In_ const USB_DEVICE_DESCRIPTOR *Descriptor, _Out_ HubIdStrings *Ids)
Definition: hubregistry.cpp:59
_In_ PCWSTR Name
Definition: hubregistry.h:33
#define _In_reads_bytes_(s)
Definition: no_sal2.h:170
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _Out_writes_bytes_(s)
Definition: no_sal2.h:178
char CHAR
Definition: pedump.c:57
CHAR Revision[MAX_REVISION_ID_STRING_LENGTH]
Definition: hubregistry.h:18
CHAR Vendor[MAX_VENDOR_ID_STRING_LENGTH]
Definition: hubregistry.h:16
CHAR Product[MAX_DEVICE_ID_STRING_LENGTH]
Definition: hubregistry.h:17
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
#define MAX_DEVICE_ID_STRING_LENGTH
Definition: ucxcontroller.h:34
#define MAX_REVISION_ID_STRING_LENGTH
Definition: ucxcontroller.h:35
#define MAX_VENDOR_ID_STRING_LENGTH
Definition: ucxcontroller.h:33
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4539
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
Definition: wdffdo.h:536
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
Definition: wdfresource.h:342