/* @doc EXTERNAL @const HRESULT | E_FLAGS | The flag combination is invalid. */ /* @doc EXTERNAL INTSHCUTAPI @const HRESULT | IS_E_EXEC_FAILED | The URL's protocol handler failed to run. */ /* @doc EXTERNAL INTSHCUTAPI @const HRESULT | URL_E_INVALID_SYNTAX | The URL's syntax is invalid. */ /* @doc EXTERNAL INTSHCUTAPI @const HRESULT | URL_E_UNREGISTERED_PROTOCOL | The URL's protocol does not have a registered protocol handler. */ /****************************************************************************** @doc EXTERNAL INTSHCUTIFACE @interface IUniformResourceLocator | Methods for manipulating a uniform resource locator (URL). @xref ******************************************************************************/ /* @doc EXTERNAL INTSHCUTIFACE @enum IURL_SETURL_FLAGS | IUniformResourceLocator::SetURL() input flags. */ /* @emem IURL_SETURL_FL_GUESS_PROTOCOL | If set, guess protocol if missing. If clear, do not guess protocol. */ /* @emem IURL_SETURL_FL_USE_DEFAULT_PROTOCOL | If set, use default protocol if missing. If clear, do not use default protocol. */ /* @doc EXTERNAL INTSHCUTIFACE @enum IURL_INVOKECOMMAND_FLAGS | IUniformResourceLocator::InvokeCommand() input flags. */ /* @emem IURL_INVOKECOMMAND_FL_ALLOW_UI | If set, interaction with the user is allowed. hwndParent is valid. If clear, interaction with the user is not allowed. hwndParent is ignored. */ /* @emem IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB | If set, the default verb for the Internet Shortcut's protocol is to be used. pcszVerb is ignored. If clear, the verb is specified by pcszVerb. */ /* @doc EXTERNAL INTSHCUTIFACE @struct URLINVOKECOMMANDINFO | Information describing the command to be invoked via IUniformResourceLocator::InvokeCommand(). */ /* @field DWORD | dwcbSize | Length of URLINVOKECOMMANDINFO structure in bytes. Should be filled in with sizeof(URLINVOKECOMMANDINFO) before passing to IUniformResourceLocator::InvokeCommand(). */ /* @field DWORD | dwFlags | A bit mask of flags from the enumeration. */ /* @field HWND | hwndParent | A handle to the parent window of any windows posted during IUniformResourceLocator::InvokeCommand(). Should be a valid window handle if IURL_INVOKECOMMAND_FL_ALLOW_UI is set in dwFlags. Ignored if IURL_INVOKECOMMAND_FL_ALLOW_UI is clear in dwFlags. */ /* @field PCSTR | pcszVerb | The verb to invoke. Must be valid if IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB is clear in dwFlags. Ignored if IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB is set in dwFlags. */ /****************************************************************************** @doc EXTERNAL INTSHCUTIFACE @method HRESULT | IUniformResourceLocator | SetURL | Sets an object's URL. @parm PCSTR | pcszURL | The URL to be used by the object. @parm DWORD | dwInFlags | A bit mask of flags from the enumeration. @rdesc Returns one of the following return codes on success: @flag S_OK | The object's URL was set successfully. otherwise returns one of the following return codes on error: @flag E_OUTOFMEMORY | There is not enough memory to complete the operation. @flag URL_E_INVALID_SYNTAX | The URL's syntax is invalid. ******************************************************************************/ /****************************************************************************** @doc EXTERNAL INTSHCUTIFACE @method HRESULT | IUniformResourceLocator | GetURL | Retrieves an object's URL. @parm PSTR * | ppszURL | A pointer to a PSTR to be filled in with a pointer to the object's URL. When finished, this string should be freed by calling IMalloc::Free(). @rdesc Returns one of the following return codes on success: @flag S_OK | The object's URL was retrieved successfully. *ppszURL points to the URL string. @flag S_FALSE | The object does not have a URL associated with it. *ppszURL is NULL. otherwise returns one of the following return codes on error: @flag E_OUTOFMEMORY | There is not enough memory to complete the operation. ******************************************************************************/ /****************************************************************************** @doc EXTERNAL INTSHCUTIFACE @method HRESULT | IUniformResourceLocator | InvokeCommand | Invokes a command on an object's URL. @parm PURLINVOKECOMMANDINFO | purlici | A pointer to a structure describing the command to be invoked. @rdesc Returns one of the following return codes on success: @flag S_OK | The object's URL was opened successfully. @flag S_FALSE | The object does not have a URL associated with it. otherwise returns one of the following return codes on error: @flag E_OUTOFMEMORY | There is not enough memory to complete the operation. @flag IS_E_EXEC_FAILED | The URL's protocol handler failed to run. @flag URL_E_INVALID_SYNTAX | The URL's syntax is invalid. @flag URL_E_UNREGISTERED_PROTOCOL | The URL's protocol does not have a registered protocol handler. ******************************************************************************/ /* @doc EXTERNAL INTSHCUTAPI @enum TRANSLATEURL_IN_FLAGS | TranslateURL() input flags. */ /* @emem TRANSLATEURL_FL_GUESS_PROTOCOL | If set, guess protocol if missing. If clear, do not guess protocol. */ /* @emem TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL | If set, use default protocol if missing. If clear, do not use default protocol. */ /****************************************************************************** @doc EXTERNAL INTSHCUTAPI @func HRESULT | TranslateURL | Applies common translations to a URL string, creating a new URL string. @parm PCSTR | pcszURL | A pointer to the URL string to be translated. @parm DWORD | dwInFlags | A bit mask of flags from the enumeration. @parm PSTR * | ppszTranslatedURL | A pointer to the newly created translated URL string, if any. *ppszTranslatedURL is only valid if S_OK is returned. If valid, *ppszTranslatedURL should be freed by calling LocalFree(). *ppszTranslatedURL is NULL on error. @rdesc Returns one of the following return codes on success: @flag S_OK | The URL string was translated successfully, and *ppszTranslatedURL points to the translated URL string. @flag S_FALSE | The URL string did not require translation. *ppszTranslatedURL is NULL. otherwise returns one of the following return codes on error: @flag E_FLAGS | The flag combination passed in dwFlags is invalid. @flag E_OUTOFMEMORY | There is not enough memory to complete the operation. @flag E_POINTER | One of the input pointers was invalid. @comm TranslateURL() does not perform any validation on the syntax of the input URL string. A successful return value does not indicate that the input or output URL strings are valid URLs. ******************************************************************************/ /* @doc EXTERNAL INTSHCUTAPI @enum URLASSOCIATIONDIALOG_IN_FLAGS | URLAssociationDialog() input flags. */ /* @emem URLASSOCDLG_FL_USE_DEFAULT_NAME | If set, pcszFile is not valid. The default URL file name should be used. If clear, pcszFile is valid. */ /* @emem URLASSOCDLG_FL_REGISTER_ASSOC | If set, the application selected is to be registered as the handler for URLs of pcszURL's protocol. If clear, no association is to be registered. An application is only registered if this flag is set, and the user indicates that a persistent association is to be made. Registration is only possible if URLASSOCDLG_FL_USE_DEFAULT_NAME is clear. */ /****************************************************************************** @doc EXTERNAL INTSHCUTAPI @func HRESULT | URLAssociationDialog | Invokes the unregistered URL protocol dialog box. @parm HWND | hwndParent | A handle to the window to be used as the parent window of any posted child windows. @parm DWORD | dwInFlags | A bit mask of flags from the enumeration. @parm PSTR | pszAppBuf | A buffer to be filled in on success with the path of the application selected by the user. pszAppBuf's buffer is filled in with the empty string on failure. @parm UINT | ucAppBufLen | The length of pszAppBuf's buffer. @rdesc Returns one of the following return codes on success: @flag S_OK | Application registered with URL protocol. @flag S_FALSE | Nothing registered. One-time execution via selected application requested. otherwise returns one of the following return codes on error: @flag E_ABORT | The user cancelled the operation. @flag E_FLAGS | The flag combination passed in dwFlags is invalid. @flag E_OUTOFMEMORY | There is not enough memory to complete the operation. @flag E_POINTER | One of the input pointers is invalid. @flag URL_E_INVALID_SYNTAX | The URL's syntax is invalid. ******************************************************************************/ /* @doc EXTERNAL MIMEAPI @enum MIMEASSOCIATIONDIALOG_IN_FLAGS | MIMEAssociationDialog() input flags. */ /* @emem TRANSLATEURL_FL_GUESS_PROTOCOL | If set, the application selected is to be registered as the handler for files of the given MIME type. If clear, no association is to be registered. An application is only registered if this flag is set, and the user indicates that a persistent association is to be made. Registration is only possible if pcszFile contains an extension. */ /****************************************************************************** @doc EXTERNAL MIMEAPI @func HRESULT | MIMEAssociationDialog | Invokes the unregistered MIME content type dialog box. @parm HWND | hwndParent | A handle to the window to be used as the parent window of any posted child windows. @parm DWORD | dwInFlags | A bit mask of flags from the enumeration. @parm PCSTR | pcszFile | A pointer to a string indicating the name of the file containing data of pcszMIMEContentType's content type. Ignored if MIMEASSOCDLG_FL_USE_DEFAULT_NAME is set. @parm PCSTR | pcszMIMEContentType | A pointer to a string indicating the content type for which an application is sought. @parm PSTR | pszAppBuf | A buffer to be filled in on success with the path of the application selected by the user. pszAppBuf's buffer is filled in with the empty string on failure. @parm UINT | ucAppBufLen | The length of pszAppBuf's buffer. @rdesc Returns one of the following return codes on success: @flag S_OK | MIME content type associated with extension. Extension associated as default extension for content type. Application associated with extension. @flag S_FALSE | Nothing registered. One-time execution via selected application requested. otherwise returns one of the following return codes on error: @flag E_ABORT | The user cancelled the operation. @flag E_FLAGS | The flag combination passed in dwFlags is invalid. @flag E_OUTOFMEMORY | There is not enough memory to complete the operation. @flag E_POINTER | One of the input pointers is invalid. @comm MIMEAssociationDialog() does not perform any validation on the syntax of the input content type string. A successful return value does not indicate that the input MIME content type string is a valid content type. ******************************************************************************/ /****************************************************************************** @doc EXTERNAL INTSHCUTAPI @func BOOL | InetIsOffline | Determines if the user wants to be "offline" (get all information from cache). @parm DWORD | dwFlags | A bit mask of flags. No flags are currently defined. This parameter must be 0. @rdesc Returns TRUE to indicate that the local system is not currently connected to the Internet. Returns FALSE to indicate that either the local system is connected to the Internet, or no attempt has yet been made to connect the local system to the Internet. Applications that wish to support an off-line mode should do so if InetIsOffline() returns TRUE. @comm Off-line mode begins when the user has been prompted to dial-in to the Internet, but canceled the attempt. ******************************************************************************/