What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] UserAccounts.CommonDialog

[Request] UserAccounts.CommonDialog
Author: Message:
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: [Request] UserAccounts.CommonDialog
quote:
Originally posted by Eljay
code:
var BrowseInfo = Interop.Allocate(32);
BrowseInfo.WriteDWORD(0, 0); //hOwner
BrowseInfo.WriteDWORD(4, 0); //pidlRoot
var foldertitle = Interop.Allocate((255+1) * 2);
BrowseInfo.WriteDWORD(8, foldertitle.DataPtr);
var sTitle = 'Test Window Title';
var pTitle = Interop.Allocate((sTitle.length+1) * 2);
pTitle.WriteString(0, sTitle, false);
BrowseInfo.WriteDWORD(12, pTitle.DataPtr);
BrowseInfo.WriteDWORD(16, 1); //ulFlags
BrowseInfo.WriteDWORD(20, 0); //lpfn
BrowseInfo.WriteDWORD(24, 0); //lparam
BrowseInfo.WriteDWORD(28, 0); //iImage
var pidl = Interop.Call('shell32', 'SHBrowseForFolder', BrowseInfo);
var folderpath = Interop.Allocate((255+1) * 2);
Interop.Call('shell32', 'SHGetPathFromIDList', pidl, folderpath);
Debug.Trace('Folder Path: ' + folderpath.ReadString(0, false));
Debug.Trace('Folder Title: ' + foldertitle.ReadString(0, false));

07-04-2006 02:18 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] UserAccounts.CommonDialog - by Rene on 07-04-2006 at 08:27 AM
RE: [Request] UserAccounts.CommonDialog - by Volv on 07-04-2006 at 02:18 PM
RE: [Request] UserAccounts.CommonDialog - by Eljay on 07-04-2006 at 02:25 PM
RE: RE: [Request] UserAccounts.CommonDialog - by Rene on 07-04-2006 at 03:01 PM
RE: RE: RE: [Request] UserAccounts.CommonDialog - by craig2k5 on 07-04-2006 at 03:10 PM
RE: RE: RE: RE: [Request] UserAccounts.CommonDialog - by Rene on 07-04-2006 at 03:12 PM
RE: [Request] UserAccounts.CommonDialog - by J-Thread on 07-04-2006 at 04:21 PM
RE: RE: [Request] UserAccounts.CommonDialog - by Rene on 07-04-2006 at 04:57 PM
RE: [Request] UserAccounts.CommonDialog - by J-Thread on 07-04-2006 at 06:43 PM
RE: RE: [Request] UserAccounts.CommonDialog - by Rene on 07-04-2006 at 06:48 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