IStreamPseudoRandomBased interface (imapi2.h)

Use this interface to generate a read-only data stream whose data is initialized with pseudo-random data (not cryptographically safe). You must call the SetSize method to set the requested size of the stream.

To create an instance of this interface, call the CoCreateInstance function. Use __uuidof(MsftStreamPrng001) for the class identifier and __uuidof(IStreamPseudoRandomBased) for the interface identifier.

Inheritance

The IStreamPseudoRandomBased interface inherits from IStream. IStreamPseudoRandomBased also has these types of members:

Methods

The IStreamPseudoRandomBased interface has these methods.

 
IStreamPseudoRandomBased::get_ExtendedSeed

Retrieves an array of seed values used by the random number generator.
IStreamPseudoRandomBased::get_Seed

Retrieves the seed value used by the random number generator.
IStreamPseudoRandomBased::put_ExtendedSeed

Sets a list of seed values for the random number generator and seeks to the start of stream.
IStreamPseudoRandomBased::put_Seed

Sets the seed value used by the random number generator and seeks to the start of stream.

Remarks

To create the MsftStreamPrgn001 object in a script, use IMAPI2.MsftStreamPrgn001 as the program identifier when calling CreateObject.

Requirements

Requirement Value
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imapi2.h

See also

IStreamConcatenate

IStreamInterleave