// This file is automatically generated.
using System;
using System.Text;
using System.Runtime.InteropServices;

namespace Steam4NET
{

	[StructLayout(LayoutKind.Sequential,Pack=4)]
	public class ISteamGameCoordinator001VTable
	{
		public IntPtr SendMessage0;
		public IntPtr IsMessageAvailable1;
		public IntPtr RetrieveMessage2;
		private IntPtr DTorISteamGameCoordinator0013;
	};
	
	[InteropHelp.InterfaceVersion("SteamGameCoordinator001")]
	public class ISteamGameCoordinator001 : InteropHelp.NativeWrapper<ISteamGameCoordinator001VTable>
	{
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate EGCResults NativeSendMessageUBU( IntPtr thisptr, UInt32 unMsgType, Byte[] pubData, UInt32 cubData );
		public EGCResults SendMessage( UInt32 unMsgType, Byte[] pubData ) 
		{
			return this.GetFunction<NativeSendMessageUBU>( this.Functions.SendMessage0 )( this.ObjectAddress, unMsgType, pubData, (UInt32) pubData.Length ); 
		}
		
		[return: MarshalAs(UnmanagedType.I1)]
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeIsMessageAvailableU( IntPtr thisptr, ref UInt32 pcubMsgSize );
		public bool IsMessageAvailable( ref UInt32 pcubMsgSize ) 
		{
			return this.GetFunction<NativeIsMessageAvailableU>( this.Functions.IsMessageAvailable1 )( this.ObjectAddress, ref pcubMsgSize ); 
		}
		
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate EGCResults NativeRetrieveMessageUBUU( IntPtr thisptr, ref UInt32 punMsgType, Byte[] pubDest, UInt32 cubDest, ref UInt32 pcubMsgSize );
		public EGCResults RetrieveMessage( ref UInt32 punMsgType, Byte[] pubDest, ref UInt32 pcubMsgSize ) 
		{
			return this.GetFunction<NativeRetrieveMessageUBUU>( this.Functions.RetrieveMessage2 )( this.ObjectAddress, ref punMsgType, pubDest, (UInt32) pubDest.Length, ref pcubMsgSize ); 
		}
		
	};
}
