Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Nov : New Vista Api - How to call ?
| Subject: | New Vista Api - How to call ? |
| Posted by: | "MikeW (Dallas)" (mikew@nospam-dallasaddress.com) |
| Date: | Tue, 21 Nov 2006 14:11:36 |
I am try to call 2 new API features in preparation for the release of Vista.
QueryAppIsDefault
SetAppAsDefault
These are part of the new LaunchAdvancedAssociationUI which I believe is
located in the ShellObj.
As these API's are obviously not yet defined in Delphi 2006, I presume that
I can create my own definition and call the api directly ? Is this correct?
I have found that these are defined in the file that is called Shobjid.h and
shobjidl.idl, I am unclear how to call them. Microsoft has this example
that looks simple enough. Any pointers would be appreciated .... there are
certainly no hits on Google or Google Groups for "Delphi SetAppAsDefault"
This example demonstrates the use of
IApplicationAssociationRegistration::SetAppAsDefault in an implementation of
a fictitious Contoso web browser, setting itself as the default for the .htm
file extension.
{
hr = pAAR->SetAppAsDefault(L"My Browser",
L".htm",
AT_FILEEXTENSION);
pAAR->Release();
}
}thank you.