Skip to content

Commit

Permalink
setupapi: Add stubs for SetupDiGetCustomDeviceProperty{A|W}().
Browse files Browse the repository at this point in the history
CW-Bug-Id: #23045
  • Loading branch information
Paul Gofman committed Nov 24, 2023
1 parent 92810f4 commit 34e4e3b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dlls/setupapi/devinst.c
Original file line number Diff line number Diff line change
Expand Up @@ -5368,3 +5368,23 @@ BOOL WINAPI SetupDiInstallDevice(HDEVINFO devinfo, SP_DEVINFO_DATA *device_data)

return TRUE;
}

BOOL WINAPI SetupDiGetCustomDevicePropertyA(HDEVINFO devinfo, SP_DEVINFO_DATA *data, const char *name, DWORD flags,
DWORD *reg_type, BYTE *buffer, DWORD bufsize, DWORD *required)
{
FIXME("devinfo %p, data %p, name %s, flags %#lx, reg_type %p, buffer %p, bufsize %lu, required %p stub.\n",
devinfo, data, debugstr_a(name), flags, reg_type, buffer, bufsize, required);

SetLastError(ERROR_INVALID_DATA);
return FALSE;
}

BOOL WINAPI SetupDiGetCustomDevicePropertyW(HDEVINFO devinfo, SP_DEVINFO_DATA *data, const WCHAR *name, DWORD flags,
DWORD *reg_type, BYTE *buffer, DWORD bufsize, DWORD *required)
{
FIXME("devinfo %p, data %p, name %s, flags %#lx, reg_type %p, buffer %p, bufsize %lu, required %p stub.\n",
devinfo, data, debugstr_w(name), flags, reg_type, buffer, bufsize, required);

SetLastError(ERROR_INVALID_DATA);
return FALSE;
}
2 changes: 2 additions & 0 deletions dlls/setupapi/setupapi.spec
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@
@ stub SetupDiGetClassInstallParamsA
@ stub SetupDiGetClassInstallParamsW
@ stdcall SetupDiGetClassRegistryPropertyW(ptr long ptr ptr long ptr wstr ptr)
@ stdcall SetupDiGetCustomDevicePropertyA(ptr ptr str long ptr ptr long ptr)
@ stdcall SetupDiGetCustomDevicePropertyW(ptr ptr wstr long ptr ptr long ptr)
@ stub SetupDiGetDeviceInfoListClass
@ stdcall SetupDiGetDeviceInfoListDetailA(ptr ptr)
@ stdcall SetupDiGetDeviceInfoListDetailW(ptr ptr)
Expand Down

0 comments on commit 34e4e3b

Please sign in to comment.