🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9933

Re: invoke "file properties window"

#9933
From: Timothy H. Buchman
Date: Mon, 31 May 2004 16:39
30 lines
2046 bytes
"Mortz" <rmorteo> wrote in message
news:40bb54a2$1@newsgroups.borland.com...
> I would like to know if there is any API call (or a bunch of them)
to invoke
> the "properties" window for a file or shortcut...

Here's an old reply by Yoto Yotov:
The simplest way is to use the ShellExecute API function with
"properties" as lpVerb parameter.  For example:

#include <shellapi.h>
void __fastcall TForm1::Button1Click(TObject *Sender)
{
    ShellExecute(Handle, "properties", "c:\\windows\\"
        "desktop\\netsca~1.lnk", NULL, NULL, SW_SHOW);
}

Another method is to use the SHObjectProperties undocumented function.
You can find descriptions and code examples at:
http://thunder.prohosting.com/~cbdn/a_undo.htm

(Alas, his site is no longer maintained, so you should look at this
link immediately!)

--
Timothy H. Buchman
========================================
City Center Theater, New York NY
mail address tbuchmanPLEASE(at sign)REMOVEcitycenterD O Torg
Search .borland message archive on http://www.tamaracka.com/search.htm
Technical Details
Message-ID: <40bb600f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40bb54a2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1de9d7beecb3f3a1
X-Google-Attributes: gid10cc67,public
From: "Timothy H. Buchman" <tbuchmanREMOVE(at)PLEASEcitycenter D O To r  g>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40bb54a2$1@newsgroups.borland.com>
Subject: Re: invoke "file properties window"
Date: Mon, 31 May 2004 12:39:14 -0400
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain;
 charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 67.101.159.26
Message-ID: <40bb600f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086021647 67.101.159.26 (31 May 2004 09:40:47 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail