HidePollingUI is a leftover from a spec when we polled the port (via
serenum) to find devices. we never released an OS which had serenum
periodically poll the port. that parameter should be ignored. I am
aware that pnpports implements the port settings tab and advanced
dialog, again, this is the actual code that lives in msports.dll, it is
just renamed to something else so that the DDK example would not
overwrite the built in binary in case someone tried to use it.
The code that calls loadlibrary/getprocaddr that would call your DLL is
not in setupapi.dll, it is in msports.dll. no debug level in setupapi
would show what is going on in msports.
I just tested the functionality and got this work. I added the registry
value using the INF changes I listed earlier, in my case this ended up
being:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E978-E325
-11CE-BFC1-08002BE10318}\0001
And the value was
“EnumAdvancedDialog” : REG_SZ : “ca.dll,AdvancedOverride”
Please note that you should never hardcode this path into the INF, esp
the 0001 (the instance ID) which will change from device to device.
I have a simple DLL (ca.dll, which I copied to %windir%\system32) with
the following export:
BOOL
AdvancedOverride(
IN HWND ParentHwnd,
IN BOOL HidePollingUI,
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData,
IN PVOID Reserved
)
{
MessageBox(ParentHwnd,
TEXT(“Advance Overridden”),
TEXT(“Advance Overridden”),
MB_OK);
return TRUE;
}
This should be documented in the final .net DDK, i will look into that
to make sure.
D
This posting is provided “AS IS” with no warranties, and confers no
rights
-----Original Message-----
From: Del Fredricks [mailto:xxxxx@ask.i.might.tell]
Sent: Saturday, December 07, 2002 11:17 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Looking for EnumAdvancedDialog sample
Pnpports actually implements the entire “Port Settings” and “Advance”
key
property page support. I only want to replace the “Advance” key support
of
msports with my own dialog display and callback support.
I have also found that following the msports.h definition you quoted
does
not work. I’ve fully enabled setupapi debugging and do not see any
attempt
to even call my dll. I’ve searched the source code in the latest .Net
beta
DDK looking for the HidePollingUI formal parameter specification and
could
not find any samples using it.
“Doron Holan” wrote in message
news:xxxxx@ntdev…
Pnpports is actually msports “lite”, ie exceprts of the code that make
up the shipping DLL. Pnpports is not taking control of any property
pages from msports since it actually is msports.
To add the key, add the following to your inf
[ComPort.AddReg]
HKR,PortSubClass,1,01
HKR,EnumAdvancedDialog,“<dllname.dll>,”
is of the following signature (defined in msports.h)
typedef
BOOL
(*PPORT_ADVANCED_DIALOG) (
IN HWND ParentHwnd,
IN BOOL HidePollingUI,
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData,
IN PVOID Reserved
);
d
-----Original Message-----
From: Del Fredricks [mailto:xxxxx@ask.i.might.tell]
Sent: Friday, December 06, 2002 3:46 PM
To: NT Developers Interest List
Subject: [ntdev] Looking for EnumAdvancedDialog sample
msports.h makes reference to an EnumAdvancedDialog key residing in the
same
Registry location as EnumPropPages32. Is there a sample which
demonstrates
this?
Pnpports seems to demonstrate talking total control of the property
pages
from msports, I only want to obtain a callback for the selection of the
Advance button in the Port Settings tab.
—
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%
—
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to %%email.unsub%%</dllname.dll>