MimeOleGetFileExtension function

Do not use. Gets the file name extension for the specified file.

Syntax

HRESULT MimeOleGetFileExtension(
  _In_    LPCSTR pszFilePath,
  _Inout_ LPSTR  pszExt,
  _In_    ULONG  cchMax
);

Parameters

pszFilePath [in]

Type: LPCSTR

Specifies an LPCSTR that contains the file path.

pszExt [in, out]

Type: LPSTR

Receives an LPSTR that contains the file name extension.

cchMax [in]

Type: ULONG

Specifies a ULONG that indicates the largest allowable size for pszExt.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that pszFilePath or pszExt is NULL or that cchMax is larger than the maximum allowable size.

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)