What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get File Properties

Get File Properties
Author: Message:
wincy
Junior Member
**


Posts: 67
Reputation: 4
35 / Male / Flag
Joined: Feb 2008
O.P. RE: Get File Properties
var FILE_ATTRIBUTE_NORMAL = "&H80";
var FFile = "C:\antivir.exe";
var Result = Interop.Call('shell32', 'SHGetFileInfo', FFile, FILE_ATTRIBUTE_NORMAL, '', FFile, "&H800");
Debug.Trace(Result);


Using only one "\" it outputs "1", but i don't think it is correct anyway. How can i use SHFILEINFO then? Here is its structure:

typedef struct _SHFILEINFO {
    HICON hIcon; // i don't have it
    int iIcon; // i don't have it
    DWORD dwAttributes; // needs GetAttributesOf (below)
    TCHAR szDisplayName[MAX_PATH]; // should i put file path here?
    TCHAR szTypeName[80]; // what to put here?
} SHFILEINFO;


GetAttributesOf here:

HRESULT GetAttributesOf(UINT cidl,
    PCUITEMID_CHILD_ARRAY *apidl,
    SFGAOF *rgfInOut
);


:( what a mess
02-18-2009 05:57 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Get File Properties - by wincy on 02-18-2009 at 02:38 PM
RE: Get File Properties - by matty on 02-18-2009 at 03:27 PM
RE: Get File Properties - by Spunky on 02-18-2009 at 03:44 PM
RE: Get File Properties - by wincy on 02-18-2009 at 03:54 PM
RE: Get File Properties - by matty on 02-18-2009 at 04:16 PM
RE: Get File Properties - by wincy on 02-18-2009 at 04:30 PM
RE: Get File Properties - by andrewdodd13 on 02-18-2009 at 05:19 PM
RE: Get File Properties - by matty on 02-18-2009 at 05:35 PM
RE: Get File Properties - by wincy on 02-18-2009 at 05:57 PM
RE: Get File Properties - by matty on 02-18-2009 at 06:13 PM
RE: RE: Get File Properties - by wincy on 02-18-2009 at 06:21 PM
RE: Get File Properties - by matty on 02-18-2009 at 06:47 PM
RE: RE: Get File Properties - by wincy on 02-18-2009 at 06:58 PM
RE: Get File Properties - by matty on 02-18-2009 at 07:03 PM
RE: Get File Properties - by wincy on 02-18-2009 at 07:19 PM
RE: Get File Properties - by matty on 02-18-2009 at 07:32 PM
RE: Get File Properties - by wincy on 02-18-2009 at 07:42 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