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 codeDescription
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

Minimum supported server

Windows Server 2003

Product

Outlook Express 6.0

Header

Mimeole.h

Library

Inetcomm.lib

DLL

Inetcomm.dll (version 6.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Community Additions

ADD
Show: