/// <summary> /// This method opens a new read handle to the specified stream. The /// handle can be used with StGetNextEntryFast() and /// StGetPreviousEntryFast() to read entries. /// </summary> /// <param name="session">The id of the session that holds the /// stream of interest.</param> /// <param name="stream">The id of the stream to open a /// handle for.</param> /// <param name="type">Type of property value that indicates which /// position in the stream should be opened. For further /// information on the possible query types /// see QueryIndexType.</param> /// <param name="value">A value used in the query specified by type. /// See QueryIndexType for more details.</param> /// <param name="flags">Supplies information on how the caller intends /// to access the stream with the requested handle. For more /// information see StreamAccessFlags.</param> /// <returns>A read handle to the specified stream if successful, /// 0 otherwise. For a more detailed error description call /// StGetLastError().</returns> public static IntPtr StStreamOpen(uint session, uint stream, QueryIndexType type, ulong value, StreamAccessFlags flags) { return(NativeMethods.StStreamOpen(session, stream, type, value, flags, IntPtr.Zero)); }
public static extern IntPtr StStreamOpen(uint session, uint stream, QueryIndexType type, ulong value, StreamAccessFlags flags, IntPtr handle);