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