Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. detect Win32 events?

detect Win32 events?

Scheduled Pinned Locked Moved System Admin
questioncsharpjsoncareer
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    toduro
    wrote on last edited by
    #1

    Hello. I am working on a sort of "PC monitor/assistant" application program (.NET on Windows XP) which detects visible changes in the appearance of windows associated with desktop applications. I have tried taking a snapshot of the desktop when my program starts, then periodically taking snapshots and comparing them with the previous snapshot via pixel-by-pixel comparison. That method will miss important events and is computationally very expensive. Perhaps a better way would be to detect invalidate, refresh, paint, etc. event messages being sent to the other application programs, but after having looked at Microsoft docs and Win32 API calls haven't found a way to do it. If the second method is a good way to get the job done, how do I do that? I conjecture that "virtual desktop" apps do it, or something similar. If that's not how it's done, how is it done?

    N 1 Reply Last reply
    0
    • T toduro

      Hello. I am working on a sort of "PC monitor/assistant" application program (.NET on Windows XP) which detects visible changes in the appearance of windows associated with desktop applications. I have tried taking a snapshot of the desktop when my program starts, then periodically taking snapshots and comparing them with the previous snapshot via pixel-by-pixel comparison. That method will miss important events and is computationally very expensive. Perhaps a better way would be to detect invalidate, refresh, paint, etc. event messages being sent to the other application programs, but after having looked at Microsoft docs and Win32 API calls haven't found a way to do it. If the second method is a good way to get the job done, how do I do that? I conjecture that "virtual desktop" apps do it, or something similar. If that's not how it's done, how is it done?

      N Offline
      N Offline
      Nagendra Kamath K
      wrote on last edited by
      #2

      Some time back, I was developing a similar application and had faced similar problem. Then, I had put up a similar question in CodeProject but under C# section. Then I had recieved a reply saying that a development kit called MS-DDK (Miscrosoft Device Development Kit) provided the solution for this problem. Unfortunately due to lack of time, I had to live up with the computationally intensive method of doing this. You can refer this DDK to accopmlish your objectives. I am just providing you a direction. I dont have any details regarding this since I have not worked in this. Cheers, Nagu It does not matter WHAT you Say. It does not matter WHEN you Say. The only thing that matters is HOW you Say. Cheers, Nagu

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups