CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: stoneyrh

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Re: Is it possible to retrieve Window Proc in process running in other user?

    Thank you very much for the suggestions. My initial though on using hooking is because it is the easiest way to inject code into other process, but it is completely out of my estimation that the...
  2. Re: Is it possible to retrieve Window Proc in process running in other user?

    The handle of the window is sure to be correct. Because I use the handle passed from the HOOK PROC.
    And I could not even see the Window Proc value in Spy++.

    It is worthy of trying...
  3. Re: Is it possible to retrieve Window Proc in process running in other user?

    What I am going to do is inject a DLL into a 3rd party process automatically (actually it is developed by other BU of my company, but I don't have the source, so I need to do that in this way), and...
  4. Re: Is it possible to retrieve Window Proc in process running in other user?

    Yes, I do the same thing as you said. The hook works fine against the process running in current user.



    The problem is, I am requried to hook that process if it was launched in the way like...
  5. Is it possible to retrieve Window Proc in process running in other user?

    I am encoutering a problem on retrieving the Window Proc of a window that running in a process with another user.
    For example, I have logon windows with domain\user1, and run the following command...
  6. Re: How to start process without loading global hook?

    I thought it would create a new session, but as I checked in Task Manager, the newly created HOOKEE.exe process has the same session ID as that installing the HOOK. Can it say they are in same...
  7. Re: How to start process without loading global hook?

    Oh, I am sorry, my bad.
    The HOOKEE.exe is actually a GUI application, normally it is running only by double clicking on the icon on the desktop, with this way, no conhost.exe is involved during the...
  8. Re: How to start process without loading global hook?

    The problem is my hook (DLL) does NOT get loaded at all for that process, but I am sure calling to SetWindowsHookEx success, because the HOOKLOADER.exe is always running there, and if I launch the...
  9. Re: How to start process without loading global hook?

    Sure, I understand both items 1 and 2, both my hook(DLL) and HOOKEE.exe are 32bit
    The problem happens in the same logon session, which means, I launch the HOOKEE.exe by double clicking the shortcut...
  10. Re: How to start process without loading global hook?

    As I see in the Task Manager, the HOOKEE.exe is running with the same session ID as that the process installing the HOOK.
    For the station and desktop, how can I check them?
  11. Re: How to start process without loading global hook?

    About why exactly the same HOOKEE.exe running in same box, but when launched by double clicking the shortcut icon, it loads the global hook, but when launched by some other (unknown to me) ways, it...
  12. How to start process without loading global hook?

    Hi, everyone,

    I had created a global hook by SetWindowsHookEx with WH_CALLWNDPROC. It is used to create a new toolbar button in specific window in the specific (3rd party) program (named...
  13. Load and unload file system filter driver dynamically

    I have created a simple disk filter driver based on DDK sample, it works fine with INF installation. But what I am going to do is removing the INF file, then when the user needs it (before some file...
  14. Re: How to direct access physical drive on Vista

    I am also running as administrator too, but I can only read from a dist, when writing to another disk, it also returns 'Access is denied'. I found that it requires a flag named SL_FORCE_DIRECT_WRITE...
  15. Re: How to direct access physical drive on Vista

    Still waiting for response, could anybody give me a hand?
    Thanks
  16. How to direct access physical drive on Vista

    Hi, all, I got that CreateFile with a file name \\.\PhysicalDriveX can open a handle for direct accessing to appropriate disk, but as it is said in MSDN, it doesn't work for Vista. When I try to do...
  17. Replies
    6
    Views
    761

    Re: Error issued by 'extern template'

    I see what goes wrong. The appropriate cpp file was missing. Those three functions were implemented there. That's the first time I encounter this kind of code, and it cost me almost four hours.
    ...
  18. Replies
    6
    Views
    761

    Re: Error issued by 'extern template'

    I understand that the definition of a template class member function must be included in the template class. The keyworks 'extern template' seem strange. As said in this document , it is used to...
  19. Replies
    6
    Views
    761

    Re: Error issued by 'extern template'

    I am sorry for confusing you.

    The class is similar to the follwing class:

    template <typename T>
    class TemplateClass
    {
    public:
    TemplateClass(){};
    ~TemplateClass(){};
  20. Replies
    6
    Views
    761

    Error issued by 'extern template'

    There is a template class with three of member functions without implementation. But at the end of the header file of the class, something like the following appears:

    extern template void...
  21. How can I modify the volume label of a mapnet drive?

    I want to use the function SetVolumeLabel, but I failed with ACCESS_DENY.
    What I should if I want to modify the volume label?

    Thanks!!!
  22. Re: Can anyone tell me what the problem is about this global mouse hook?

    OK, I found the new SDK and downloaded it.
    Thanks a million.
  23. Re: Can anyone tell me what the problem is about this global mouse hook?

    I want to use WH_MOUSE_LL, but the compiler can't recognize it.
    Maybe I should upgrade it to VC7.0.
  24. Re: Can anyone tell me what the problem is about this global mouse hook?

    Oh, thank you, JohnCz. I will study the examples carefully.

    By the way, I don't know exactly what use of the first parameter-nCode-of hook procedures. MSDN says that if it is less than zero, the...
  25. Re: Can anyone tell me what the problem is about this global mouse hook?

    What I want to do is to lock a computer. That is to say, to prevent the system from sending all the mouse and keyboard inputs to all applications when the hooks(mouse hook and keyboard hook) is...
Results 1 to 25 of 72
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured