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

Thread: COM question

  1. #1
    Join Date
    Aug 2008
    Germany / NRW

    COM in pure win32 api

    Hi Folks,

    I need to receive the entry point from a function in "jscript.dll". Actually, it's not a real
    exported function, but let me explain it (I'm not really expirienced with COM).

    Some applications are calling IActiveScriptParse::ParseScriptText, but as I already mentioned
    above, this "function", is not exported, so I guess I can forget about using GetProcAddress() at any point, right?

    The real deal is, I need to trampoline the ParseScriptText call from applications (no it's not malicous), but unless other API calls I can't receive an entry point to insert a jmp instruction.
    To complicate things, I'm doing C only, I guess C++ is a better choice dealing with COM.
    Actually I just need to know how to call a COM function/method/object with pure win32 API.

    Maybe I'm total confused and on the wrong way, is it actually possible to hook COM methods
    like |entry point|...|jmp|...|ret ?

    Any ideas?
    Last edited by CatShoe; May 6th, 2009 at 08:29 AM.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)