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
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...
>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
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