Export (0) Print
Expand All
Expand Minimize

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

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:
© 2014 Microsoft