コード例 #1
0
ファイル: NativeMethodsX.cs プロジェクト: skykying/traces
 public static extern uint StXStreamFindByName(uint session,
                                               string name, out Native.StreamQueryInformation info);
コード例 #2
0
ファイル: NativeX.cs プロジェクト: skykying/traces
        /* Helpers */

        /// <summary>
        /// This method searches the list of available streams for a stream
        /// with the given name and returns its id and detailed properties.
        /// </summary>
        /// <param name="session">The id of the session in which to search for
        ///     the stream.</param>
        /// <param name="name">The name of the stream to search for.</param>
        /// <param name="info">Pointer to a StreamQueryInformation structure to
        ///     receive detailed stream information.</param>
        /// <returns>The id of the stream with the given name on success,
        ///     INVALID_STREAM_ID, otherwise. For a more detailed error
        ///     description call StGetLastError().</returns>
        public static uint StXStreamFindByName(uint session, string name,
                                               out Native.StreamQueryInformation info)
        {
            return(NativeMethods.StXStreamFindByName(session, name, out info));
        }