How do I access a context menu programmatically?

I have a third-party written dll with no documentation. It is "registered", and implements a context menu item when right-clicked on a particular file type.  I'd like to be able to both identify the entry point for the dll, and be able to simulate the context menu option programatically, e.g., via VBScript.

The dll is written is C++, and I do have the source code, but it is quite opaque to me (my exposure to C is limited).  If the code would be useful, I'm quite prepared to post it up.
Craig SmallAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

milindsmCommented:
Not sure about VBSCript but you can hook into your application using windows hooking APIs and trap certain events before they are actually handled...!!!!
0
Craig SmallAuthor Commented:
That sounds really promising.  What are the examples of such hooking APIs that I might be able to use? I'm a complete novice with the API interface, except for some failrly dodgy stuff that I've implented in VB to manage some tasks that VB can't do natively. And most of that I copied directly from web posts.  So please, if you will, share your wisdom!  Does this require a hike in the points rate for this question?
0
milindsmCommented:
As I said earlier, I have not idea how you can achieve this using VBScript, you can use hooking win32 APIs. Hooking is nicely explained over here,

http://msdn.microsoft.com/en-us/library/ms997537.aspx

I can help you with whatever information I have.... !!! I didn't say anything about hike in points even in my first post...!!!
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

milindsmCommented:
typo...

As I said earlier, I have NO idea how you can achieve this using VBScript, you can use hooking win32 APIs. Hooking is nicely explained over here,

http://msdn.microsoft.com/en-us/library/ms997537.aspx

I can help you with whatever information I have.... !!! I didn't say anything about hike in points even in my first post...!!!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Craig SmallAuthor Commented:
Haha, no, the change in points was all my own idea! It's just that if you needed to expend a lot of time and effort, I wanted to make it worth your while.  This is my first post, so I'm feeling my way a bit.  I'll have a look at that link and see what I can work out.  

Thanks so much!
0
DanRollinsCommented:
hi smallcaig1606,
Do you still need help with this?  You can get a list of "verbs" that are available and displayed in the right-click menu in Explorer, then you can execute any of this verbs.  
This article appears to be unrelated, but it actually shows complete code (in JScript) to do that: http://www.experts-exchange.com/A_2006.html
0
Craig SmallAuthor Commented:
Expert was not fully aware of how to implement in VBScript.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.