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?
 
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
 
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.