Re: Notifications in a .dll



For this particular API (SHChangeNotifyRegister) you need to have a window
(and the corresponding message pump). Some other APIs allow using windowless
mechanisms such as message queues (e. g. registry change tracking) or named
events (e. g. system event handling).

--
Yaroslav Goncharov
Pocket PC Developer Network coordinator, http://pocketpcdn.com
Spb Software House, http://spbsoftwarehouse.com


"Glindberg" <Glindberg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EC3C57D4-4334-4FA1-BC70-DE1B8AA03F4B@xxxxxxxxxxxxxxxx
I'm kinda new to doing windows & mobile development, so this may be
obvious
to most, but I'm having trouble finding a decent solution.

I need to get some notifications that require a window handle to be passed
in for the request but I'm trying to do this in a dll or from a command
line
program that doesn't have a window associated with it. What is the best
way
to satisfy the request's (in my current case the SHChangeNotifyRegister()
call) need to have a window handle to return the notification to?

Greg


.



Relevant Pages

  • Re: File browser
    ... However, since the API isn't doing what I want, it was my interpretation of the other posts that it was _possible_ that the failure of the API to do what I wanted was due to the improper initialization. ... messages for a specific window handle are delivered only to the message pump running in the same thread that created the window handle. ... And Windows strictly enforces the rule about calling the window procedure; granted, the code that implements the procedure could always call it directly, but if you go through the normal PostMessage/SendMessage API that you're supposed to use, Windows will always cause the execution of the window procedure needed for handling those calls to happen on the same thread that created the window handle. ...
    (comp.lang.java.programmer)
  • Re: Error on Exit Sub
    ... this problem just came to our attention a few days ago; ... out any errors from the API call, he wasn't ready for me to start learning ... > determined you need to lock the window, you can achieve the same effect ... The control/form won't disappear, but its internal ...
    (microsoft.public.vb.general.discussion)
  • Learning Quartz API? Am I on the right track here?
    ... The purpose of the API is pretty simple, it just wraps up the platform ... specific details of instancing a window, ... So I'm asking here, #1 is it worth my time to worry about Quartz, ...
    (comp.sys.mac.programmer.help)
  • Re: Drag-and-drop from Windows Explorer?
    ... >that is not a function of delphi but of the win32 api. ... >to register the form as a window that will accept the ... >free the memory via the handle that was given you. ...
    (comp.lang.pascal.delphi.misc)
  • Re: MPEG2 Video Capture to a BMP
    ... >> We have an application that has a propriotary mpeg2 player. ... The API of the ... >video capture from web cam devices, etc. and I think I am on the right path ... >create a capture window and this happens, ...
    (microsoft.public.dotnet.framework)

Loading