quote:
Originally posted by matty
I fixed it, I was missing the Size parameter.
Do I have to put file size in there (either manually or with a function)?
I really thank you for you patience, Matty.
It still gives the same error (in Interrop.Call), even using this:
var szDisplayName = Interop.Allocate(512);
var szTypeName= Interop.Allocate(162);
var SHFILEINFO = Interop.Allocate(18);
with(SHFILEINFO){
WriteDWORD(10, szDisplayName.DataPtr);
WriteDWORD(14, szTypeName.DataPtr);
Interop.Call('shell32', 'ShGetFileInfoW', 'C:\antivir.exe', 0x80, SHFILEINFO.DataPtr, Size, 0x800);
}
Try the attachment (just change file path)