Re: Notifications to a DLL
Date: Tue, 20 Jul 2004 20:44:16 +0400
> I can see that there is an SDK Platform function RegisterDeviceNotification
> that allows user code to register for a callback to a window or service. But
> I don't have either in my dll.
Create a thread in your DLL, then create a window in it and spin the message
loop. The notifications will be called by this thread.
> Can I use the IoRegisterPlugPlayNotification function and locate the
> callback function be in my (user mode) dll?
You cannot use Ioxxx functions in the user mode DLL.
Maxim Shatskih, Windows DDK MVP
- Re: Threading problem with Garbage Collector
... It itself controls calls to a DLL ... "A"), it loads the DLL, which in turn then creates a window (it needs to, ... Disposemethod it uses the label window to synchronize the FreeLibrary ... delegate void DelegateKillDLL(); ...
- Re: Simulating Control-Alt-Delete?
... Winlogon.exe window or not. ... all desktops and all top level windows. ... the WinLogon window didn't show. ... > Write this part of your test suite as a DLL, ...
- Re: Custom model in gtkada?
... GUI takes over the single thread of control, ... the _spec_ for a callback is located in the same ... The window object is not the state of the program. ... I think you mean the event queue was more visible in JEWL. ...
- Re: VB6 runtime is supported on Windows 7
... The settings window was fairly extensive ... DLL and the settings are organized into a UDT rather ...
- Re: Newbie question on MESSAGE_MAP
... What mechanism prevents two DLLs from sending the same message, ... You can "register" a callback any way you want to. ... the window belongs to the process. ... Or is there a way that I can register for callbacks from dlls directly? ...