SetupApiSetupDiGetClassDescription Method

Retrieves the class description associated with the specified setup class GUID..

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

Boolean
Returns if it is successful, or otherwise.

To get extended error information, call GetLastWin32Error.

Remarks

See Also