URLAssociationDialogURLAssociationDialog*
*



Contents  *



Index  *Topic Contents
*Previous Topic: TranslateURL
*Next Topic: Internet Shortcut Enumerated Types

URLAssociationDialog

HRESULT WINAPI URLAssociationDialog(
    HWND hwndParent,
    DWORD dwInFlags,
    LPCSTR pcszFile,
    LPCSTR pcszURL,
    LPSTR pszAppBuf,
    UINT ucAppBufLen
);

Invokes the unregistered URL protocol dialog box. This dialog box allows the user to select an application to associate with a previously unknown protocol.

hwndParent
Handle to the parent window.
dwInFlags
Bit flags that specify the behavior of the function. This value can be a combination of the following:
URLASSOCDLG_FL_USE_DEFAULT_NAMEUse the default file name (that is, "Internet Shortcut").
URLASSOCDLG_FL_REGISTER_ASSOCRegister the selected application as the handler for the protocol specified in pcszURL. The application is registered only if this flag is set and the user indicates that a persistent association is desired.
pcszFile
Address of a constant zero-terminated string that contains the file name to associate with the URL's protocol.
pcszURL
Address of a constant zero-terminated string that contains the URL with an unknown protocol.
pszAppBuf
Address of a buffer that receives the path of the application specified by the user.
ucAppBufLen
The size of pszAppBuf, in characters.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.