mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
84
sdk/include/psdk/usbrpmif.h
Normal file
84
sdk/include/psdk/usbrpmif.h
Normal file
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* usbrpmif.h
|
||||
*
|
||||
* This file is part of the ReactOS PSDK package.
|
||||
*
|
||||
* Contributors:
|
||||
* Created by Amine Khaldi <amine.khaldi@reactos.org>
|
||||
*
|
||||
* THIS SOFTWARE IS NOT COPYRIGHTED
|
||||
*
|
||||
* This source code is offered for use in the public domain. You may
|
||||
* use, modify or distribute it freely.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAIMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "windef.h"
|
||||
#include "usb100.h"
|
||||
|
||||
#if !defined(_USBRPM_DRIVER_)
|
||||
#define USBRPMAPI DECLSPEC_IMPORT
|
||||
#else
|
||||
#define USBRPMAPI
|
||||
#endif
|
||||
|
||||
typedef struct _USBRPM_DEVICE_INFORMATION {
|
||||
ULONG64 HubId;
|
||||
ULONG ConnectionIndex;
|
||||
UCHAR DeviceClass;
|
||||
USHORT VendorId;
|
||||
USHORT ProductId;
|
||||
WCHAR ManufacturerString[MAXIMUM_USB_STRING_LENGTH];
|
||||
WCHAR ProductString[MAXIMUM_USB_STRING_LENGTH];
|
||||
WCHAR HubSymbolicLinkName[MAX_PATH];
|
||||
} USBRPM_DEVICE_INFORMATION, *PUSBRPM_DEVICE_INFORMATION;
|
||||
|
||||
typedef struct _USBRPM_DEVICE_LIST {
|
||||
ULONG NumberOfDevices;
|
||||
USBRPM_DEVICE_INFORMATION Device[0];
|
||||
} USBRPM_DEVICE_LIST, *PUSBRPM_DEVICE_LIST;
|
||||
|
||||
USBRPMAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
RPMRegisterAlternateDriver(
|
||||
IN PDRIVER_OBJECT DriverObject,
|
||||
IN LPCWSTR CompatibleId,
|
||||
OUT PHANDLE RegisteredDriver);
|
||||
|
||||
USBRPMAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
RPMUnregisterAlternateDriver(
|
||||
IN HANDLE RegisteredDriver);
|
||||
|
||||
USBRPMAPI
|
||||
NTSTATUS
|
||||
RPMGetAvailableDevices(
|
||||
IN HANDLE RegisteredDriver,
|
||||
IN USHORT Locale,
|
||||
OUT PUSBRPM_DEVICE_LIST *DeviceList);
|
||||
|
||||
USBRPMAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
RPMLoadAlternateDriverForDevice(
|
||||
IN HANDLE RegisteredDriver,
|
||||
IN ULONG64 HubID,
|
||||
IN ULONG ConnectionIndex,
|
||||
IN OPTIONAL REFGUID OwnerGuid);
|
||||
|
||||
USBRPMAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
RPMUnloadAlternateDriverForDevice(
|
||||
IN HANDLE RegisteredDriver,
|
||||
IN ULONG64 HubID,
|
||||
IN ULONG ConnectionIndex);
|
Loading…
Add table
Add a link
Reference in a new issue