Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Invoking Program Shell Properties dialog

0 views
Skip to first unread message

Mike Collins

unread,
Jul 13, 2008, 9:30:39 PM7/13/08
to
Hay guys, just a quicky. Have no real idea how to do the following so any
pointers would be great.

I've got a list of programs and applications that a user has tried executed.
I display this in a list for viewing. I want to provide the user a an
option or link that allows them to see the Properties for a given program.
To avoid having to code this all myself, I was wondering if there is a way
to envoke the Shell Properies for a given application (like you get
displayed when you right-click on a program and select Properties)

Many thanks in advance,

Mike


Mike Collins

unread,
Jul 14, 2008, 7:03:18 AM7/14/08
to
Hay guys,

Managed to work it out, though i'm not sure that it's the *correct* way.

Used ShellExecuteEx with the verb set to "properties" i.e.

AnsiString sz = Edit1->Text;
SHELLEXECUTEINFO execinfo;
memset (&execinfo, 0, sizeof (execinfo));
execinfo.cbSize = sizeof (execinfo);
execinfo.lpVerb = "properties";
execinfo.lpFile = sz.c_str();
execinfo.lpParameters = NULL;
execinfo.fMask = SEE_MASK_INVOKEIDLIST;
execinfo.nShow = SW_SHOW;

if (!ShellExecuteEx(&execinfo))
ShowMessage("Error opening properties");

- seems to work ok.

Mike

"Mike Collins" <its@TheBottomOfThePost> wrote in message
news:487a...@newsgroups.borland.com...


Bob Gonder

unread,
Jul 14, 2008, 11:48:17 AM7/14/08
to
Mike Collins wrote:

>Managed to work it out, though i'm not sure that it's the *correct* way.

Looks ok by me.

When you decide to add a KidSafe tab to the properties dialog,
this link might come in handy...
http://www.omgili.com/newsgroups/microsoft/public/platformsdk/shell/edLyJtZ1IHA528TK2MSFTNGP02phxgbl.html


Mike Collins

unread,
Jul 14, 2008, 7:51:26 PM7/14/08
to
LOL

Ahh Bob, great minds think alike. I'd actually just thought of that this
morning and add it to the wish list for version 2.

Many thanks for the link - it's really good. Was looking at an article at
codeproject but it used ALT and i didn't like that :-(

Cheers


0 new messages