IAssemblyCacheItem::CreateStream method (winsxs.h)

The CreateStream method copies the source of a manifest or module into a stream.

Syntax

HRESULT CreateStream(
  [in]       DWORD          dwFlags,
  [in]       LPCWSTR        pszStreamName,
  [in]       DWORD          dwFormat,
  [in]       DWORD          dwFormatFlags,
             IStream        **ppIStream,
  [optional] ULARGE_INTEGER *puliMaxSize
);

Parameters

[in] dwFlags

Reserved.

[in] pszStreamName

Pointer to a string value containing the name of the manifest. This becomes the name of the stream.

[in] dwFormat

This parameter specifies whether a module or manifest is being copied to a stream.

Value Meaning
STREAM_FORMAT_COMPLIB_MODULE
Copy the source of a module for a non-Windows assembly to a stream.
STREAM_FORMAT_COMPLIB_MANIFEST
Copy the source of a manifest for a non-Windows assembly to a stream.
STREAM_FORMAT_WIN32_MODULE
Copy the source of a module for a Windows assembly to a stream.
STREAM_FORMAT_WIN32_MANIFEST
Copy the source of a manifest for a Windows assembly to a stream.

[in] dwFormatFlags

Reserved.

ppIStream

Pointer to the location that contains the pointer to the IStream interface that receives the information.

[optional] puliMaxSize

Reserved.

Return value

This method can return one of these values.

Return value Description
S_OK
The method succeeded.
S_FALSE
The method did not succeed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winsxs.h
DLL Sxs.dll

See also

IAssemblyCacheItem