SetupDiOpenClassRegKeyEx
SetupDiOpenClassRegKeyEx function opens the device setup class registry key, the device interface class registry key, or a specific class's subkey. This function opens the specified key on the local computer or on a remote computer.
Syntax
HKEY SetupDiOpenClassRegKeyEx(
__in_opt const GUID *ClassGuid,
__in REGSAM samDesired,
__in DWORD Flags,
__in_opt PCTSTR MachineName,
__reserved PVOID Reserved
);
Parameters
ClassGuid [in, optional]
A pointer to the GUID of the class whose registry key is to be opened. This parameter is optional and can be
NULL. If this parameter is
NULL, the root of the class tree (
HKLM\SYSTEM\CurrentControlSet\Control\Class) is opened.
samDesired [in]
The registry security access for the key to be opened. For information about registry security access values of type REGSAM, see the Microsoft Windows SDK documentation.
Flags [in]
The type of registry key to be opened, which is specified by one of the following:
DIOCR_INSTALLER
Open a setup class key. If
ClassGuid is
NULL, open the root key of the class installer branch.
DIOCR_INTERFACE
Open an interface class key. If
ClassGuid is
NULL, open the root key of the interface class branch.
MachineName [in, optional]
Optionally points to a string that contains the name of a remote computer on which to open the specified key.
Reserved
Reserved. Must be
NULL.
Return value
SetupDiOpenClassRegKeyEx returns a handle to an opened registry key where information about this setup class can be stored/retrieved.
If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
Remarks
Depending on the value that is passed in the
samDesired parameter, it might be necessary for the caller of this function to be a member of the Administrators group.
SetupDiOpenClassRegKeyEx does not create a registry key if it does not already exist.
Callers of this function must close the handle returned from this function by calling RegCloseKey.
Requirements
Version
Available in Microsoft Windows 2000 and later versions of Windows.
Header
Setupapi.h (include Setupapi.h)
Library
Contained in Setupapi.lib. Link to Setupapi.lib.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
콜백 함수를 Angular 하위 구성 요소에 전달이 예제는 구성 요소에 함수를 전달하는 것과 관련하여 최근에 직면한 문제를 다룰 것입니다. 국가 목록을 제공하는 콤보 상자 또는 테이블 구성 요소. 지금까지 모든 것이 구성 요소 자체에 캡슐화되었으며 백엔드에 대한 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.