MimeOleGetExtContentTypeW Function

Do not use. Returns the Content-Type of the specified Unicode file name extension string.

Syntax

HRESULT MimeOleGetExtContentTypeW(
  __in   LPCWSTR pszExtension,
  __out  LPWSTR *ppszContentType
);

Parameters

pszExtension [in]

Type: LPCWSTR

Specifies an LPCWSTR that contains the file name extension. The file name extension must begin with a period (".").

ppszContentType [out]

Type: LPWSTR*

Receives a pointer to an LPWSTR that contains the Content-Type. Note: ppszContentType must point to a valid LPWSTR 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 that pszExtension or ppszContentType is NULL or that pszExtension does not begin with a period.

E_OUTOFMEMORY

Indicates an attempt to allocate memory failed.

MIME_E_NOT_FOUND

Indicates that no proper file name extension was found.

 

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: