sourCEntral - mobile manpages

pdf

OpenStreamOnFile

NAME

OpenStreamOnFile (MAPI32.147)

SYNOPSIS

HRESULT OpenStreamOnFile
(
LPALLOCATEBUFFER lpAlloc,
LPFREEBUFFER lpFree,
ULONG ulFlags,
LPWSTR lpszPath,
LPWSTR lpszPrefix,
LPSTREAM* lppStream
)

DESCRIPTION

Create a stream on a file.

PARAMS

lpAlloc [In] Memory allocation function.

lpFree [In] Memory free function.

ulFlags [In] Flags controlling the opening process.

lpszPath [In] Path of file to create stream on.

lpszPrefix [In] Prefix of the temporary file name (if ulFlags includes SOF_UNIQUEFILENAME).

lppStream [Out] Destination for created stream.

RETURNS

Success: S_OK. lppStream contains the new stream object

Failure: E_INVALIDARG if any parameter is invalid, or an HRESULT error code describing the error.

IMPLEMENTATION

Defined in "mapiutil.h".

Implemented in "dlls/mapi32/util.c".

Debug channel "mapi".

pdf