Share via


MimeOleGetContentTypeExt function

Do not use. Returns the file name extension for a supplied content type.

Syntax

HRESULT MimeOleGetContentTypeExt(
  _In_  LPCSTR pszContentType,
  _Out_ LPSTR  *ppszExtension
);

Parameters

pszContentType [in]

Type: LPCSTR

Specifies a content type.

ppszExtension [out]

Type: LPSTR*

Returns pointer to string containing extension. Note: ppszExtension must point to a valid LPSTR before this function is called and user is responsible for freeing what this parameter points to.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates pointer parameter is NULL.
E_OUTOFMEMORY
Indicates allocation failed.
MIME_E_NOT_FOUND
Indicates content type not found in registry.

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)