What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Interop.Call windows shell help

Interop.Call windows shell help
Author: Message:
wincy
Junior Member
**


Posts: 67
Reputation: 4
34 / Male / Flag
Joined: Feb 2008
O.P. RE: Interop.Call windows shell help
I tried this:

code:
function test() {
    var MAX_PATH = 260;
    var url = "C:\Documents and Settings\Vincy\Desktop\headers.txt";
    var han = "C:\WINDOWS\notepad.exe";
    var result = Interop.Allocate((MAX_PATH+1)*2);

    Interop.Call('shell32.dll', 'EstimateFileRiskLevel', url, ".txt", han, result);
    var result = result.ReadString(0, false);
    return result;
}


But debug says something like:
CallDll failed collocation of function "EstimateFileRiskLevel"...

What should i do? How should i read the result?
Thanks

This post was edited on 11-09-2009 at 12:11 AM by wincy.
11-09-2009 12:10 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Interop.Call windows shell help - by wincy on 11-08-2009 at 08:19 PM
RE: Interop.Call windows shell help - by Spunky on 11-08-2009 at 08:24 PM
RE: Interop.Call windows shell help - by wincy on 11-09-2009 at 12:10 AM
RE: RE: Interop.Call windows shell help - by CookieRevised on 11-09-2009 at 01:22 AM
RE: RE: RE: Interop.Call windows shell help - by wincy on 11-09-2009 at 03:26 PM
RE: Interop.Call windows shell help - by Ezra on 11-09-2009 at 04:15 PM
RE: Interop.Call windows shell help - by matty on 11-09-2009 at 05:32 PM
RE: Interop.Call windows shell help - by CookieRevised on 11-10-2009 at 07:51 AM
RE: Interop.Call windows shell help - by Ezra on 11-11-2009 at 10:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On