Share via


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 code Description
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 [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)