[SETUPLIB] Add some device utility functions; to be used later (#7258)

This commit is contained in:
Hermès Bélusca-Maïto 2024-07-12 18:39:39 +02:00
parent c59e2d20d9
commit 0f8dc6b2df
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,24 @@
/*
* PROJECT: ReactOS Setup Library
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Device utility functions
* COPYRIGHT: Copyright 2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
*/
#pragma once
/* FUNCTIONS *****************************************************************/
NTSTATUS
pOpenDeviceEx(
_In_ PCWSTR DevicePath,
_Out_ PHANDLE DeviceHandle,
_In_ ACCESS_MASK DesiredAccess,
_In_ ULONG ShareAccess);
NTSTATUS
pOpenDevice(
_In_ PCWSTR DevicePath,
_Out_ PHANDLE DeviceHandle);
/* EOF */