setupapi: Implement SetupDiGetClassDescriptionExA.

This commit is contained in:
Juan Lang 2007-09-20 09:15:16 -07:00 committed by Alexandre Julliard
parent 80be1fe740
commit 6b50538f12
1 changed files with 46 additions and 2 deletions

View File

@ -1325,8 +1325,52 @@ BOOL WINAPI SetupDiGetClassDescriptionExA(
PCSTR MachineName,
PVOID Reserved)
{
FIXME("\n");
return FALSE;
HKEY hKey;
DWORD dwLength;
hKey = SetupDiOpenClassRegKeyExA(ClassGuid,
KEY_ALL_ACCESS,
DIOCR_INSTALLER,
MachineName,
Reserved);
if (hKey == INVALID_HANDLE_VALUE)
{
WARN("SetupDiOpenClassRegKeyExA() failed (Error %u)\n", GetLastError());
return FALSE;
}
if (RequiredSize != NULL)
{
dwLength = 0;
if (RegQueryValueExA(hKey,
NULL,
NULL,
NULL,
NULL,
&dwLength))
{
RegCloseKey(hKey);
return FALSE;
}
*RequiredSize = dwLength;
}
dwLength = ClassDescriptionSize;
if (RegQueryValueExA(hKey,
NULL,
NULL,
NULL,
(LPBYTE)ClassDescription,
&dwLength))
{
RegCloseKey(hKey);
return FALSE;
}
RegCloseKey(hKey);
return TRUE;
}
/***********************************************************************