mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-25 11:39:56 +08:00
34 lines
1.1 KiB
C#
34 lines
1.1 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 IClientStreamLauncherVTable
|
|
{
|
|
public IntPtr StartStreaming0;
|
|
public IntPtr StopStreaming1;
|
|
private IntPtr DTorIClientStreamLauncher2;
|
|
};
|
|
|
|
[InteropHelp.InterfaceVersion("CLIENTSTREAMLAUNCHER_INTERFACE_VERSION001")]
|
|
public class IClientStreamLauncher : InteropHelp.NativeWrapper<IClientStreamLauncherVTable>
|
|
{
|
|
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate EStreamLauncherResult NativeStartStreamingS( IntPtr thisptr, string cszFilePath );
|
|
public EStreamLauncherResult StartStreaming( string cszFilePath )
|
|
{
|
|
return this.GetFunction<NativeStartStreamingS>( this.Functions.StartStreaming0 )( this.ObjectAddress, cszFilePath );
|
|
}
|
|
|
|
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeStopStreaming( IntPtr thisptr );
|
|
public void StopStreaming( )
|
|
{
|
|
this.GetFunction<NativeStopStreaming>( this.Functions.StopStreaming1 )( this.ObjectAddress );
|
|
}
|
|
|
|
};
|
|
}
|