mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:02:57 +00:00
implemented SetupDiGetClassDevPropertySheetsA
svn path=/trunk/; revision=19783
This commit is contained in:
parent
72aa8c78c4
commit
287d585255
1 changed files with 23 additions and 5 deletions
|
@ -3584,11 +3584,27 @@ BOOL WINAPI SetupDiGetClassDevPropertySheetsA(
|
||||||
OUT PDWORD RequiredSize OPTIONAL,
|
OUT PDWORD RequiredSize OPTIONAL,
|
||||||
IN DWORD PropertySheetType)
|
IN DWORD PropertySheetType)
|
||||||
{
|
{
|
||||||
FIXME ("Stub %p %p %p %d %p %d\n",
|
PROPSHEETHEADERW psh;
|
||||||
DeviceInfoSet, DeviceInfoData, PropertySheetHeader, PropertySheetHeaderPageListSize,
|
BOOL ret = FALSE;
|
||||||
RequiredSize, PropertySheetType);
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
TRACE("%p %p %p 0%lx %p 0x%lx\n", DeviceInfoSet, DeviceInfoData,
|
||||||
return FALSE;
|
PropertySheetHeader, PropertySheetHeaderPageListSize,
|
||||||
|
RequiredSize, PropertySheetType);
|
||||||
|
|
||||||
|
psh.dwFlags = PropertySheetHeader->dwFlags;
|
||||||
|
psh.phpage = PropertySheetHeader->phpage;
|
||||||
|
psh.nPages = PropertySheetHeader->nPages;
|
||||||
|
|
||||||
|
ret = SetupDiGetClassDevPropertySheetsW(DeviceInfoSet, DeviceInfoData, PropertySheetHeader ? &psh : NULL,
|
||||||
|
PropertySheetHeaderPageListSize, RequiredSize,
|
||||||
|
PropertySheetType);
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
PropertySheetHeader->nPages = psh.nPages;
|
||||||
|
}
|
||||||
|
|
||||||
|
TRACE("Returning %d\n", ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ClassDevPropertySheetsData
|
struct ClassDevPropertySheetsData
|
||||||
|
@ -3642,6 +3658,8 @@ BOOL WINAPI SetupDiGetClassDevPropertySheetsW(
|
||||||
SetLastError(ERROR_INVALID_HANDLE);
|
SetLastError(ERROR_INVALID_HANDLE);
|
||||||
else if (!PropertySheetHeader)
|
else if (!PropertySheetHeader)
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
else if (PropertySheetHeader->dwFlags & PSH_PROPSHEETPAGE)
|
||||||
|
SetLastError(ERROR_INVALID_FLAGS);
|
||||||
else if (DeviceInfoData && DeviceInfoData->cbSize != sizeof(SP_DEVINFO_DATA))
|
else if (DeviceInfoData && DeviceInfoData->cbSize != sizeof(SP_DEVINFO_DATA))
|
||||||
SetLastError(ERROR_INVALID_USER_BUFFER);
|
SetLastError(ERROR_INVALID_USER_BUFFER);
|
||||||
else if (!DeviceInfoData && IsEqualIID(&list->ClassGuid, &GUID_NULL))
|
else if (!DeviceInfoData && IsEqualIID(&list->ClassGuid, &GUID_NULL))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue