Share via


MimeOleGetFileInfo function

Do not use. Returns file information for a supplied file path string.

Syntax

HRESULT MimeOleGetFileInfo(
  _In_  LPSTR pszFilePath,
  _Out_ LPSTR *ppszCntType,
  _Out_ LPSTR *ppszSubType,
  _Out_ LPSTR *ppszCntDesc,
  _Out_ LPSTR *ppszFileName,
  _Out_ LPSTR *ppszExtension
);

Parameters

pszFilePath [in]

Type: LPSTR

Specifies an LPSTR that contains the file path.

ppszCntType [out]

Type: LPSTR*

Receives a pointer to an LPSTR that contains the primary Content-Type.

ppszSubType [out]

Type: LPSTR*

Receives a pointer to an LPSTR that contains the secondary Content-Type.

ppszCntDesc [out]

Type: LPSTR*

Receives a pointer to an LPSTR that may contain the following descriptions: SHGFI_USEFILEATTRIBUTES, SHGFI_DISPLAYNAME, SHGFI_TYPENAME. See shellapi.h.

ppszFileName [out]

Type: LPSTR*

Receives the file name.

ppszExtension [out]

Type: LPSTR*

Receives the file name extension.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that a pointer parameter is NULL.
E_OUTOFMEMORY
Indicates that an allocation failed.

Remarks

Enter NULL for any parameter you do not wish to obtain info for. However, any parameter that is not NULL must be a valid pointer.

Note

Both ppszCntType and ppszSubType must be present and valid to receive info for either one.

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)

See also

MimeOleGetFileInfoW