Results 1 to 6 of 6

Thread: (ROT) Running Object Table Callback

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2022
    Posts
    305

    (ROT) Running Object Table Callback

    Hi Dear forum.

    I would like to be notified when the content of the ROT changes. Does any of the ROT/*Moniker supporting interfaces provide some Method\function\mechanism like a callback to this end ? I have looked through the interfaces but can't find anything related.

    Thanks.

  2. #2
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,155

    Re: (ROT) Running Object Table Callback

    probably need to enumerate the table on interval and compare.

    https://learn.microsoft.com/en-us/wi...le-enumrunning

  3. #3
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    4,797

    Re: (ROT) Running Object Table Callback

    Quote Originally Posted by dz32 View Post
    probably need to enumerate the table on interval and compare.

    https://learn.microsoft.com/en-us/wi...le-enumrunning
    That's my conclusion, too.
    Meaning: Throw it into an activex-dll (or use one of those "Start a new Thread"-Hacks), periodically check for changes, fire off an Event which you can catch in your frontend
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2022
    Posts
    305

    Re: (ROT) Running Object Table Callback

    Thanks guys.

    Periodically reading the ROT is what I am doing now ... I was expecting\hoping MS provided some callback mechanism via the IRunningObjectTable or some other interfaces (This would have been less heavier and particularly useful for detecting the ROT change before the actual change occurs which can't be achieved via a timer, or via the suggested new thread hacks)

  5. #5
    PowerPoster
    Join Date
    Jan 2020
    Posts
    4,465

    Re: (ROT) Running Object Table Callback

    Implement your own cross-process notifications in the event mode. Or web socket communication

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2022
    Posts
    305

    Re: (ROT) Running Object Table Callback

    Quote Originally Posted by xiaoyao View Post
    Implement your own cross-process notifications in the event mode. Or web socket communication
    I don't know how to do that. Do you have a small example ? Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width