MimeOleOpenFileStream Function

Do not use. Opens or, if non-existing, creates a file stream with specified read/write properties.

Syntax

HRESULT MimeOleOpenFileStream(
  __in   LPCSTR pszFilePath,
  __in   DWORD dwCreationDistribution,
  __in   DWORD dwAccess,
  __out  IStream **ppstmFile
);

Parameters

pszFilePath [in]

Type: LPCSTR

Specifies the file path.

dwCreationDistribution [in]

Type: DWORD

Specifies whether file should be created if it does not exist.

dwAccess [in]

Type: DWORD

Specifies whether file is to be opened for write.

ppstmFile [out]

Type: IStream**

Receives the address of a pointer to the IStream object that contains the stream to be opened/created.

Return Value

Type: HRESULT

Returns one of the following values.

Return codeDescription
S_OK

Indicates success.

E_INVALIDARG

Indicates that pszFilePath or ppstmFile is NULL.

 

Remarks

Note  User of this function is responsible for freeing the IStream object pointed to by ppstmFile.

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: