CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    IRunningObjectTable how do it work.

    I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?

    Rick


  2. #2
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    IRunningObjectTable how do it work.

    I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?

    Rick


  3. #3
    Join Date
    May 1999
    Posts
    3

    Re: IRunningObjectTable how do it work.

    try this code:
    IRunningObjectTablePtr rot;
    IEnumMonikerPtr MonikersTable;
    IMonikerPtr CurrentMoniker;

    if(GetRunningObjectTable(0, &rot) != S_OK)
    return NULL; // couldn't access ROT !!!
    rot->EnumRunning(&MonikersTable);
    MonikersTable->Reset();
    while(MonikersTable->Next(1, &CurrentMoniker, NULL) == S_OK)

    ... and use the moniker to get the interface.

    Hope that what you ment.



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

Featured