SetupApiSetupDiGetClassDescription Method
Retrieves the class description associated with the specified setup class GUID..
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("SetupApi.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static bool SetupDiGetClassDescription(
ref Guid refClassGuid,
IntPtr classDescription,
int classDescriptionSize,
ref int refRequiredSize
)
<DllImportAttribute("SetupApi.dll", CharSet := CharSet.Unicode, SetLastError := true>]
Public Shared Function SetupDiGetClassDescription (
ByRef refClassGuid As Guid,
classDescription As IntPtr,
classDescriptionSize As Integer,
ByRef refRequiredSize As Integer
) As Boolean
Dim refClassGuid As Guid
Dim classDescription As IntPtr
Dim classDescriptionSize As Integer
Dim refRequiredSize As Integer
Dim returnValue As Boolean
returnValue = SetupApi.SetupDiGetClassDescription(refClassGuid,
classDescription, classDescriptionSize,
refRequiredSize)
public:
[DllImportAttribute(L"SetupApi.dll", CharSet = CharSet::Unicode, SetLastError = true)]
static bool SetupDiGetClassDescription(
Guid% refClassGuid,
IntPtr classDescription,
int classDescriptionSize,
int% refRequiredSize
)
[<DllImportAttribute("SetupApi.dll", CharSet = CharSet.Unicode, SetLastError = true)>]
static member SetupDiGetClassDescription :
refClassGuid : Guid byref *
classDescription : IntPtr *
classDescriptionSize : int *
refRequiredSize : int byref -> bool
No code example is currently available or this language may not be supported.
- refClassGuid Guid
-
The GUID of the setup class whose description is to be retrieved.
- classDescription IntPtr
-
A pointer to a character buffer that receives the class description.
- classDescriptionSize Int32
-
The size, in characters, of the classDescription buffer.
- refRequiredSize Int32
-
The size, in characters, that is required to store the class description (including a NULL terminator).
refRequiredSize is always less than LINE_LEN. This parameter is optional and can be NULL.
Boolean
Returns
if it is successful, or
otherwise.
To get extended error information, call
GetLastWin32Error.