another global hook question!

Win32 Programming

    Next

  • 1. How to get process name from pid?
    Hi If I know the Pid of a process, how can I know its name? I think it is expensive to get the whole list of process of compare pid to get the name Thanks for your help in advance
  • 2. LoadLibraryEx returns ERROR_INVALID_ADDRESS for win32k.sys
    LoadLibraryEx returns ERROR_INVALID_ADDRESS when attempting to load win32k.sys. What does this mean? How do I get around it? Here is some pseudo code: if(HMODULE hModule = LoadLibraryExW(L"win32k.sys", NULL, DONT_RESOLVE_DLL_REFERENCES | LOAD_IGNORE_CODE_AUTHZ_LEVEL)) { //do something. FreeLibrary(hModule); } Regards, George.
  • 3. Driver filter for Serial Port
    Hi Alex, > Ok, but I do not understand , How the Drivers can communicate without help > from User Application ??? Easy. Look for function called PsCreateSystemThread. Well then if you have thread you can do what ever you want without user mode application interaction, right? Best regards, Slobodan
  • 4. /DRIVER flag for link.exe
    Looking at the /DRIVER flag documentation (in VC++) for LINK.EXE, it tells me that it creates a "kernel mode driver". I am curious as to the mechanics of the linker when doing so I created a very simple "hello world" app and linked with (and without) the /DRIVER flag. Looking at the two EXEs, I see that the INIT and .reloc sections are no longer present, and the addresses of the kernel32 imports have changed. Is there any documentation for how/why these differ Any pointers or advice would be much appreciated. Cheers.. - Craig
  • 5. finish app
    "Ra Herndez" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ... > I am trying to finish a windows-bassed app by calling > DestroyWindow, but the window does not dissapear (the > app doesn't finish). What can be happening? Did you see this caveat in the docs? <quote> A thread cannot use DestroyWindow to destroy a window created by a different thread. </quote> In addition, even if you succeed in destroying the window there is no law that says that the WM_DESTROY handler will call PostQuitMessage() as is often the case when an application's "main" window is closed. I'd try sending a WM_CLOSE or WM_SYSCOMMAND/SC_CLOSE or perhaps a WM_ENDSESSION. Still there are no guarantees that someone else's message procedure will do what you want. Regards, Will

another global hook question!

Postby HongbinFan » Fri, 12 Sep 2003 10:27:42 GMT

why I don't get a IAccessible interface in 
WH_MOUSE_LL,WH_JOURNALRECORD that are global hooks.
IAccessible is MSAA technique.


Re: another global hook question!

Postby arkadyf » Fri, 12 Sep 2003 19:38:16 GMT

SetWindowsHook(Ex) is API ( function which need C callback ) not interface.
You do can use static function in the class for that but it's the same.
Arkady








Re: another global hook question!

Postby Hongbinfan » Sat, 13 Sep 2003 17:17:14 GMT

But I can get IAccessible interface in Mouse Hook,but I 
don't in JournalRecord Hook.
so I think the question is in the JournalRecord don't get 
the interface.

callback ) not interface.
it's the same.





Return to Win32 Programming

 

Who is online

Users browsing this forum: No registered users and 59 guest