MimeOleGetFileInfoW function

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

Syntax

HRESULT MimeOleGetFileInfoW(
  _In_  LPWSTR pszFilePath,
  _Out_ LPWSTR *ppszCntType,
  _Out_ LPWSTR *ppszSubType,
  _Out_ LPWSTR *ppszCntDesc,
  _Out_ LPWSTR *ppszFileName,
  _Out_ LPWSTR *ppszExtension
);

Parameters

pszFilePath [in]

Type: LPWSTR

Specifies an LPWSTR that contains the file path.

ppszCntType [out]

Type: LPWSTR*

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

ppszSubType [out]

Type: LPWSTR*

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

ppszCntDesc [out]

Type: LPWSTR*

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

ppszFileName [out]

Type: LPWSTR*

Receives a pointer to an LPWSTR that contains the file name.

ppszExtension [out]

Type: LPWSTR*

Receives a pointer to an LPWSTR that contains 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)