Jump to content
Sign in to follow this  
Nikolas92

Need help with dllcall?

Recommended Posts

Nikolas92

How to use OpenWith Enhanced (http://extensions.frieger.com/owdesc.php) in dllcall? I can run it with this:

Run("RunDll32.exe" & ' "' & @ScriptDir & '\OpenWith.dll",OpenWith ' & '"' & $CmdLine[1] & '"', "")

but dont how how to use it in dllcall. anyone can help me?

 

 

Share this post


Link to post
Share on other sites
funkey

Show us the C headerfile (maybe openwith.h) or the function description to let us help. I can not download the file from here.


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites
AndyG
4 hours ago, funkey said:

 

Show us the C headerfile (maybe openwith.h) or the function description to let us help.

 

...or make the dll-file available.

Share this post


Link to post
Share on other sites
Nikolas92
7 hours ago, funkey said:

Show us the C headerfile (maybe openwith.h) or the function description to let us help.

I dont know where to find that. I attached dll file:

OpenWith.dll

Microsoft.VC90.CRT.manifest

Edited by Nikolas92

Share this post


Link to post
Share on other sites
trancexx
3 hours ago, Nikolas92 said:

Any way to use OpenWith.dll in dllcall or not possible?

DllCall("OpenWith.dll", "none", "OpenWithW", "handle", Null, "str", $CmdLine[1], "int", 0)

 

  • Like 1

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Nikolas92

thanks trancexx, dllcall works (partially). It opens OpenWith Enhanced window, but when I drag files on compiled script I always get this:

SnapCrab_Open with (Enhanced)_2016-12-8_20-59-57_No-00.png

When files are dragged on this script

Run("RunDll32.exe" & ' "' & @ScriptDir & '\OpenWith.dll",OpenWith ' & '"' & $CmdLine[1] & '"', "")

it works like this

SnapCrab_OpenWith (Enhanced)_2016-12-8_21-6-47_No-00.png

Any way to make dllcall work with dragged files?

Edited by Nikolas92

Share this post


Link to post
Share on other sites
trancexx

Yea, probably should be this:

DllCall("OpenWith.dll", "none", "OpenWithW", "handle", Null, "handle", Null, "wstr", $CmdLine[1], "int", 0)

 

  • Like 1

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×