Article View: borland.public.cppbuilder.nativeapi
Article #222Re: Invoking Program Shell Properties dialog
From: Mike Collins
Date: Mon, 14 Jul 2008 11:03
Date: Mon, 14 Jul 2008 11:03
25 lines
1627 bytes
1627 bytes
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:487a9b63@newsgroups.borland.com...
Technical Details
Message-ID:
<487b219a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<487a9b63@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3f6f1788be772b0f X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <487a9b63@newsgroups.borland.com> Subject: Re: Invoking Program Shell Properties dialog Date: Mon, 14 Jul 2008 11:03:18 -0000 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 89.240.131.182 Message-ID: <487b219a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1216029082 89.240.131.182 (14 Jul 2008 02:51:22 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail