Share via


MimeOleContentTypeFromUrl function

Do not use. Returns the Content-Type for the specified URL.

Syntax

HRESULT MimeOleContentTypeFromUrl(
  _In_  LPCSTR pszBase,
  _In_  LPCSTR pszUrl,
  _Out_ LPSTR  *ppszCntType
);

Parameters

pszBase [in]

Type: LPCSTR

Specifies the base URL.

pszUrl [in]

Type: LPCSTR

Specifies the relative URL.

ppszCntType [out]

Type: LPSTR*

Receives a pointer to an LPSTR that contains the Content-Type. Note: LPSTR needs to have been valid prior to call and user is responsible for freeing what is pointed to by this parameter.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that a pointer parameter is NULL.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
Library
Inetcomm.lib
DLL
Inetcomm.dll (version 6.0 or later)