Export (0) Print
Expand All
Expand Minimize

MimeOleGetExtContentType Function

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

Syntax

HRESULT MimeOleGetExtContentType(
  __in   LPCSTR pszExtension,
  __out  LPSTR *ppszContentType
);

Parameters

pszExtension [in]

Type: LPCSTR

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

ppszContentType [out]

Type: LPSTR*

Receives a pointer to an LPSTR that contains the Content-Type. Note: ppszContentType 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 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)

See Also

MimeOleGetExtContentTypeW

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Community Additions

ADD
Show:
© 2014 Microsoft