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

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: