Click here to Skip to main content
15,911,487 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

Does anyone know how to use the following function?

(SetupDiGetClassInstallParams)

I'm using it as follows, but the value of flag is 0 always.
C#
SP_ADDPROPERTYPAGE_DATA AddPropertyPageData;

ZeroMemory(&AddPropertyPageData, sizeof(SP_ADDPROPERTYPAGE_DATA));
AddPropertyPageData.ClassInstallHeader.cbSize = sizeof(SP_CLASSINSTALL_HEADER);

if (SetupDiGetClassInstallParams(DeviceInfoSet, DeviceInfoData,
     (PSP_CLASSINSTALL_HEADER)&AddPropertyPageData,
     sizeof(SP_ADDPROPERTYPAGE_DATA), NULL )) {

Thanks and Regards
Nidhi.
:)
Posted
Updated 10-Dec-10 1:16am
v2

1 solution

I think you have to fill the InstallFunction member of the SP_CLASSINSTALL_HEADER structure:

AddPropertyPageData.ClassInstallHeader.InstallFunction=DIF_ADDPROPERTYPAGE_ADVANCED;


greetings
Fabio
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900