Files
rmbgame 798355e342 更新目录结构
新增反代脚本只对Steam内置浏览器生效的选项
2021-01-06 04:30:56 +08:00

76 lines
3.5 KiB
C#

// This file is automatically generated.
using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Steam4NET
{
[StructLayout(LayoutKind.Sequential,Pack=4)]
public class IClientStreamClientVTable
{
public IntPtr Launched0;
public IntPtr FocusGained1;
public IntPtr FocusLost2;
public IntPtr Finished3;
public IntPtr GetSystemInfo4;
public IntPtr StartStreamingSession5;
public IntPtr ReportStreamingSessionEvent6;
public IntPtr FinishStreamingSession7;
private IntPtr DTorIClientStreamClient8;
};
[InteropHelp.InterfaceVersion("CLIENTSTREAMCLIENT_INTERFACE_VERSION001")]
public class IClientStreamClient : InteropHelp.NativeWrapper<IClientStreamClientVTable>
{
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeLaunchedC( IntPtr thisptr, UInt64 gameID );
public void Launched( CGameID gameID )
{
this.GetFunction<NativeLaunchedC>( this.Functions.Launched0 )( this.ObjectAddress, gameID.ConvertToUint64() );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeFocusGainedCB( IntPtr thisptr, UInt64 gameID, [MarshalAs(UnmanagedType.I1)] bool arg1 );
public void FocusGained( CGameID gameID, bool arg1 )
{
this.GetFunction<NativeFocusGainedCB>( this.Functions.FocusGained1 )( this.ObjectAddress, gameID.ConvertToUint64(), arg1 );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeFocusLostC( IntPtr thisptr, UInt64 gameID );
public void FocusLost( CGameID gameID )
{
this.GetFunction<NativeFocusLostC>( this.Functions.FocusLost2 )( this.ObjectAddress, gameID.ConvertToUint64() );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeFinishedCE( IntPtr thisptr, UInt64 gameID, EResult eResult );
public void Finished( CGameID gameID, EResult eResult )
{
this.GetFunction<NativeFinishedCE>( this.Functions.Finished3 )( this.ObjectAddress, gameID.ConvertToUint64(), eResult );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate IntPtr NativeGetSystemInfo( IntPtr thisptr );
public string GetSystemInfo( )
{
return InteropHelp.DecodeANSIReturn( Marshal.PtrToStringAnsi( this.GetFunction<NativeGetSystemInfo>( this.Functions.GetSystemInfo4 )( this.ObjectAddress ) ) );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeStartStreamingSessionC( IntPtr thisptr, UInt64 gameID );
public void StartStreamingSession( CGameID gameID )
{
this.GetFunction<NativeStartStreamingSessionC>( this.Functions.StartStreamingSession5 )( this.ObjectAddress, gameID.ConvertToUint64() );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeReportStreamingSessionEventCS( IntPtr thisptr, UInt64 gameID, string arg1 );
public void ReportStreamingSessionEvent( CGameID gameID, string arg1 )
{
this.GetFunction<NativeReportStreamingSessionEventCS>( this.Functions.ReportStreamingSessionEvent6 )( this.ObjectAddress, gameID.ConvertToUint64(), arg1 );
}
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeFinishStreamingSessionCSS( IntPtr thisptr, UInt64 gameID, string arg1, string arg2 );
public void FinishStreamingSession( CGameID gameID, string arg1, string arg2 )
{
this.GetFunction<NativeFinishStreamingSessionCSS>( this.Functions.FinishStreamingSession7 )( this.ObjectAddress, gameID.ConvertToUint64(), arg1, arg2 );
}
};
}