// This file is automatically generated. using System; using System.Text; using System.Runtime.InteropServices; namespace Steam4NET { [StructLayout(LayoutKind.Sequential,Pack=4)] public class ISteamUser004VTable { public IntPtr GetHSteamUser0; public IntPtr LogOn1; public IntPtr LogOff2; public IntPtr BLoggedOn3; public IntPtr GetLogonState4; public IntPtr BConnected5; public IntPtr GetSteamID6; public IntPtr IsVACBanned7; public IntPtr RequireShowVACBannedMessage8; public IntPtr AcknowledgeVACBanning9; public IntPtr NClientGameIDAdd10; public IntPtr RemoveClientGame11; public IntPtr SetClientGameServer12; public IntPtr SetSteam2Ticket13; public IntPtr AddServerNetAddress14; public IntPtr SetEmail15; public IntPtr GetSteamGameConnectToken16; public IntPtr SetRegistryString17; public IntPtr GetRegistryString18; public IntPtr SetRegistryInt19; public IntPtr GetRegistryInt20; public IntPtr InitiateGameConnection21; public IntPtr TerminateGameConnection22; public IntPtr SetSelfAsPrimaryChatDestination23; public IntPtr IsPrimaryChatDestination24; public IntPtr RequestLegacyCDKey25; private IntPtr DTorISteamUser00426; }; [InteropHelp.InterfaceVersion("SteamUser004")] public class ISteamUser004 : InteropHelp.NativeWrapper { [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate Int32 NativeGetHSteamUser( IntPtr thisptr ); public Int32 GetHSteamUser( ) { return this.GetFunction( this.Functions.GetHSteamUser0 )( this.ObjectAddress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeLogOnC( IntPtr thisptr, UInt64 steamID ); public void LogOn( CSteamID steamID ) { this.GetFunction( this.Functions.LogOn1 )( this.ObjectAddress, steamID.ConvertToUint64() ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeLogOff( IntPtr thisptr ); public void LogOff( ) { this.GetFunction( this.Functions.LogOff2 )( this.ObjectAddress ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeBLoggedOn( IntPtr thisptr ); public bool BLoggedOn( ) { return this.GetFunction( this.Functions.BLoggedOn3 )( this.ObjectAddress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate ELogonState NativeGetLogonState( IntPtr thisptr ); public ELogonState GetLogonState( ) { return this.GetFunction( this.Functions.GetLogonState4 )( this.ObjectAddress ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeBConnected( IntPtr thisptr ); public bool BConnected( ) { return this.GetFunction( this.Functions.BConnected5 )( this.ObjectAddress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeGetSteamID( IntPtr thisptr, ref UInt64 retarg ); public CSteamID GetSteamID( ) { UInt64 ret = 0; this.GetFunction( this.Functions.GetSteamID6 )( this.ObjectAddress, ref ret ); return new CSteamID(ret); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeIsVACBannedE( IntPtr thisptr, EVACBan eVACBan ); public bool IsVACBanned( EVACBan eVACBan ) { return this.GetFunction( this.Functions.IsVACBanned7 )( this.ObjectAddress, eVACBan ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeRequireShowVACBannedMessageE( IntPtr thisptr, EVACBan eVACBan ); public bool RequireShowVACBannedMessage( EVACBan eVACBan ) { return this.GetFunction( this.Functions.RequireShowVACBannedMessage8 )( this.ObjectAddress, eVACBan ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeAcknowledgeVACBanningE( IntPtr thisptr, EVACBan eVACBan ); public void AcknowledgeVACBanning( EVACBan eVACBan ) { this.GetFunction( this.Functions.AcknowledgeVACBanning9 )( this.ObjectAddress, eVACBan ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate Int32 NativeNClientGameIDAddI( IntPtr thisptr, Int32 nGameID ); public Int32 NClientGameIDAdd( Int32 nGameID ) { return this.GetFunction( this.Functions.NClientGameIDAdd10 )( this.ObjectAddress, nGameID ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeRemoveClientGameI( IntPtr thisptr, Int32 nClientGameID ); public void RemoveClientGame( Int32 nClientGameID ) { this.GetFunction( this.Functions.RemoveClientGame11 )( this.ObjectAddress, nClientGameID ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeSetClientGameServerIUU( IntPtr thisptr, Int32 nClientGameID, UInt32 unIPServer, UInt16 usPortServer ); public void SetClientGameServer( Int32 nClientGameID, UInt32 unIPServer, UInt16 usPortServer ) { this.GetFunction( this.Functions.SetClientGameServer12 )( this.ObjectAddress, nClientGameID, unIPServer, usPortServer ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeSetSteam2TicketBI( IntPtr thisptr, Byte[] pubTicket, Int32 cubTicket ); public void SetSteam2Ticket( Byte[] pubTicket ) { this.GetFunction( this.Functions.SetSteam2Ticket13 )( this.ObjectAddress, pubTicket, (Int32) pubTicket.Length ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeAddServerNetAddressUU( IntPtr thisptr, UInt32 unIP, UInt16 unPort ); public void AddServerNetAddress( UInt32 unIP, UInt16 unPort ) { this.GetFunction( this.Functions.AddServerNetAddress14 )( this.ObjectAddress, unIP, unPort ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeSetEmailS( IntPtr thisptr, string pchEmail ); public bool SetEmail( string pchEmail ) { return this.GetFunction( this.Functions.SetEmail15 )( this.ObjectAddress, pchEmail ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate Int32 NativeGetSteamGameConnectTokenBI( IntPtr thisptr, Byte[] pBlob, Int32 cbMaxBlob ); public Int32 GetSteamGameConnectToken( Byte[] pBlob ) { return this.GetFunction( this.Functions.GetSteamGameConnectToken16 )( this.ObjectAddress, pBlob, (Int32) pBlob.Length ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeSetRegistryStringESS( IntPtr thisptr, ERegistrySubTree eRegistrySubTree, string pchKey, string pchValue ); public bool SetRegistryString( ERegistrySubTree eRegistrySubTree, string pchKey, string pchValue ) { return this.GetFunction( this.Functions.SetRegistryString17 )( this.ObjectAddress, eRegistrySubTree, pchKey, pchValue ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetRegistryStringESSI( IntPtr thisptr, ERegistrySubTree eRegistrySubTree, string pchKey, StringBuilder pchValue, Int32 cbValue ); public bool GetRegistryString( ERegistrySubTree eRegistrySubTree, string pchKey, StringBuilder pchValue ) { return this.GetFunction( this.Functions.GetRegistryString18 )( this.ObjectAddress, eRegistrySubTree, pchKey, pchValue, (Int32) pchValue.Capacity ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeSetRegistryIntESI( IntPtr thisptr, ERegistrySubTree eRegistrySubTree, string pchKey, Int32 iValue ); public bool SetRegistryInt( ERegistrySubTree eRegistrySubTree, string pchKey, Int32 iValue ) { return this.GetFunction( this.Functions.SetRegistryInt19 )( this.ObjectAddress, eRegistrySubTree, pchKey, iValue ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetRegistryIntESI( IntPtr thisptr, ERegistrySubTree eRegistrySubTree, string pchKey, ref Int32 piValue ); public bool GetRegistryInt( ERegistrySubTree eRegistrySubTree, string pchKey, ref Int32 piValue ) { return this.GetFunction( this.Functions.GetRegistryInt20 )( this.ObjectAddress, eRegistrySubTree, pchKey, ref piValue ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate Int32 NativeInitiateGameConnectionBICIUUB( IntPtr thisptr, Byte[] pBlob, Int32 cbMaxBlob, UInt64 steamID, Int32 nGameAppID, UInt32 unIPServer, UInt16 usPortServer, [MarshalAs(UnmanagedType.I1)] bool bSecure ); public Int32 InitiateGameConnection( Byte[] pBlob, CSteamID steamID, Int32 nGameAppID, UInt32 unIPServer, UInt16 usPortServer, bool bSecure ) { return this.GetFunction( this.Functions.InitiateGameConnection21 )( this.ObjectAddress, pBlob, (Int32) pBlob.Length, steamID.ConvertToUint64(), nGameAppID, unIPServer, usPortServer, bSecure ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeTerminateGameConnectionUU( IntPtr thisptr, UInt32 unIPServer, UInt16 usPortServer ); public void TerminateGameConnection( UInt32 unIPServer, UInt16 usPortServer ) { this.GetFunction( this.Functions.TerminateGameConnection22 )( this.ObjectAddress, unIPServer, usPortServer ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeSetSelfAsPrimaryChatDestination( IntPtr thisptr ); public void SetSelfAsPrimaryChatDestination( ) { this.GetFunction( this.Functions.SetSelfAsPrimaryChatDestination23 )( this.ObjectAddress ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeIsPrimaryChatDestination( IntPtr thisptr ); public bool IsPrimaryChatDestination( ) { return this.GetFunction( this.Functions.IsPrimaryChatDestination24 )( this.ObjectAddress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeRequestLegacyCDKeyU( IntPtr thisptr, UInt32 iAppID ); public void RequestLegacyCDKey( UInt32 iAppID ) { this.GetFunction( this.Functions.RequestLegacyCDKey25 )( this.ObjectAddress, iAppID ); } }; }