Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8803 lines
421 KiB

  1. //=== === Copyright 1996-2014, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose: This file contains C#/managed code bindings for the SteamAPI interfaces
  4. // This file is auto-generated, do not edit it.
  5. //
  6. //=============================================================================
  7. using System;
  8. using System.Runtime.InteropServices;
  9. using Valve.Steamworks;
  10. using Valve.Interop;
  11. using Valve.VR;
  12. namespace Valve.Interop
  13. {
  14. class NativeEntrypoints
  15. {
  16. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_CreateSteamPipe")]
  17. internal static extern uint SteamAPI_ISteamClient_CreateSteamPipe(IntPtr instancePtr);
  18. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_BReleaseSteamPipe")]
  19. internal static extern bool SteamAPI_ISteamClient_BReleaseSteamPipe(IntPtr instancePtr, uint hSteamPipe);
  20. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_ConnectToGlobalUser")]
  21. internal static extern uint SteamAPI_ISteamClient_ConnectToGlobalUser(IntPtr instancePtr, uint hSteamPipe);
  22. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_CreateLocalUser")]
  23. internal static extern uint SteamAPI_ISteamClient_CreateLocalUser(IntPtr instancePtr, ref uint phSteamPipe, uint eAccountType);
  24. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_ReleaseUser")]
  25. internal static extern void SteamAPI_ISteamClient_ReleaseUser(IntPtr instancePtr, uint hSteamPipe, uint hUser);
  26. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUser")]
  27. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUser(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  28. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServer")]
  29. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamGameServer(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  30. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_SetLocalIPBinding")]
  31. internal static extern void SteamAPI_ISteamClient_SetLocalIPBinding(IntPtr instancePtr, uint unIP, char usPort);
  32. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamFriends")]
  33. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamFriends(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  34. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUtils")]
  35. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUtils(IntPtr instancePtr, uint hSteamPipe, string pchVersion);
  36. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmaking")]
  37. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMatchmaking(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  38. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMatchmakingServers")]
  39. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMatchmakingServers(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  40. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamGenericInterface")]
  41. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamGenericInterface(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  42. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUserStats")]
  43. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUserStats(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  44. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamGameServerStats")]
  45. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamGameServerStats(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  46. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamApps")]
  47. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamApps(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  48. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamNetworking")]
  49. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamNetworking(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  50. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamRemoteStorage")]
  51. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamRemoteStorage(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  52. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamScreenshots")]
  53. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamScreenshots(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  54. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_RunFrame")]
  55. internal static extern void SteamAPI_ISteamClient_RunFrame(IntPtr instancePtr);
  56. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetIPCCallCount")]
  57. internal static extern uint SteamAPI_ISteamClient_GetIPCCallCount(IntPtr instancePtr);
  58. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_SetWarningMessageHook")]
  59. internal static extern void SteamAPI_ISteamClient_SetWarningMessageHook(IntPtr instancePtr, IntPtr pFunction);
  60. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_BShutdownIfAllPipesClosed")]
  61. internal static extern bool SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(IntPtr instancePtr);
  62. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamHTTP")]
  63. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamHTTP(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  64. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUnifiedMessages")]
  65. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUnifiedMessages(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  66. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamController")]
  67. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamController(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  68. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamUGC")]
  69. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamUGC(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  70. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamAppList")]
  71. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamAppList(IntPtr instancePtr, uint hSteamUser, uint hSteamPipe, string pchVersion);
  72. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMusic")]
  73. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMusic(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  74. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamMusicRemote")]
  75. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamMusicRemote(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  76. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamHTMLSurface")]
  77. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamHTMLSurface(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  78. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess")]
  79. internal static extern void SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(IntPtr instancePtr, IntPtr func);
  80. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess")]
  81. internal static extern void SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(IntPtr instancePtr, IntPtr func);
  82. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess")]
  83. internal static extern void SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(IntPtr instancePtr, IntPtr func);
  84. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamInventory")]
  85. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamInventory(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  86. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamClient_GetISteamVideo")]
  87. internal static extern IntPtr SteamAPI_ISteamClient_GetISteamVideo(IntPtr instancePtr, uint hSteamuser, uint hSteamPipe, string pchVersion);
  88. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetHSteamUser")]
  89. internal static extern uint SteamAPI_ISteamUser_GetHSteamUser(IntPtr instancePtr);
  90. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BLoggedOn")]
  91. internal static extern bool SteamAPI_ISteamUser_BLoggedOn(IntPtr instancePtr);
  92. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetSteamID")]
  93. internal static extern ulong SteamAPI_ISteamUser_GetSteamID(IntPtr instancePtr);
  94. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection")]
  95. internal static extern int SteamAPI_ISteamUser_InitiateGameConnection(IntPtr instancePtr, IntPtr pAuthBlob, int cbMaxAuthBlob, ulong steamIDGameServer, uint unIPServer, char usPortServer, bool bSecure);
  96. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection")]
  97. internal static extern void SteamAPI_ISteamUser_TerminateGameConnection(IntPtr instancePtr, uint unIPServer, char usPortServer);
  98. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent")]
  99. internal static extern void SteamAPI_ISteamUser_TrackAppUsageEvent(IntPtr instancePtr, ulong gameID, int eAppUsageEvent, string pchExtraInfo);
  100. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder")]
  101. internal static extern bool SteamAPI_ISteamUser_GetUserDataFolder(IntPtr instancePtr, string pchBuffer, int cubBuffer);
  102. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording")]
  103. internal static extern void SteamAPI_ISteamUser_StartVoiceRecording(IntPtr instancePtr);
  104. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording")]
  105. internal static extern void SteamAPI_ISteamUser_StopVoiceRecording(IntPtr instancePtr);
  106. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice")]
  107. internal static extern uint SteamAPI_ISteamUser_GetAvailableVoice(IntPtr instancePtr, ref uint pcbCompressed, ref uint pcbUncompressed, uint nUncompressedVoiceDesiredSampleRate);
  108. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetVoice")]
  109. internal static extern uint SteamAPI_ISteamUser_GetVoice(IntPtr instancePtr, bool bWantCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, bool bWantUncompressed, IntPtr pUncompressedDestBuffer, uint cbUncompressedDestBufferSize, ref uint nUncompressBytesWritten, uint nUncompressedVoiceDesiredSampleRate);
  110. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_DecompressVoice")]
  111. internal static extern uint SteamAPI_ISteamUser_DecompressVoice(IntPtr instancePtr, IntPtr pCompressed, uint cbCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, uint nDesiredSampleRate);
  112. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetVoiceOptimalSampleRate")]
  113. internal static extern uint SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(IntPtr instancePtr);
  114. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetAuthSessionTicket")]
  115. internal static extern uint SteamAPI_ISteamUser_GetAuthSessionTicket(IntPtr instancePtr, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket);
  116. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BeginAuthSession")]
  117. internal static extern uint SteamAPI_ISteamUser_BeginAuthSession(IntPtr instancePtr, IntPtr pAuthTicket, int cbAuthTicket, ulong steamID);
  118. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_EndAuthSession")]
  119. internal static extern void SteamAPI_ISteamUser_EndAuthSession(IntPtr instancePtr, ulong steamID);
  120. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_CancelAuthTicket")]
  121. internal static extern void SteamAPI_ISteamUser_CancelAuthTicket(IntPtr instancePtr, uint hAuthTicket);
  122. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_UserHasLicenseForApp")]
  123. internal static extern uint SteamAPI_ISteamUser_UserHasLicenseForApp(IntPtr instancePtr, ulong steamID, uint appID);
  124. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_BIsBehindNAT")]
  125. internal static extern bool SteamAPI_ISteamUser_BIsBehindNAT(IntPtr instancePtr);
  126. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_AdvertiseGame")]
  127. internal static extern void SteamAPI_ISteamUser_AdvertiseGame(IntPtr instancePtr, ulong steamIDGameServer, uint unIPServer, char usPortServer);
  128. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_RequestEncryptedAppTicket")]
  129. internal static extern ulong SteamAPI_ISteamUser_RequestEncryptedAppTicket(IntPtr instancePtr, IntPtr pDataToInclude, int cbDataToInclude);
  130. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetEncryptedAppTicket")]
  131. internal static extern bool SteamAPI_ISteamUser_GetEncryptedAppTicket(IntPtr instancePtr, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket);
  132. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetGameBadgeLevel")]
  133. internal static extern int SteamAPI_ISteamUser_GetGameBadgeLevel(IntPtr instancePtr, int nSeries, bool bFoil);
  134. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_GetPlayerSteamLevel")]
  135. internal static extern int SteamAPI_ISteamUser_GetPlayerSteamLevel(IntPtr instancePtr);
  136. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUser_RequestStoreAuthURL")]
  137. internal static extern ulong SteamAPI_ISteamUser_RequestStoreAuthURL(IntPtr instancePtr, string pchRedirectURL);
  138. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetPersonaName")]
  139. internal static extern IntPtr SteamAPI_ISteamFriends_GetPersonaName(IntPtr instancePtr);
  140. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetPersonaName")]
  141. internal static extern ulong SteamAPI_ISteamFriends_SetPersonaName(IntPtr instancePtr, string pchPersonaName);
  142. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetPersonaState")]
  143. internal static extern uint SteamAPI_ISteamFriends_GetPersonaState(IntPtr instancePtr);
  144. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCount")]
  145. internal static extern int SteamAPI_ISteamFriends_GetFriendCount(IntPtr instancePtr, int iFriendFlags);
  146. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendByIndex")]
  147. internal static extern ulong SteamAPI_ISteamFriends_GetFriendByIndex(IntPtr instancePtr, int iFriend, int iFriendFlags);
  148. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRelationship")]
  149. internal static extern uint SteamAPI_ISteamFriends_GetFriendRelationship(IntPtr instancePtr, ulong steamIDFriend);
  150. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaState")]
  151. internal static extern uint SteamAPI_ISteamFriends_GetFriendPersonaState(IntPtr instancePtr, ulong steamIDFriend);
  152. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaName")]
  153. internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaName(IntPtr instancePtr, ulong steamIDFriend);
  154. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendGamePlayed")]
  155. internal static extern bool SteamAPI_ISteamFriends_GetFriendGamePlayed(IntPtr instancePtr, ulong steamIDFriend, ref FriendGameInfo_t pFriendGameInfo);
  156. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendPersonaNameHistory")]
  157. internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(IntPtr instancePtr, ulong steamIDFriend, int iPersonaName);
  158. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendSteamLevel")]
  159. internal static extern int SteamAPI_ISteamFriends_GetFriendSteamLevel(IntPtr instancePtr, ulong steamIDFriend);
  160. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetPlayerNickname")]
  161. internal static extern IntPtr SteamAPI_ISteamFriends_GetPlayerNickname(IntPtr instancePtr, ulong steamIDPlayer);
  162. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupCount")]
  163. internal static extern int SteamAPI_ISteamFriends_GetFriendsGroupCount(IntPtr instancePtr);
  164. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex")]
  165. internal static extern char SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(IntPtr instancePtr, int iFG);
  166. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupName")]
  167. internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendsGroupName(IntPtr instancePtr, char friendsGroupID);
  168. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersCount")]
  169. internal static extern int SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(IntPtr instancePtr, char friendsGroupID);
  170. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendsGroupMembersList")]
  171. internal static extern void SteamAPI_ISteamFriends_GetFriendsGroupMembersList(IntPtr instancePtr, char friendsGroupID, [In, Out] CSteamID[] pOutSteamIDMembers, int nMembersCount);
  172. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_HasFriend")]
  173. internal static extern bool SteamAPI_ISteamFriends_HasFriend(IntPtr instancePtr, ulong steamIDFriend, int iFriendFlags);
  174. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanCount")]
  175. internal static extern int SteamAPI_ISteamFriends_GetClanCount(IntPtr instancePtr);
  176. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanByIndex")]
  177. internal static extern ulong SteamAPI_ISteamFriends_GetClanByIndex(IntPtr instancePtr, int iClan);
  178. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanName")]
  179. internal static extern IntPtr SteamAPI_ISteamFriends_GetClanName(IntPtr instancePtr, ulong steamIDClan);
  180. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanTag")]
  181. internal static extern IntPtr SteamAPI_ISteamFriends_GetClanTag(IntPtr instancePtr, ulong steamIDClan);
  182. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanActivityCounts")]
  183. internal static extern bool SteamAPI_ISteamFriends_GetClanActivityCounts(IntPtr instancePtr, ulong steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting);
  184. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_DownloadClanActivityCounts")]
  185. internal static extern ulong SteamAPI_ISteamFriends_DownloadClanActivityCounts(IntPtr instancePtr, [In, Out] CSteamID[] psteamIDClans, int cClansToRequest);
  186. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCountFromSource")]
  187. internal static extern int SteamAPI_ISteamFriends_GetFriendCountFromSource(IntPtr instancePtr, ulong steamIDSource);
  188. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendFromSourceByIndex")]
  189. internal static extern ulong SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(IntPtr instancePtr, ulong steamIDSource, int iFriend);
  190. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsUserInSource")]
  191. internal static extern bool SteamAPI_ISteamFriends_IsUserInSource(IntPtr instancePtr, ulong steamIDUser, ulong steamIDSource);
  192. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetInGameVoiceSpeaking")]
  193. internal static extern void SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(IntPtr instancePtr, ulong steamIDUser, bool bSpeaking);
  194. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlay")]
  195. internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlay(IntPtr instancePtr, string pchDialog);
  196. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToUser")]
  197. internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayToUser(IntPtr instancePtr, string pchDialog, ulong steamID);
  198. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage")]
  199. internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(IntPtr instancePtr, string pchURL);
  200. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayToStore")]
  201. internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayToStore(IntPtr instancePtr, uint nAppID, char eFlag);
  202. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetPlayedWith")]
  203. internal static extern void SteamAPI_ISteamFriends_SetPlayedWith(IntPtr instancePtr, ulong steamIDUserPlayedWith);
  204. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog")]
  205. internal static extern void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(IntPtr instancePtr, ulong steamIDLobby);
  206. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetSmallFriendAvatar")]
  207. internal static extern int SteamAPI_ISteamFriends_GetSmallFriendAvatar(IntPtr instancePtr, ulong steamIDFriend);
  208. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetMediumFriendAvatar")]
  209. internal static extern int SteamAPI_ISteamFriends_GetMediumFriendAvatar(IntPtr instancePtr, ulong steamIDFriend);
  210. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetLargeFriendAvatar")]
  211. internal static extern int SteamAPI_ISteamFriends_GetLargeFriendAvatar(IntPtr instancePtr, ulong steamIDFriend);
  212. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_RequestUserInformation")]
  213. internal static extern bool SteamAPI_ISteamFriends_RequestUserInformation(IntPtr instancePtr, ulong steamIDUser, bool bRequireNameOnly);
  214. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_RequestClanOfficerList")]
  215. internal static extern ulong SteamAPI_ISteamFriends_RequestClanOfficerList(IntPtr instancePtr, ulong steamIDClan);
  216. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanOwner")]
  217. internal static extern ulong SteamAPI_ISteamFriends_GetClanOwner(IntPtr instancePtr, ulong steamIDClan);
  218. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerCount")]
  219. internal static extern int SteamAPI_ISteamFriends_GetClanOfficerCount(IntPtr instancePtr, ulong steamIDClan);
  220. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanOfficerByIndex")]
  221. internal static extern ulong SteamAPI_ISteamFriends_GetClanOfficerByIndex(IntPtr instancePtr, ulong steamIDClan, int iOfficer);
  222. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetUserRestrictions")]
  223. internal static extern uint SteamAPI_ISteamFriends_GetUserRestrictions(IntPtr instancePtr);
  224. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetRichPresence")]
  225. internal static extern bool SteamAPI_ISteamFriends_SetRichPresence(IntPtr instancePtr, string pchKey, string pchValue);
  226. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ClearRichPresence")]
  227. internal static extern void SteamAPI_ISteamFriends_ClearRichPresence(IntPtr instancePtr);
  228. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresence")]
  229. internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresence(IntPtr instancePtr, ulong steamIDFriend, string pchKey);
  230. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount")]
  231. internal static extern int SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(IntPtr instancePtr, ulong steamIDFriend);
  232. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex")]
  233. internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(IntPtr instancePtr, ulong steamIDFriend, int iKey);
  234. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_RequestFriendRichPresence")]
  235. internal static extern void SteamAPI_ISteamFriends_RequestFriendRichPresence(IntPtr instancePtr, ulong steamIDFriend);
  236. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_InviteUserToGame")]
  237. internal static extern bool SteamAPI_ISteamFriends_InviteUserToGame(IntPtr instancePtr, ulong steamIDFriend, string pchConnectString);
  238. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriendCount")]
  239. internal static extern int SteamAPI_ISteamFriends_GetCoplayFriendCount(IntPtr instancePtr);
  240. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetCoplayFriend")]
  241. internal static extern ulong SteamAPI_ISteamFriends_GetCoplayFriend(IntPtr instancePtr, int iCoplayFriend);
  242. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayTime")]
  243. internal static extern int SteamAPI_ISteamFriends_GetFriendCoplayTime(IntPtr instancePtr, ulong steamIDFriend);
  244. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendCoplayGame")]
  245. internal static extern uint SteamAPI_ISteamFriends_GetFriendCoplayGame(IntPtr instancePtr, ulong steamIDFriend);
  246. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_JoinClanChatRoom")]
  247. internal static extern ulong SteamAPI_ISteamFriends_JoinClanChatRoom(IntPtr instancePtr, ulong steamIDClan);
  248. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_LeaveClanChatRoom")]
  249. internal static extern bool SteamAPI_ISteamFriends_LeaveClanChatRoom(IntPtr instancePtr, ulong steamIDClan);
  250. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMemberCount")]
  251. internal static extern int SteamAPI_ISteamFriends_GetClanChatMemberCount(IntPtr instancePtr, ulong steamIDClan);
  252. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetChatMemberByIndex")]
  253. internal static extern ulong SteamAPI_ISteamFriends_GetChatMemberByIndex(IntPtr instancePtr, ulong steamIDClan, int iUser);
  254. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SendClanChatMessage")]
  255. internal static extern bool SteamAPI_ISteamFriends_SendClanChatMessage(IntPtr instancePtr, ulong steamIDClanChat, string pchText);
  256. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetClanChatMessage")]
  257. internal static extern int SteamAPI_ISteamFriends_GetClanChatMessage(IntPtr instancePtr, ulong steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref uint peChatEntryType, ref CSteamID psteamidChatter);
  258. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsClanChatAdmin")]
  259. internal static extern bool SteamAPI_ISteamFriends_IsClanChatAdmin(IntPtr instancePtr, ulong steamIDClanChat, ulong steamIDUser);
  260. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam")]
  261. internal static extern bool SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(IntPtr instancePtr, ulong steamIDClanChat);
  262. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_OpenClanChatWindowInSteam")]
  263. internal static extern bool SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(IntPtr instancePtr, ulong steamIDClanChat);
  264. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_CloseClanChatWindowInSteam")]
  265. internal static extern bool SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(IntPtr instancePtr, ulong steamIDClanChat);
  266. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_SetListenForFriendsMessages")]
  267. internal static extern bool SteamAPI_ISteamFriends_SetListenForFriendsMessages(IntPtr instancePtr, bool bInterceptEnabled);
  268. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_ReplyToFriendMessage")]
  269. internal static extern bool SteamAPI_ISteamFriends_ReplyToFriendMessage(IntPtr instancePtr, ulong steamIDFriend, string pchMsgToSend);
  270. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFriendMessage")]
  271. internal static extern int SteamAPI_ISteamFriends_GetFriendMessage(IntPtr instancePtr, ulong steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref uint peChatEntryType);
  272. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_GetFollowerCount")]
  273. internal static extern ulong SteamAPI_ISteamFriends_GetFollowerCount(IntPtr instancePtr, ulong steamID);
  274. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_IsFollowing")]
  275. internal static extern ulong SteamAPI_ISteamFriends_IsFollowing(IntPtr instancePtr, ulong steamID);
  276. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamFriends_EnumerateFollowingList")]
  277. internal static extern ulong SteamAPI_ISteamFriends_EnumerateFollowingList(IntPtr instancePtr, uint unStartIndex);
  278. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceAppActive")]
  279. internal static extern uint SteamAPI_ISteamUtils_GetSecondsSinceAppActive(IntPtr instancePtr);
  280. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSecondsSinceComputerActive")]
  281. internal static extern uint SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(IntPtr instancePtr);
  282. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetConnectedUniverse")]
  283. internal static extern int SteamAPI_ISteamUtils_GetConnectedUniverse(IntPtr instancePtr);
  284. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetServerRealTime")]
  285. internal static extern uint SteamAPI_ISteamUtils_GetServerRealTime(IntPtr instancePtr);
  286. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetIPCountry")]
  287. internal static extern IntPtr SteamAPI_ISteamUtils_GetIPCountry(IntPtr instancePtr);
  288. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetImageSize")]
  289. internal static extern bool SteamAPI_ISteamUtils_GetImageSize(IntPtr instancePtr, int iImage, ref uint pnWidth, ref uint pnHeight);
  290. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetImageRGBA")]
  291. internal static extern bool SteamAPI_ISteamUtils_GetImageRGBA(IntPtr instancePtr, int iImage, IntPtr pubDest, int nDestBufferSize);
  292. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetCSERIPPort")]
  293. internal static extern bool SteamAPI_ISteamUtils_GetCSERIPPort(IntPtr instancePtr, ref uint unIP, ref char usPort);
  294. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower")]
  295. internal static extern byte SteamAPI_ISteamUtils_GetCurrentBatteryPower(IntPtr instancePtr);
  296. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetAppID")]
  297. internal static extern uint SteamAPI_ISteamUtils_GetAppID(IntPtr instancePtr);
  298. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationPosition")]
  299. internal static extern void SteamAPI_ISteamUtils_SetOverlayNotificationPosition(IntPtr instancePtr, uint eNotificationPosition);
  300. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_IsAPICallCompleted")]
  301. internal static extern bool SteamAPI_ISteamUtils_IsAPICallCompleted(IntPtr instancePtr, ulong hSteamAPICall, ref bool pbFailed);
  302. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallFailureReason")]
  303. internal static extern int SteamAPI_ISteamUtils_GetAPICallFailureReason(IntPtr instancePtr, ulong hSteamAPICall);
  304. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetAPICallResult")]
  305. internal static extern bool SteamAPI_ISteamUtils_GetAPICallResult(IntPtr instancePtr, ulong hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, ref bool pbFailed);
  306. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_RunFrame")]
  307. internal static extern void SteamAPI_ISteamUtils_RunFrame(IntPtr instancePtr);
  308. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetIPCCallCount")]
  309. internal static extern uint SteamAPI_ISteamUtils_GetIPCCallCount(IntPtr instancePtr);
  310. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_SetWarningMessageHook")]
  311. internal static extern void SteamAPI_ISteamUtils_SetWarningMessageHook(IntPtr instancePtr, IntPtr pFunction);
  312. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_IsOverlayEnabled")]
  313. internal static extern bool SteamAPI_ISteamUtils_IsOverlayEnabled(IntPtr instancePtr);
  314. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_BOverlayNeedsPresent")]
  315. internal static extern bool SteamAPI_ISteamUtils_BOverlayNeedsPresent(IntPtr instancePtr);
  316. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature")]
  317. internal static extern ulong SteamAPI_ISteamUtils_CheckFileSignature(IntPtr instancePtr, string szFileName);
  318. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput")]
  319. internal static extern bool SteamAPI_ISteamUtils_ShowGamepadTextInput(IntPtr instancePtr, int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText);
  320. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength")]
  321. internal static extern uint SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(IntPtr instancePtr);
  322. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput")]
  323. internal static extern bool SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(IntPtr instancePtr, string pchText, uint cchText);
  324. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage")]
  325. internal static extern IntPtr SteamAPI_ISteamUtils_GetSteamUILanguage(IntPtr instancePtr);
  326. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR")]
  327. internal static extern bool SteamAPI_ISteamUtils_IsSteamRunningInVR(IntPtr instancePtr);
  328. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset")]
  329. internal static extern void SteamAPI_ISteamUtils_SetOverlayNotificationInset(IntPtr instancePtr, int nHorizontalInset, int nVerticalInset);
  330. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGameCount")]
  331. internal static extern int SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(IntPtr instancePtr);
  332. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetFavoriteGame")]
  333. internal static extern bool SteamAPI_ISteamMatchmaking_GetFavoriteGame(IntPtr instancePtr, int iGame, ref uint pnAppID, ref uint pnIP, ref char pnConnPort, ref char pnQueryPort, ref uint punFlags, ref uint pRTime32LastPlayedOnServer);
  334. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddFavoriteGame")]
  335. internal static extern int SteamAPI_ISteamMatchmaking_AddFavoriteGame(IntPtr instancePtr, uint nAppID, uint nIP, char nConnPort, char nQueryPort, uint unFlags, uint rTime32LastPlayedOnServer);
  336. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_RemoveFavoriteGame")]
  337. internal static extern bool SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(IntPtr instancePtr, uint nAppID, uint nIP, char nConnPort, char nQueryPort, uint unFlags);
  338. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyList")]
  339. internal static extern ulong SteamAPI_ISteamMatchmaking_RequestLobbyList(IntPtr instancePtr);
  340. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter")]
  341. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(IntPtr instancePtr, string pchKeyToMatch, string pchValueToMatch, uint eComparisonType);
  342. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter")]
  343. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(IntPtr instancePtr, string pchKeyToMatch, int nValueToMatch, uint eComparisonType);
  344. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter")]
  345. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(IntPtr instancePtr, string pchKeyToMatch, int nValueToBeCloseTo);
  346. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable")]
  347. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(IntPtr instancePtr, int nSlotsAvailable);
  348. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter")]
  349. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(IntPtr instancePtr, uint eLobbyDistanceFilter);
  350. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter")]
  351. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(IntPtr instancePtr, int cMaxResults);
  352. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter")]
  353. internal static extern void SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(IntPtr instancePtr, ulong steamIDLobby);
  354. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyByIndex")]
  355. internal static extern ulong SteamAPI_ISteamMatchmaking_GetLobbyByIndex(IntPtr instancePtr, int iLobby);
  356. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_CreateLobby")]
  357. internal static extern ulong SteamAPI_ISteamMatchmaking_CreateLobby(IntPtr instancePtr, uint eLobbyType, int cMaxMembers);
  358. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_JoinLobby")]
  359. internal static extern ulong SteamAPI_ISteamMatchmaking_JoinLobby(IntPtr instancePtr, ulong steamIDLobby);
  360. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_LeaveLobby")]
  361. internal static extern void SteamAPI_ISteamMatchmaking_LeaveLobby(IntPtr instancePtr, ulong steamIDLobby);
  362. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_InviteUserToLobby")]
  363. internal static extern bool SteamAPI_ISteamMatchmaking_InviteUserToLobby(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDInvitee);
  364. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetNumLobbyMembers")]
  365. internal static extern int SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(IntPtr instancePtr, ulong steamIDLobby);
  366. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex")]
  367. internal static extern ulong SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(IntPtr instancePtr, ulong steamIDLobby, int iMember);
  368. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData")]
  369. internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyData(IntPtr instancePtr, ulong steamIDLobby, string pchKey);
  370. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData")]
  371. internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyData(IntPtr instancePtr, ulong steamIDLobby, string pchKey, string pchValue);
  372. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount")]
  373. internal static extern int SteamAPI_ISteamMatchmaking_GetLobbyDataCount(IntPtr instancePtr, ulong steamIDLobby);
  374. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex")]
  375. internal static extern bool SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(IntPtr instancePtr, ulong steamIDLobby, int iLobbyData, string pchKey, int cchKeyBufferSize, string pchValue, int cchValueBufferSize);
  376. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData")]
  377. internal static extern bool SteamAPI_ISteamMatchmaking_DeleteLobbyData(IntPtr instancePtr, ulong steamIDLobby, string pchKey);
  378. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData")]
  379. internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyMemberData(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDUser, string pchKey);
  380. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData")]
  381. internal static extern void SteamAPI_ISteamMatchmaking_SetLobbyMemberData(IntPtr instancePtr, ulong steamIDLobby, string pchKey, string pchValue);
  382. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SendLobbyChatMsg")]
  383. internal static extern bool SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(IntPtr instancePtr, ulong steamIDLobby, IntPtr pvMsgBody, int cubMsgBody);
  384. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyChatEntry")]
  385. internal static extern int SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(IntPtr instancePtr, ulong steamIDLobby, int iChatID, ref CSteamID pSteamIDUser, IntPtr pvData, int cubData, ref uint peChatEntryType);
  386. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_RequestLobbyData")]
  387. internal static extern bool SteamAPI_ISteamMatchmaking_RequestLobbyData(IntPtr instancePtr, ulong steamIDLobby);
  388. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyGameServer")]
  389. internal static extern void SteamAPI_ISteamMatchmaking_SetLobbyGameServer(IntPtr instancePtr, ulong steamIDLobby, uint unGameServerIP, char unGameServerPort, ulong steamIDGameServer);
  390. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyGameServer")]
  391. internal static extern bool SteamAPI_ISteamMatchmaking_GetLobbyGameServer(IntPtr instancePtr, ulong steamIDLobby, ref uint punGameServerIP, ref char punGameServerPort, ref CSteamID psteamIDGameServer);
  392. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit")]
  393. internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(IntPtr instancePtr, ulong steamIDLobby, int cMaxMembers);
  394. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit")]
  395. internal static extern int SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(IntPtr instancePtr, ulong steamIDLobby);
  396. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyType")]
  397. internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyType(IntPtr instancePtr, ulong steamIDLobby, uint eLobbyType);
  398. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyJoinable")]
  399. internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyJoinable(IntPtr instancePtr, ulong steamIDLobby, bool bLobbyJoinable);
  400. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyOwner")]
  401. internal static extern ulong SteamAPI_ISteamMatchmaking_GetLobbyOwner(IntPtr instancePtr, ulong steamIDLobby);
  402. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyOwner")]
  403. internal static extern bool SteamAPI_ISteamMatchmaking_SetLobbyOwner(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDNewOwner);
  404. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLinkedLobby")]
  405. internal static extern bool SteamAPI_ISteamMatchmaking_SetLinkedLobby(IntPtr instancePtr, ulong steamIDLobby, ulong steamIDLobbyDependent);
  406. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded")]
  407. internal static extern void SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded(IntPtr instancePtr, uint hRequest, int iServer);
  408. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond")]
  409. internal static extern void SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond(IntPtr instancePtr, uint hRequest, int iServer);
  410. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete")]
  411. internal static extern void SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete(IntPtr instancePtr, uint hRequest, uint response);
  412. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPingResponse_ServerResponded")]
  413. internal static extern void SteamAPI_ISteamMatchmakingPingResponse_ServerResponded(IntPtr instancePtr, IntPtr server);
  414. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond")]
  415. internal static extern void SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond(IntPtr instancePtr);
  416. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList")]
  417. internal static extern void SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList(IntPtr instancePtr, string pchName, int nScore, float flTimePlayed);
  418. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond")]
  419. internal static extern void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond(IntPtr instancePtr);
  420. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete")]
  421. internal static extern void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete(IntPtr instancePtr);
  422. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded")]
  423. internal static extern void SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded(IntPtr instancePtr, string pchRule, string pchValue);
  424. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond")]
  425. internal static extern void SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond(IntPtr instancePtr);
  426. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete")]
  427. internal static extern void SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete(IntPtr instancePtr);
  428. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestInternetServerList")]
  429. internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse);
  430. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestLANServerList")]
  431. internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestLANServerList(IntPtr instancePtr, uint iApp, IntPtr pRequestServersResponse);
  432. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList")]
  433. internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse);
  434. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList")]
  435. internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse);
  436. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList")]
  437. internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse);
  438. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList")]
  439. internal static extern uint SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(IntPtr instancePtr, uint iApp, [In, Out] MatchMakingKeyValuePair_t [] ppchFilters, uint nFilters, IntPtr pRequestServersResponse);
  440. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_ReleaseRequest")]
  441. internal static extern void SteamAPI_ISteamMatchmakingServers_ReleaseRequest(IntPtr instancePtr, uint hServerListRequest);
  442. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerDetails")]
  443. internal static extern IntPtr SteamAPI_ISteamMatchmakingServers_GetServerDetails(IntPtr instancePtr, uint hRequest, int iServer);
  444. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelQuery")]
  445. internal static extern void SteamAPI_ISteamMatchmakingServers_CancelQuery(IntPtr instancePtr, uint hRequest);
  446. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshQuery")]
  447. internal static extern void SteamAPI_ISteamMatchmakingServers_RefreshQuery(IntPtr instancePtr, uint hRequest);
  448. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_IsRefreshing")]
  449. internal static extern bool SteamAPI_ISteamMatchmakingServers_IsRefreshing(IntPtr instancePtr, uint hRequest);
  450. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_GetServerCount")]
  451. internal static extern int SteamAPI_ISteamMatchmakingServers_GetServerCount(IntPtr instancePtr, uint hRequest);
  452. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_RefreshServer")]
  453. internal static extern void SteamAPI_ISteamMatchmakingServers_RefreshServer(IntPtr instancePtr, uint hRequest, int iServer);
  454. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_PingServer")]
  455. internal static extern uint SteamAPI_ISteamMatchmakingServers_PingServer(IntPtr instancePtr, uint unIP, char usPort, IntPtr pRequestServersResponse);
  456. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_PlayerDetails")]
  457. internal static extern uint SteamAPI_ISteamMatchmakingServers_PlayerDetails(IntPtr instancePtr, uint unIP, char usPort, IntPtr pRequestServersResponse);
  458. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_ServerRules")]
  459. internal static extern uint SteamAPI_ISteamMatchmakingServers_ServerRules(IntPtr instancePtr, uint unIP, char usPort, IntPtr pRequestServersResponse);
  460. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMatchmakingServers_CancelServerQuery")]
  461. internal static extern void SteamAPI_ISteamMatchmakingServers_CancelServerQuery(IntPtr instancePtr, uint hServerQuery);
  462. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWrite")]
  463. internal static extern bool SteamAPI_ISteamRemoteStorage_FileWrite(IntPtr instancePtr, string pchFile, IntPtr pvData, int cubData);
  464. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileRead")]
  465. internal static extern int SteamAPI_ISteamRemoteStorage_FileRead(IntPtr instancePtr, string pchFile, IntPtr pvData, int cubDataToRead);
  466. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteAsync")]
  467. internal static extern ulong SteamAPI_ISteamRemoteStorage_FileWriteAsync(IntPtr instancePtr, string pchFile, IntPtr pvData, uint cubData);
  468. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsync")]
  469. internal static extern ulong SteamAPI_ISteamRemoteStorage_FileReadAsync(IntPtr instancePtr, string pchFile, uint nOffset, uint cubToRead);
  470. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete")]
  471. internal static extern bool SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(IntPtr instancePtr, ulong hReadCall, IntPtr pvBuffer, uint cubToRead);
  472. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileForget")]
  473. internal static extern bool SteamAPI_ISteamRemoteStorage_FileForget(IntPtr instancePtr, string pchFile);
  474. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileDelete")]
  475. internal static extern bool SteamAPI_ISteamRemoteStorage_FileDelete(IntPtr instancePtr, string pchFile);
  476. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileShare")]
  477. internal static extern ulong SteamAPI_ISteamRemoteStorage_FileShare(IntPtr instancePtr, string pchFile);
  478. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetSyncPlatforms")]
  479. internal static extern bool SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(IntPtr instancePtr, string pchFile, uint eRemoteStoragePlatform);
  480. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen")]
  481. internal static extern ulong SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(IntPtr instancePtr, string pchFile);
  482. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk")]
  483. internal static extern bool SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(IntPtr instancePtr, ulong writeHandle, IntPtr pvData, int cubData);
  484. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamClose")]
  485. internal static extern bool SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(IntPtr instancePtr, ulong writeHandle);
  486. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel")]
  487. internal static extern bool SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(IntPtr instancePtr, ulong writeHandle);
  488. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FileExists")]
  489. internal static extern bool SteamAPI_ISteamRemoteStorage_FileExists(IntPtr instancePtr, string pchFile);
  490. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_FilePersisted")]
  491. internal static extern bool SteamAPI_ISteamRemoteStorage_FilePersisted(IntPtr instancePtr, string pchFile);
  492. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileSize")]
  493. internal static extern int SteamAPI_ISteamRemoteStorage_GetFileSize(IntPtr instancePtr, string pchFile);
  494. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileTimestamp")]
  495. internal static extern long SteamAPI_ISteamRemoteStorage_GetFileTimestamp(IntPtr instancePtr, string pchFile);
  496. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetSyncPlatforms")]
  497. internal static extern uint SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(IntPtr instancePtr, string pchFile);
  498. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileCount")]
  499. internal static extern int SteamAPI_ISteamRemoteStorage_GetFileCount(IntPtr instancePtr);
  500. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetFileNameAndSize")]
  501. internal static extern IntPtr SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(IntPtr instancePtr, int iFile, ref int pnFileSizeInBytes);
  502. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetQuota")]
  503. internal static extern bool SteamAPI_ISteamRemoteStorage_GetQuota(IntPtr instancePtr, ref int pnTotalBytes, ref int puAvailableBytes);
  504. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount")]
  505. internal static extern bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(IntPtr instancePtr);
  506. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp")]
  507. internal static extern bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(IntPtr instancePtr);
  508. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp")]
  509. internal static extern void SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(IntPtr instancePtr, bool bEnabled);
  510. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload")]
  511. internal static extern ulong SteamAPI_ISteamRemoteStorage_UGCDownload(IntPtr instancePtr, ulong hContent, uint unPriority);
  512. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress")]
  513. internal static extern bool SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(IntPtr instancePtr, ulong hContent, ref int pnBytesDownloaded, ref int pnBytesExpected);
  514. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails")]
  515. internal static extern bool SteamAPI_ISteamRemoteStorage_GetUGCDetails(IntPtr instancePtr, ulong hContent, ref uint pnAppID, string ppchName, ref int pnFileSizeInBytes, ref CSteamID pSteamIDOwner);
  516. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead")]
  517. internal static extern int SteamAPI_ISteamRemoteStorage_UGCRead(IntPtr instancePtr, ulong hContent, IntPtr pvData, int cubDataToRead, uint cOffset, uint eAction);
  518. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount")]
  519. internal static extern int SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(IntPtr instancePtr);
  520. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle")]
  521. internal static extern ulong SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(IntPtr instancePtr, int iCachedContent);
  522. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishWorkshopFile")]
  523. internal static extern ulong SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(IntPtr instancePtr, string pchFile, string pchPreviewFile, uint nConsumerAppId, string pchTitle, string pchDescription, uint eVisibility, ref SteamParamStringArray_t pTags, uint eWorkshopFileType);
  524. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest")]
  525. internal static extern ulong SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(IntPtr instancePtr, ulong unPublishedFileId);
  526. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile")]
  527. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(IntPtr instancePtr, ulong updateHandle, string pchFile);
  528. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile")]
  529. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(IntPtr instancePtr, ulong updateHandle, string pchPreviewFile);
  530. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle")]
  531. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(IntPtr instancePtr, ulong updateHandle, string pchTitle);
  532. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription")]
  533. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(IntPtr instancePtr, ulong updateHandle, string pchDescription);
  534. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility")]
  535. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(IntPtr instancePtr, ulong updateHandle, uint eVisibility);
  536. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags")]
  537. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(IntPtr instancePtr, ulong updateHandle, ref SteamParamStringArray_t pTags);
  538. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate")]
  539. internal static extern ulong SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(IntPtr instancePtr, ulong updateHandle);
  540. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails")]
  541. internal static extern ulong SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(IntPtr instancePtr, ulong unPublishedFileId, uint unMaxSecondsOld);
  542. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_DeletePublishedFile")]
  543. internal static extern ulong SteamAPI_ISteamRemoteStorage_DeletePublishedFile(IntPtr instancePtr, ulong unPublishedFileId);
  544. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles")]
  545. internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(IntPtr instancePtr, uint unStartIndex);
  546. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SubscribePublishedFile")]
  547. internal static extern ulong SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(IntPtr instancePtr, ulong unPublishedFileId);
  548. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles")]
  549. internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(IntPtr instancePtr, uint unStartIndex);
  550. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile")]
  551. internal static extern ulong SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(IntPtr instancePtr, ulong unPublishedFileId);
  552. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription")]
  553. internal static extern bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(IntPtr instancePtr, ulong updateHandle, string pchChangeDescription);
  554. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails")]
  555. internal static extern ulong SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(IntPtr instancePtr, ulong unPublishedFileId);
  556. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote")]
  557. internal static extern ulong SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(IntPtr instancePtr, ulong unPublishedFileId, bool bVoteUp);
  558. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails")]
  559. internal static extern ulong SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(IntPtr instancePtr, ulong unPublishedFileId);
  560. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles")]
  561. internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(IntPtr instancePtr, ulong steamId, uint unStartIndex, ref SteamParamStringArray_t pRequiredTags, ref SteamParamStringArray_t pExcludedTags);
  562. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_PublishVideo")]
  563. internal static extern ulong SteamAPI_ISteamRemoteStorage_PublishVideo(IntPtr instancePtr, uint eVideoProvider, string pchVideoAccount, string pchVideoIdentifier, string pchPreviewFile, uint nConsumerAppId, string pchTitle, string pchDescription, uint eVisibility, ref SteamParamStringArray_t pTags);
  564. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction")]
  565. internal static extern ulong SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(IntPtr instancePtr, ulong unPublishedFileId, uint eAction);
  566. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction")]
  567. internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(IntPtr instancePtr, uint eAction, uint unStartIndex);
  568. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles")]
  569. internal static extern ulong SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(IntPtr instancePtr, uint eEnumerationType, uint unStartIndex, uint unCount, uint unDays, ref SteamParamStringArray_t pTags, ref SteamParamStringArray_t pUserTags);
  570. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation")]
  571. internal static extern ulong SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(IntPtr instancePtr, ulong hContent, string pchLocation, uint unPriority);
  572. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestCurrentStats")]
  573. internal static extern bool SteamAPI_ISteamUserStats_RequestCurrentStats(IntPtr instancePtr);
  574. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetStat")]
  575. internal static extern bool SteamAPI_ISteamUserStats_GetStat(IntPtr instancePtr, string pchName, ref int pData);
  576. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetStat0")]
  577. internal static extern bool SteamAPI_ISteamUserStats_GetStat0(IntPtr instancePtr, string pchName, ref float pData);
  578. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_SetStat")]
  579. internal static extern bool SteamAPI_ISteamUserStats_SetStat(IntPtr instancePtr, string pchName, int nData);
  580. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_SetStat0")]
  581. internal static extern bool SteamAPI_ISteamUserStats_SetStat0(IntPtr instancePtr, string pchName, float fData);
  582. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_UpdateAvgRateStat")]
  583. internal static extern bool SteamAPI_ISteamUserStats_UpdateAvgRateStat(IntPtr instancePtr, string pchName, float flCountThisSession, double dSessionLength);
  584. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievement")]
  585. internal static extern bool SteamAPI_ISteamUserStats_GetAchievement(IntPtr instancePtr, string pchName, ref bool pbAchieved);
  586. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_SetAchievement")]
  587. internal static extern bool SteamAPI_ISteamUserStats_SetAchievement(IntPtr instancePtr, string pchName);
  588. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_ClearAchievement")]
  589. internal static extern bool SteamAPI_ISteamUserStats_ClearAchievement(IntPtr instancePtr, string pchName);
  590. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime")]
  591. internal static extern bool SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(IntPtr instancePtr, string pchName, ref bool pbAchieved, ref uint punUnlockTime);
  592. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_StoreStats")]
  593. internal static extern bool SteamAPI_ISteamUserStats_StoreStats(IntPtr instancePtr);
  594. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementIcon")]
  595. internal static extern int SteamAPI_ISteamUserStats_GetAchievementIcon(IntPtr instancePtr, string pchName);
  596. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute")]
  597. internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(IntPtr instancePtr, string pchName, string pchKey);
  598. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_IndicateAchievementProgress")]
  599. internal static extern bool SteamAPI_ISteamUserStats_IndicateAchievementProgress(IntPtr instancePtr, string pchName, uint nCurProgress, uint nMaxProgress);
  600. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetNumAchievements")]
  601. internal static extern uint SteamAPI_ISteamUserStats_GetNumAchievements(IntPtr instancePtr);
  602. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementName")]
  603. internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementName(IntPtr instancePtr, uint iAchievement);
  604. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestUserStats")]
  605. internal static extern ulong SteamAPI_ISteamUserStats_RequestUserStats(IntPtr instancePtr, ulong steamIDUser);
  606. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat")]
  607. internal static extern bool SteamAPI_ISteamUserStats_GetUserStat(IntPtr instancePtr, ulong steamIDUser, string pchName, ref int pData);
  608. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat0")]
  609. internal static extern bool SteamAPI_ISteamUserStats_GetUserStat0(IntPtr instancePtr, ulong steamIDUser, string pchName, ref float pData);
  610. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievement")]
  611. internal static extern bool SteamAPI_ISteamUserStats_GetUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName, ref bool pbAchieved);
  612. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime")]
  613. internal static extern bool SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(IntPtr instancePtr, ulong steamIDUser, string pchName, ref bool pbAchieved, ref uint punUnlockTime);
  614. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_ResetAllStats")]
  615. internal static extern bool SteamAPI_ISteamUserStats_ResetAllStats(IntPtr instancePtr, bool bAchievementsToo);
  616. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_FindOrCreateLeaderboard")]
  617. internal static extern ulong SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(IntPtr instancePtr, string pchLeaderboardName, uint eLeaderboardSortMethod, uint eLeaderboardDisplayType);
  618. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_FindLeaderboard")]
  619. internal static extern ulong SteamAPI_ISteamUserStats_FindLeaderboard(IntPtr instancePtr, string pchLeaderboardName);
  620. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardName")]
  621. internal static extern IntPtr SteamAPI_ISteamUserStats_GetLeaderboardName(IntPtr instancePtr, ulong hSteamLeaderboard);
  622. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardEntryCount")]
  623. internal static extern int SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(IntPtr instancePtr, ulong hSteamLeaderboard);
  624. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardSortMethod")]
  625. internal static extern uint SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(IntPtr instancePtr, ulong hSteamLeaderboard);
  626. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetLeaderboardDisplayType")]
  627. internal static extern uint SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(IntPtr instancePtr, ulong hSteamLeaderboard);
  628. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntries")]
  629. internal static extern ulong SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(IntPtr instancePtr, ulong hSteamLeaderboard, uint eLeaderboardDataRequest, int nRangeStart, int nRangeEnd);
  630. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers")]
  631. internal static extern ulong SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(IntPtr instancePtr, ulong hSteamLeaderboard, [In, Out] CSteamID[] prgUsers, int cUsers);
  632. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry")]
  633. internal static extern bool SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(IntPtr instancePtr, ulong hSteamLeaderboardEntries, int index, ref LeaderboardEntry_t pLeaderboardEntry, ref int pDetails, int cDetailsMax);
  634. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_UploadLeaderboardScore")]
  635. internal static extern ulong SteamAPI_ISteamUserStats_UploadLeaderboardScore(IntPtr instancePtr, ulong hSteamLeaderboard, uint eLeaderboardUploadScoreMethod, int nScore, ref int pScoreDetails, int cScoreDetailsCount);
  636. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC")]
  637. internal static extern ulong SteamAPI_ISteamUserStats_AttachLeaderboardUGC(IntPtr instancePtr, ulong hSteamLeaderboard, ulong hUGC);
  638. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers")]
  639. internal static extern ulong SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(IntPtr instancePtr);
  640. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages")]
  641. internal static extern ulong SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(IntPtr instancePtr);
  642. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo")]
  643. internal static extern int SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(IntPtr instancePtr, string pchName, uint unNameBufLen, ref float pflPercent, ref bool pbAchieved);
  644. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo")]
  645. internal static extern int SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(IntPtr instancePtr, int iIteratorPrevious, string pchName, uint unNameBufLen, ref float pflPercent, ref bool pbAchieved);
  646. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent")]
  647. internal static extern bool SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(IntPtr instancePtr, string pchName, ref float pflPercent);
  648. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats")]
  649. internal static extern ulong SteamAPI_ISteamUserStats_RequestGlobalStats(IntPtr instancePtr, int nHistoryDays);
  650. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat")]
  651. internal static extern bool SteamAPI_ISteamUserStats_GetGlobalStat(IntPtr instancePtr, string pchStatName, ref long pData);
  652. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat0")]
  653. internal static extern bool SteamAPI_ISteamUserStats_GetGlobalStat0(IntPtr instancePtr, string pchStatName, ref double pData);
  654. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistory")]
  655. internal static extern int SteamAPI_ISteamUserStats_GetGlobalStatHistory(IntPtr instancePtr, string pchStatName, [In, Out] long[] pData, uint cubData);
  656. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistory0")]
  657. internal static extern int SteamAPI_ISteamUserStats_GetGlobalStatHistory0(IntPtr instancePtr, string pchStatName, [In, Out] double[] pData, uint cubData);
  658. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribed")]
  659. internal static extern bool SteamAPI_ISteamApps_BIsSubscribed(IntPtr instancePtr);
  660. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsLowViolence")]
  661. internal static extern bool SteamAPI_ISteamApps_BIsLowViolence(IntPtr instancePtr);
  662. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsCybercafe")]
  663. internal static extern bool SteamAPI_ISteamApps_BIsCybercafe(IntPtr instancePtr);
  664. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsVACBanned")]
  665. internal static extern bool SteamAPI_ISteamApps_BIsVACBanned(IntPtr instancePtr);
  666. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetCurrentGameLanguage")]
  667. internal static extern IntPtr SteamAPI_ISteamApps_GetCurrentGameLanguage(IntPtr instancePtr);
  668. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAvailableGameLanguages")]
  669. internal static extern IntPtr SteamAPI_ISteamApps_GetAvailableGameLanguages(IntPtr instancePtr);
  670. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedApp")]
  671. internal static extern bool SteamAPI_ISteamApps_BIsSubscribedApp(IntPtr instancePtr, uint appID);
  672. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsDlcInstalled")]
  673. internal static extern bool SteamAPI_ISteamApps_BIsDlcInstalled(IntPtr instancePtr, uint appID);
  674. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime")]
  675. internal static extern uint SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(IntPtr instancePtr, uint nAppID);
  676. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend")]
  677. internal static extern bool SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(IntPtr instancePtr);
  678. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount")]
  679. internal static extern int SteamAPI_ISteamApps_GetDLCCount(IntPtr instancePtr);
  680. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex")]
  681. internal static extern bool SteamAPI_ISteamApps_BGetDLCDataByIndex(IntPtr instancePtr, int iDLC, ref uint pAppID, ref bool pbAvailable, string pchName, int cchNameBufferSize);
  682. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_InstallDLC")]
  683. internal static extern void SteamAPI_ISteamApps_InstallDLC(IntPtr instancePtr, uint nAppID);
  684. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC")]
  685. internal static extern void SteamAPI_ISteamApps_UninstallDLC(IntPtr instancePtr, uint nAppID);
  686. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey")]
  687. internal static extern void SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(IntPtr instancePtr, uint nAppID);
  688. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName")]
  689. internal static extern bool SteamAPI_ISteamApps_GetCurrentBetaName(IntPtr instancePtr, string pchName, int cchNameBufferSize);
  690. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt")]
  691. internal static extern bool SteamAPI_ISteamApps_MarkContentCorrupt(IntPtr instancePtr, bool bMissingFilesOnly);
  692. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots")]
  693. internal static extern uint SteamAPI_ISteamApps_GetInstalledDepots(IntPtr instancePtr, uint appID, ref uint pvecDepots, uint cMaxDepots);
  694. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir")]
  695. internal static extern uint SteamAPI_ISteamApps_GetAppInstallDir(IntPtr instancePtr, uint appID, string pchFolder, uint cchFolderBufferSize);
  696. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled")]
  697. internal static extern bool SteamAPI_ISteamApps_BIsAppInstalled(IntPtr instancePtr, uint appID);
  698. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAppOwner")]
  699. internal static extern ulong SteamAPI_ISteamApps_GetAppOwner(IntPtr instancePtr);
  700. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam")]
  701. internal static extern IntPtr SteamAPI_ISteamApps_GetLaunchQueryParam(IntPtr instancePtr, string pchKey);
  702. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetDlcDownloadProgress")]
  703. internal static extern bool SteamAPI_ISteamApps_GetDlcDownloadProgress(IntPtr instancePtr, uint nAppID, ref ulong punBytesDownloaded, ref ulong punBytesTotal);
  704. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamApps_GetAppBuildId")]
  705. internal static extern int SteamAPI_ISteamApps_GetAppBuildId(IntPtr instancePtr);
  706. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_SendP2PPacket")]
  707. internal static extern bool SteamAPI_ISteamNetworking_SendP2PPacket(IntPtr instancePtr, ulong steamIDRemote, IntPtr pubData, uint cubData, uint eP2PSendType, int nChannel);
  708. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_IsP2PPacketAvailable")]
  709. internal static extern bool SteamAPI_ISteamNetworking_IsP2PPacketAvailable(IntPtr instancePtr, ref uint pcubMsgSize, int nChannel);
  710. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_ReadP2PPacket")]
  711. internal static extern bool SteamAPI_ISteamNetworking_ReadP2PPacket(IntPtr instancePtr, IntPtr pubDest, uint cubDest, ref uint pcubMsgSize, ref CSteamID psteamIDRemote, int nChannel);
  712. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser")]
  713. internal static extern bool SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(IntPtr instancePtr, ulong steamIDRemote);
  714. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PSessionWithUser")]
  715. internal static extern bool SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(IntPtr instancePtr, ulong steamIDRemote);
  716. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CloseP2PChannelWithUser")]
  717. internal static extern bool SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(IntPtr instancePtr, ulong steamIDRemote, int nChannel);
  718. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetP2PSessionState")]
  719. internal static extern bool SteamAPI_ISteamNetworking_GetP2PSessionState(IntPtr instancePtr, ulong steamIDRemote, ref P2PSessionState_t pConnectionState);
  720. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_AllowP2PPacketRelay")]
  721. internal static extern bool SteamAPI_ISteamNetworking_AllowP2PPacketRelay(IntPtr instancePtr, bool bAllow);
  722. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CreateListenSocket")]
  723. internal static extern uint SteamAPI_ISteamNetworking_CreateListenSocket(IntPtr instancePtr, int nVirtualP2PPort, uint nIP, char nPort, bool bAllowUseOfPacketRelay);
  724. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CreateP2PConnectionSocket")]
  725. internal static extern uint SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(IntPtr instancePtr, ulong steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay);
  726. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_CreateConnectionSocket")]
  727. internal static extern uint SteamAPI_ISteamNetworking_CreateConnectionSocket(IntPtr instancePtr, uint nIP, char nPort, int nTimeoutSec);
  728. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_DestroySocket")]
  729. internal static extern bool SteamAPI_ISteamNetworking_DestroySocket(IntPtr instancePtr, uint hSocket, bool bNotifyRemoteEnd);
  730. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_DestroyListenSocket")]
  731. internal static extern bool SteamAPI_ISteamNetworking_DestroyListenSocket(IntPtr instancePtr, uint hSocket, bool bNotifyRemoteEnd);
  732. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_SendDataOnSocket")]
  733. internal static extern bool SteamAPI_ISteamNetworking_SendDataOnSocket(IntPtr instancePtr, uint hSocket, IntPtr pubData, uint cubData, bool bReliable);
  734. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailableOnSocket")]
  735. internal static extern bool SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(IntPtr instancePtr, uint hSocket, ref uint pcubMsgSize);
  736. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_RetrieveDataFromSocket")]
  737. internal static extern bool SteamAPI_ISteamNetworking_RetrieveDataFromSocket(IntPtr instancePtr, uint hSocket, IntPtr pubDest, uint cubDest, ref uint pcubMsgSize);
  738. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_IsDataAvailable")]
  739. internal static extern bool SteamAPI_ISteamNetworking_IsDataAvailable(IntPtr instancePtr, uint hListenSocket, ref uint pcubMsgSize, ref uint phSocket);
  740. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_RetrieveData")]
  741. internal static extern bool SteamAPI_ISteamNetworking_RetrieveData(IntPtr instancePtr, uint hListenSocket, IntPtr pubDest, uint cubDest, ref uint pcubMsgSize, ref uint phSocket);
  742. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetSocketInfo")]
  743. internal static extern bool SteamAPI_ISteamNetworking_GetSocketInfo(IntPtr instancePtr, uint hSocket, ref CSteamID pSteamIDRemote, ref int peSocketStatus, ref uint punIPRemote, ref char punPortRemote);
  744. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetListenSocketInfo")]
  745. internal static extern bool SteamAPI_ISteamNetworking_GetListenSocketInfo(IntPtr instancePtr, uint hListenSocket, ref uint pnIP, ref char pnPort);
  746. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetSocketConnectionType")]
  747. internal static extern uint SteamAPI_ISteamNetworking_GetSocketConnectionType(IntPtr instancePtr, uint hSocket);
  748. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamNetworking_GetMaxPacketSize")]
  749. internal static extern int SteamAPI_ISteamNetworking_GetMaxPacketSize(IntPtr instancePtr, uint hSocket);
  750. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_WriteScreenshot")]
  751. internal static extern uint SteamAPI_ISteamScreenshots_WriteScreenshot(IntPtr instancePtr, IntPtr pubRGB, uint cubRGB, int nWidth, int nHeight);
  752. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_AddScreenshotToLibrary")]
  753. internal static extern uint SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(IntPtr instancePtr, string pchFilename, string pchThumbnailFilename, int nWidth, int nHeight);
  754. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_TriggerScreenshot")]
  755. internal static extern void SteamAPI_ISteamScreenshots_TriggerScreenshot(IntPtr instancePtr);
  756. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_HookScreenshots")]
  757. internal static extern void SteamAPI_ISteamScreenshots_HookScreenshots(IntPtr instancePtr, bool bHook);
  758. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_SetLocation")]
  759. internal static extern bool SteamAPI_ISteamScreenshots_SetLocation(IntPtr instancePtr, uint hScreenshot, string pchLocation);
  760. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_TagUser")]
  761. internal static extern bool SteamAPI_ISteamScreenshots_TagUser(IntPtr instancePtr, uint hScreenshot, ulong steamID);
  762. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamScreenshots_TagPublishedFile")]
  763. internal static extern bool SteamAPI_ISteamScreenshots_TagPublishedFile(IntPtr instancePtr, uint hScreenshot, ulong unPublishedFileID);
  764. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_BIsEnabled")]
  765. internal static extern bool SteamAPI_ISteamMusic_BIsEnabled(IntPtr instancePtr);
  766. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_BIsPlaying")]
  767. internal static extern bool SteamAPI_ISteamMusic_BIsPlaying(IntPtr instancePtr);
  768. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_GetPlaybackStatus")]
  769. internal static extern int SteamAPI_ISteamMusic_GetPlaybackStatus(IntPtr instancePtr);
  770. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_Play")]
  771. internal static extern void SteamAPI_ISteamMusic_Play(IntPtr instancePtr);
  772. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_Pause")]
  773. internal static extern void SteamAPI_ISteamMusic_Pause(IntPtr instancePtr);
  774. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_PlayPrevious")]
  775. internal static extern void SteamAPI_ISteamMusic_PlayPrevious(IntPtr instancePtr);
  776. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_PlayNext")]
  777. internal static extern void SteamAPI_ISteamMusic_PlayNext(IntPtr instancePtr);
  778. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_SetVolume")]
  779. internal static extern void SteamAPI_ISteamMusic_SetVolume(IntPtr instancePtr, float flVolume);
  780. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusic_GetVolume")]
  781. internal static extern float SteamAPI_ISteamMusic_GetVolume(IntPtr instancePtr);
  782. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote")]
  783. internal static extern bool SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(IntPtr instancePtr, string pchName);
  784. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote")]
  785. internal static extern bool SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(IntPtr instancePtr);
  786. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote")]
  787. internal static extern bool SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(IntPtr instancePtr);
  788. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_BActivationSuccess")]
  789. internal static extern bool SteamAPI_ISteamMusicRemote_BActivationSuccess(IntPtr instancePtr, bool bValue);
  790. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetDisplayName")]
  791. internal static extern bool SteamAPI_ISteamMusicRemote_SetDisplayName(IntPtr instancePtr, string pchDisplayName);
  792. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64")]
  793. internal static extern bool SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(IntPtr instancePtr, IntPtr pvBuffer, uint cbBufferLength);
  794. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayPrevious")]
  795. internal static extern bool SteamAPI_ISteamMusicRemote_EnablePlayPrevious(IntPtr instancePtr, bool bValue);
  796. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlayNext")]
  797. internal static extern bool SteamAPI_ISteamMusicRemote_EnablePlayNext(IntPtr instancePtr, bool bValue);
  798. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnableShuffled")]
  799. internal static extern bool SteamAPI_ISteamMusicRemote_EnableShuffled(IntPtr instancePtr, bool bValue);
  800. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnableLooped")]
  801. internal static extern bool SteamAPI_ISteamMusicRemote_EnableLooped(IntPtr instancePtr, bool bValue);
  802. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnableQueue")]
  803. internal static extern bool SteamAPI_ISteamMusicRemote_EnableQueue(IntPtr instancePtr, bool bValue);
  804. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_EnablePlaylists")]
  805. internal static extern bool SteamAPI_ISteamMusicRemote_EnablePlaylists(IntPtr instancePtr, bool bValue);
  806. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus")]
  807. internal static extern bool SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(IntPtr instancePtr, int nStatus);
  808. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateShuffled")]
  809. internal static extern bool SteamAPI_ISteamMusicRemote_UpdateShuffled(IntPtr instancePtr, bool bValue);
  810. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateLooped")]
  811. internal static extern bool SteamAPI_ISteamMusicRemote_UpdateLooped(IntPtr instancePtr, bool bValue);
  812. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateVolume")]
  813. internal static extern bool SteamAPI_ISteamMusicRemote_UpdateVolume(IntPtr instancePtr, float flValue);
  814. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryWillChange")]
  815. internal static extern bool SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(IntPtr instancePtr);
  816. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable")]
  817. internal static extern bool SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(IntPtr instancePtr, bool bAvailable);
  818. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText")]
  819. internal static extern bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(IntPtr instancePtr, string pchText);
  820. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds")]
  821. internal static extern bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(IntPtr instancePtr, int nValue);
  822. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt")]
  823. internal static extern bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(IntPtr instancePtr, IntPtr pvBuffer, uint cbBufferLength);
  824. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_CurrentEntryDidChange")]
  825. internal static extern bool SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(IntPtr instancePtr);
  826. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_QueueWillChange")]
  827. internal static extern bool SteamAPI_ISteamMusicRemote_QueueWillChange(IntPtr instancePtr);
  828. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_ResetQueueEntries")]
  829. internal static extern bool SteamAPI_ISteamMusicRemote_ResetQueueEntries(IntPtr instancePtr);
  830. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetQueueEntry")]
  831. internal static extern bool SteamAPI_ISteamMusicRemote_SetQueueEntry(IntPtr instancePtr, int nID, int nPosition, string pchEntryText);
  832. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry")]
  833. internal static extern bool SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(IntPtr instancePtr, int nID);
  834. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_QueueDidChange")]
  835. internal static extern bool SteamAPI_ISteamMusicRemote_QueueDidChange(IntPtr instancePtr);
  836. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistWillChange")]
  837. internal static extern bool SteamAPI_ISteamMusicRemote_PlaylistWillChange(IntPtr instancePtr);
  838. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_ResetPlaylistEntries")]
  839. internal static extern bool SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(IntPtr instancePtr);
  840. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetPlaylistEntry")]
  841. internal static extern bool SteamAPI_ISteamMusicRemote_SetPlaylistEntry(IntPtr instancePtr, int nID, int nPosition, string pchEntryText);
  842. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry")]
  843. internal static extern bool SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(IntPtr instancePtr, int nID);
  844. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamMusicRemote_PlaylistDidChange")]
  845. internal static extern bool SteamAPI_ISteamMusicRemote_PlaylistDidChange(IntPtr instancePtr);
  846. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_CreateHTTPRequest")]
  847. internal static extern uint SteamAPI_ISteamHTTP_CreateHTTPRequest(IntPtr instancePtr, uint eHTTPRequestMethod, string pchAbsoluteURL);
  848. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestContextValue")]
  849. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(IntPtr instancePtr, uint hRequest, ulong ulContextValue);
  850. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout")]
  851. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(IntPtr instancePtr, uint hRequest, uint unTimeoutSeconds);
  852. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue")]
  853. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(IntPtr instancePtr, uint hRequest, string pchHeaderName, string pchHeaderValue);
  854. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter")]
  855. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(IntPtr instancePtr, uint hRequest, string pchParamName, string pchParamValue);
  856. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequest")]
  857. internal static extern bool SteamAPI_ISteamHTTP_SendHTTPRequest(IntPtr instancePtr, uint hRequest, ref ulong pCallHandle);
  858. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse")]
  859. internal static extern bool SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(IntPtr instancePtr, uint hRequest, ref ulong pCallHandle);
  860. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_DeferHTTPRequest")]
  861. internal static extern bool SteamAPI_ISteamHTTP_DeferHTTPRequest(IntPtr instancePtr, uint hRequest);
  862. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_PrioritizeHTTPRequest")]
  863. internal static extern bool SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(IntPtr instancePtr, uint hRequest);
  864. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize")]
  865. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(IntPtr instancePtr, uint hRequest, string pchHeaderName, ref uint unResponseHeaderSize);
  866. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue")]
  867. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(IntPtr instancePtr, uint hRequest, string pchHeaderName, IntPtr pHeaderValueBuffer, uint unBufferSize);
  868. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodySize")]
  869. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(IntPtr instancePtr, uint hRequest, ref uint unBodySize);
  870. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPResponseBodyData")]
  871. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(IntPtr instancePtr, uint hRequest, IntPtr pBodyDataBuffer, uint unBufferSize);
  872. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData")]
  873. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(IntPtr instancePtr, uint hRequest, uint cOffset, IntPtr pBodyDataBuffer, uint unBufferSize);
  874. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_ReleaseHTTPRequest")]
  875. internal static extern bool SteamAPI_ISteamHTTP_ReleaseHTTPRequest(IntPtr instancePtr, uint hRequest);
  876. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct")]
  877. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(IntPtr instancePtr, uint hRequest, ref float pflPercentOut);
  878. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody")]
  879. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(IntPtr instancePtr, uint hRequest, string pchContentType, IntPtr pubBody, uint unBodyLen);
  880. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_CreateCookieContainer")]
  881. internal static extern uint SteamAPI_ISteamHTTP_CreateCookieContainer(IntPtr instancePtr, bool bAllowResponsesToModify);
  882. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_ReleaseCookieContainer")]
  883. internal static extern bool SteamAPI_ISteamHTTP_ReleaseCookieContainer(IntPtr instancePtr, uint hCookieContainer);
  884. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetCookie")]
  885. internal static extern bool SteamAPI_ISteamHTTP_SetCookie(IntPtr instancePtr, uint hCookieContainer, string pchHost, string pchUrl, string pchCookie);
  886. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer")]
  887. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(IntPtr instancePtr, uint hRequest, uint hCookieContainer);
  888. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo")]
  889. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(IntPtr instancePtr, uint hRequest, string pchUserAgentInfo);
  890. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate")]
  891. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(IntPtr instancePtr, uint hRequest, bool bRequireVerifiedCertificate);
  892. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS")]
  893. internal static extern bool SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(IntPtr instancePtr, uint hRequest, uint unMilliseconds);
  894. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut")]
  895. internal static extern bool SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(IntPtr instancePtr, uint hRequest, ref bool pbWasTimedOut);
  896. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_SendMethod")]
  897. internal static extern ulong SteamAPI_ISteamUnifiedMessages_SendMethod(IntPtr instancePtr, string pchServiceMethod, IntPtr pRequestBuffer, uint unRequestBufferSize, ulong unContext);
  898. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo")]
  899. internal static extern bool SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo(IntPtr instancePtr, ulong hHandle, ref uint punResponseSize, ref uint peResult);
  900. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_GetMethodResponseData")]
  901. internal static extern bool SteamAPI_ISteamUnifiedMessages_GetMethodResponseData(IntPtr instancePtr, ulong hHandle, IntPtr pResponseBuffer, uint unResponseBufferSize, bool bAutoRelease);
  902. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_ReleaseMethod")]
  903. internal static extern bool SteamAPI_ISteamUnifiedMessages_ReleaseMethod(IntPtr instancePtr, ulong hHandle);
  904. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUnifiedMessages_SendNotification")]
  905. internal static extern bool SteamAPI_ISteamUnifiedMessages_SendNotification(IntPtr instancePtr, string pchServiceNotification, IntPtr pNotificationBuffer, uint unNotificationBufferSize);
  906. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_Init")]
  907. internal static extern bool SteamAPI_ISteamController_Init(IntPtr instancePtr);
  908. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_Shutdown")]
  909. internal static extern bool SteamAPI_ISteamController_Shutdown(IntPtr instancePtr);
  910. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_RunFrame")]
  911. internal static extern void SteamAPI_ISteamController_RunFrame(IntPtr instancePtr);
  912. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetConnectedControllers")]
  913. internal static extern int SteamAPI_ISteamController_GetConnectedControllers(IntPtr instancePtr, ref ulong handlesOut);
  914. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_ShowBindingPanel")]
  915. internal static extern bool SteamAPI_ISteamController_ShowBindingPanel(IntPtr instancePtr, ulong controllerHandle);
  916. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetActionSetHandle")]
  917. internal static extern ulong SteamAPI_ISteamController_GetActionSetHandle(IntPtr instancePtr, string pszActionSetName);
  918. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_ActivateActionSet")]
  919. internal static extern void SteamAPI_ISteamController_ActivateActionSet(IntPtr instancePtr, ulong controllerHandle, ulong actionSetHandle);
  920. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetCurrentActionSet")]
  921. internal static extern ulong SteamAPI_ISteamController_GetCurrentActionSet(IntPtr instancePtr, ulong controllerHandle);
  922. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionHandle")]
  923. internal static extern ulong SteamAPI_ISteamController_GetDigitalActionHandle(IntPtr instancePtr, string pszActionName);
  924. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionData")]
  925. internal static extern ControllerDigitalActionData_t SteamAPI_ISteamController_GetDigitalActionData(IntPtr instancePtr, ulong controllerHandle, ulong digitalActionHandle);
  926. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetDigitalActionOrigins")]
  927. internal static extern int SteamAPI_ISteamController_GetDigitalActionOrigins(IntPtr instancePtr, ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, ref uint originsOut);
  928. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetAnalogActionHandle")]
  929. internal static extern ulong SteamAPI_ISteamController_GetAnalogActionHandle(IntPtr instancePtr, string pszActionName);
  930. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetAnalogActionData")]
  931. internal static extern ControllerAnalogActionData_t SteamAPI_ISteamController_GetAnalogActionData(IntPtr instancePtr, ulong controllerHandle, ulong analogActionHandle);
  932. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_GetAnalogActionOrigins")]
  933. internal static extern int SteamAPI_ISteamController_GetAnalogActionOrigins(IntPtr instancePtr, ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, ref uint originsOut);
  934. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_StopAnalogActionMomentum")]
  935. internal static extern void SteamAPI_ISteamController_StopAnalogActionMomentum(IntPtr instancePtr, ulong controllerHandle, ulong eAction);
  936. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamController_TriggerHapticPulse")]
  937. internal static extern void SteamAPI_ISteamController_TriggerHapticPulse(IntPtr instancePtr, ulong controllerHandle, uint eTargetPad, char usDurationMicroSec);
  938. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUserUGCRequest")]
  939. internal static extern ulong SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(IntPtr instancePtr, uint unAccountID, uint eListType, uint eMatchingUGCType, uint eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint unPage);
  940. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest")]
  941. internal static extern ulong SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(IntPtr instancePtr, uint eQueryType, uint eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint unPage);
  942. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest")]
  943. internal static extern ulong SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(IntPtr instancePtr, ref ulong pvecPublishedFileID, uint unNumPublishedFileIDs);
  944. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest")]
  945. internal static extern ulong SteamAPI_ISteamUGC_SendQueryUGCRequest(IntPtr instancePtr, ulong handle);
  946. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult")]
  947. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCResult(IntPtr instancePtr, ulong handle, uint index, ref SteamUGCDetails_t pDetails);
  948. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL")]
  949. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(IntPtr instancePtr, ulong handle, uint index, string pchURL, uint cchURLSize);
  950. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata")]
  951. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCMetadata(IntPtr instancePtr, ulong handle, uint index, string pchMetadata, uint cchMetadatasize);
  952. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren")]
  953. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCChildren(IntPtr instancePtr, ulong handle, uint index, ref ulong pvecPublishedFileID, uint cMaxEntries);
  954. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic")]
  955. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCStatistic(IntPtr instancePtr, ulong handle, uint index, uint eStatType, ref uint pStatValue);
  956. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews")]
  957. internal static extern uint SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(IntPtr instancePtr, ulong handle, uint index);
  958. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview")]
  959. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(IntPtr instancePtr, ulong handle, uint index, uint previewIndex, string pchURLOrVideoID, uint cchURLSize, ref bool pbIsImage);
  960. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags")]
  961. internal static extern uint SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(IntPtr instancePtr, ulong handle, uint index);
  962. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag")]
  963. internal static extern bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(IntPtr instancePtr, ulong handle, uint index, uint keyValueTagIndex, string pchKey, uint cchKeySize, string pchValue, uint cchValueSize);
  964. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest")]
  965. internal static extern bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(IntPtr instancePtr, ulong handle);
  966. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag")]
  967. internal static extern bool SteamAPI_ISteamUGC_AddRequiredTag(IntPtr instancePtr, ulong handle, string pTagName);
  968. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag")]
  969. internal static extern bool SteamAPI_ISteamUGC_AddExcludedTag(IntPtr instancePtr, ulong handle, string pTagName);
  970. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnKeyValueTags")]
  971. internal static extern bool SteamAPI_ISteamUGC_SetReturnKeyValueTags(IntPtr instancePtr, ulong handle, bool bReturnKeyValueTags);
  972. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnLongDescription")]
  973. internal static extern bool SteamAPI_ISteamUGC_SetReturnLongDescription(IntPtr instancePtr, ulong handle, bool bReturnLongDescription);
  974. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnMetadata")]
  975. internal static extern bool SteamAPI_ISteamUGC_SetReturnMetadata(IntPtr instancePtr, ulong handle, bool bReturnMetadata);
  976. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnChildren")]
  977. internal static extern bool SteamAPI_ISteamUGC_SetReturnChildren(IntPtr instancePtr, ulong handle, bool bReturnChildren);
  978. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnAdditionalPreviews")]
  979. internal static extern bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(IntPtr instancePtr, ulong handle, bool bReturnAdditionalPreviews);
  980. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetReturnTotalOnly")]
  981. internal static extern bool SteamAPI_ISteamUGC_SetReturnTotalOnly(IntPtr instancePtr, ulong handle, bool bReturnTotalOnly);
  982. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetLanguage")]
  983. internal static extern bool SteamAPI_ISteamUGC_SetLanguage(IntPtr instancePtr, ulong handle, string pchLanguage);
  984. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetAllowCachedResponse")]
  985. internal static extern bool SteamAPI_ISteamUGC_SetAllowCachedResponse(IntPtr instancePtr, ulong handle, uint unMaxAgeSeconds);
  986. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetCloudFileNameFilter")]
  987. internal static extern bool SteamAPI_ISteamUGC_SetCloudFileNameFilter(IntPtr instancePtr, ulong handle, string pMatchCloudFileName);
  988. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetMatchAnyTag")]
  989. internal static extern bool SteamAPI_ISteamUGC_SetMatchAnyTag(IntPtr instancePtr, ulong handle, bool bMatchAnyTag);
  990. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetSearchText")]
  991. internal static extern bool SteamAPI_ISteamUGC_SetSearchText(IntPtr instancePtr, ulong handle, string pSearchText);
  992. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetRankedByTrendDays")]
  993. internal static extern bool SteamAPI_ISteamUGC_SetRankedByTrendDays(IntPtr instancePtr, ulong handle, uint unDays);
  994. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredKeyValueTag")]
  995. internal static extern bool SteamAPI_ISteamUGC_AddRequiredKeyValueTag(IntPtr instancePtr, ulong handle, string pKey, string pValue);
  996. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RequestUGCDetails")]
  997. internal static extern ulong SteamAPI_ISteamUGC_RequestUGCDetails(IntPtr instancePtr, ulong nPublishedFileID, uint unMaxAgeSeconds);
  998. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_CreateItem")]
  999. internal static extern ulong SteamAPI_ISteamUGC_CreateItem(IntPtr instancePtr, uint nConsumerAppId, uint eFileType);
  1000. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_StartItemUpdate")]
  1001. internal static extern ulong SteamAPI_ISteamUGC_StartItemUpdate(IntPtr instancePtr, uint nConsumerAppId, ulong nPublishedFileID);
  1002. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemTitle")]
  1003. internal static extern bool SteamAPI_ISteamUGC_SetItemTitle(IntPtr instancePtr, ulong handle, string pchTitle);
  1004. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemDescription")]
  1005. internal static extern bool SteamAPI_ISteamUGC_SetItemDescription(IntPtr instancePtr, ulong handle, string pchDescription);
  1006. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemUpdateLanguage")]
  1007. internal static extern bool SteamAPI_ISteamUGC_SetItemUpdateLanguage(IntPtr instancePtr, ulong handle, string pchLanguage);
  1008. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemMetadata")]
  1009. internal static extern bool SteamAPI_ISteamUGC_SetItemMetadata(IntPtr instancePtr, ulong handle, string pchMetaData);
  1010. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemVisibility")]
  1011. internal static extern bool SteamAPI_ISteamUGC_SetItemVisibility(IntPtr instancePtr, ulong handle, uint eVisibility);
  1012. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemTags")]
  1013. internal static extern bool SteamAPI_ISteamUGC_SetItemTags(IntPtr instancePtr, ulong updateHandle, ref SteamParamStringArray_t pTags);
  1014. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemContent")]
  1015. internal static extern bool SteamAPI_ISteamUGC_SetItemContent(IntPtr instancePtr, ulong handle, string pszContentFolder);
  1016. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetItemPreview")]
  1017. internal static extern bool SteamAPI_ISteamUGC_SetItemPreview(IntPtr instancePtr, ulong handle, string pszPreviewFile);
  1018. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RemoveItemKeyValueTags")]
  1019. internal static extern bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags(IntPtr instancePtr, ulong handle, string pchKey);
  1020. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddItemKeyValueTag")]
  1021. internal static extern bool SteamAPI_ISteamUGC_AddItemKeyValueTag(IntPtr instancePtr, ulong handle, string pchKey, string pchValue);
  1022. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SubmitItemUpdate")]
  1023. internal static extern ulong SteamAPI_ISteamUGC_SubmitItemUpdate(IntPtr instancePtr, ulong handle, string pchChangeNote);
  1024. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemUpdateProgress")]
  1025. internal static extern uint SteamAPI_ISteamUGC_GetItemUpdateProgress(IntPtr instancePtr, ulong handle, ref ulong punBytesProcessed, ref ulong punBytesTotal);
  1026. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SetUserItemVote")]
  1027. internal static extern ulong SteamAPI_ISteamUGC_SetUserItemVote(IntPtr instancePtr, ulong nPublishedFileID, bool bVoteUp);
  1028. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetUserItemVote")]
  1029. internal static extern ulong SteamAPI_ISteamUGC_GetUserItemVote(IntPtr instancePtr, ulong nPublishedFileID);
  1030. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_AddItemToFavorites")]
  1031. internal static extern ulong SteamAPI_ISteamUGC_AddItemToFavorites(IntPtr instancePtr, uint nAppId, ulong nPublishedFileID);
  1032. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_RemoveItemFromFavorites")]
  1033. internal static extern ulong SteamAPI_ISteamUGC_RemoveItemFromFavorites(IntPtr instancePtr, uint nAppId, ulong nPublishedFileID);
  1034. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SubscribeItem")]
  1035. internal static extern ulong SteamAPI_ISteamUGC_SubscribeItem(IntPtr instancePtr, ulong nPublishedFileID);
  1036. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_UnsubscribeItem")]
  1037. internal static extern ulong SteamAPI_ISteamUGC_UnsubscribeItem(IntPtr instancePtr, ulong nPublishedFileID);
  1038. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems")]
  1039. internal static extern uint SteamAPI_ISteamUGC_GetNumSubscribedItems(IntPtr instancePtr);
  1040. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems")]
  1041. internal static extern uint SteamAPI_ISteamUGC_GetSubscribedItems(IntPtr instancePtr, ref ulong pvecPublishedFileID, uint cMaxEntries);
  1042. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemState")]
  1043. internal static extern uint SteamAPI_ISteamUGC_GetItemState(IntPtr instancePtr, ulong nPublishedFileID);
  1044. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo")]
  1045. internal static extern bool SteamAPI_ISteamUGC_GetItemInstallInfo(IntPtr instancePtr, ulong nPublishedFileID, ref ulong punSizeOnDisk, string pchFolder, uint cchFolderSize, ref uint punTimeStamp);
  1046. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo")]
  1047. internal static extern bool SteamAPI_ISteamUGC_GetItemDownloadInfo(IntPtr instancePtr, ulong nPublishedFileID, ref ulong punBytesDownloaded, ref ulong punBytesTotal);
  1048. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_DownloadItem")]
  1049. internal static extern bool SteamAPI_ISteamUGC_DownloadItem(IntPtr instancePtr, ulong nPublishedFileID, bool bHighPriority);
  1050. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer")]
  1051. internal static extern bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer(IntPtr instancePtr, uint unWorkshopDepotID, string pszFolder);
  1052. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamUGC_SuspendDownloads")]
  1053. internal static extern void SteamAPI_ISteamUGC_SuspendDownloads(IntPtr instancePtr, bool bSuspend);
  1054. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps")]
  1055. internal static extern uint SteamAPI_ISteamAppList_GetNumInstalledApps(IntPtr instancePtr);
  1056. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps")]
  1057. internal static extern uint SteamAPI_ISteamAppList_GetInstalledApps(IntPtr instancePtr, ref uint pvecAppID, uint unMaxAppIDs);
  1058. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetAppName")]
  1059. internal static extern int SteamAPI_ISteamAppList_GetAppName(IntPtr instancePtr, uint nAppID, string pchName, int cchNameMax);
  1060. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir")]
  1061. internal static extern int SteamAPI_ISteamAppList_GetAppInstallDir(IntPtr instancePtr, uint nAppID, string pchDirectory, int cchNameMax);
  1062. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamAppList_GetAppBuildId")]
  1063. internal static extern int SteamAPI_ISteamAppList_GetAppBuildId(IntPtr instancePtr, uint nAppID);
  1064. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface")]
  1065. internal static extern void SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(IntPtr instancePtr);
  1066. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Init")]
  1067. internal static extern bool SteamAPI_ISteamHTMLSurface_Init(IntPtr instancePtr);
  1068. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Shutdown")]
  1069. internal static extern bool SteamAPI_ISteamHTMLSurface_Shutdown(IntPtr instancePtr);
  1070. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_CreateBrowser")]
  1071. internal static extern ulong SteamAPI_ISteamHTMLSurface_CreateBrowser(IntPtr instancePtr, string pchUserAgent, string pchUserCSS);
  1072. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_RemoveBrowser")]
  1073. internal static extern void SteamAPI_ISteamHTMLSurface_RemoveBrowser(IntPtr instancePtr, uint unBrowserHandle);
  1074. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_LoadURL")]
  1075. internal static extern void SteamAPI_ISteamHTMLSurface_LoadURL(IntPtr instancePtr, uint unBrowserHandle, string pchURL, string pchPostData);
  1076. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetSize")]
  1077. internal static extern void SteamAPI_ISteamHTMLSurface_SetSize(IntPtr instancePtr, uint unBrowserHandle, uint unWidth, uint unHeight);
  1078. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_StopLoad")]
  1079. internal static extern void SteamAPI_ISteamHTMLSurface_StopLoad(IntPtr instancePtr, uint unBrowserHandle);
  1080. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Reload")]
  1081. internal static extern void SteamAPI_ISteamHTMLSurface_Reload(IntPtr instancePtr, uint unBrowserHandle);
  1082. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_GoBack")]
  1083. internal static extern void SteamAPI_ISteamHTMLSurface_GoBack(IntPtr instancePtr, uint unBrowserHandle);
  1084. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_GoForward")]
  1085. internal static extern void SteamAPI_ISteamHTMLSurface_GoForward(IntPtr instancePtr, uint unBrowserHandle);
  1086. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_AddHeader")]
  1087. internal static extern void SteamAPI_ISteamHTMLSurface_AddHeader(IntPtr instancePtr, uint unBrowserHandle, string pchKey, string pchValue);
  1088. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_ExecuteJavascript")]
  1089. internal static extern void SteamAPI_ISteamHTMLSurface_ExecuteJavascript(IntPtr instancePtr, uint unBrowserHandle, string pchScript);
  1090. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseUp")]
  1091. internal static extern void SteamAPI_ISteamHTMLSurface_MouseUp(IntPtr instancePtr, uint unBrowserHandle, uint eMouseButton);
  1092. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDown")]
  1093. internal static extern void SteamAPI_ISteamHTMLSurface_MouseDown(IntPtr instancePtr, uint unBrowserHandle, uint eMouseButton);
  1094. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseDoubleClick")]
  1095. internal static extern void SteamAPI_ISteamHTMLSurface_MouseDoubleClick(IntPtr instancePtr, uint unBrowserHandle, uint eMouseButton);
  1096. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseMove")]
  1097. internal static extern void SteamAPI_ISteamHTMLSurface_MouseMove(IntPtr instancePtr, uint unBrowserHandle, int x, int y);
  1098. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_MouseWheel")]
  1099. internal static extern void SteamAPI_ISteamHTMLSurface_MouseWheel(IntPtr instancePtr, uint unBrowserHandle, int nDelta);
  1100. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyDown")]
  1101. internal static extern void SteamAPI_ISteamHTMLSurface_KeyDown(IntPtr instancePtr, uint unBrowserHandle, uint nNativeKeyCode, uint eHTMLKeyModifiers);
  1102. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyUp")]
  1103. internal static extern void SteamAPI_ISteamHTMLSurface_KeyUp(IntPtr instancePtr, uint unBrowserHandle, uint nNativeKeyCode, uint eHTMLKeyModifiers);
  1104. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_KeyChar")]
  1105. internal static extern void SteamAPI_ISteamHTMLSurface_KeyChar(IntPtr instancePtr, uint unBrowserHandle, uint cUnicodeChar, uint eHTMLKeyModifiers);
  1106. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetHorizontalScroll")]
  1107. internal static extern void SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(IntPtr instancePtr, uint unBrowserHandle, uint nAbsolutePixelScroll);
  1108. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetVerticalScroll")]
  1109. internal static extern void SteamAPI_ISteamHTMLSurface_SetVerticalScroll(IntPtr instancePtr, uint unBrowserHandle, uint nAbsolutePixelScroll);
  1110. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetKeyFocus")]
  1111. internal static extern void SteamAPI_ISteamHTMLSurface_SetKeyFocus(IntPtr instancePtr, uint unBrowserHandle, bool bHasKeyFocus);
  1112. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_ViewSource")]
  1113. internal static extern void SteamAPI_ISteamHTMLSurface_ViewSource(IntPtr instancePtr, uint unBrowserHandle);
  1114. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_CopyToClipboard")]
  1115. internal static extern void SteamAPI_ISteamHTMLSurface_CopyToClipboard(IntPtr instancePtr, uint unBrowserHandle);
  1116. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_PasteFromClipboard")]
  1117. internal static extern void SteamAPI_ISteamHTMLSurface_PasteFromClipboard(IntPtr instancePtr, uint unBrowserHandle);
  1118. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_Find")]
  1119. internal static extern void SteamAPI_ISteamHTMLSurface_Find(IntPtr instancePtr, uint unBrowserHandle, string pchSearchStr, bool bCurrentlyInFind, bool bReverse);
  1120. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_StopFind")]
  1121. internal static extern void SteamAPI_ISteamHTMLSurface_StopFind(IntPtr instancePtr, uint unBrowserHandle);
  1122. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_GetLinkAtPosition")]
  1123. internal static extern void SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(IntPtr instancePtr, uint unBrowserHandle, int x, int y);
  1124. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetCookie")]
  1125. internal static extern void SteamAPI_ISteamHTMLSurface_SetCookie(IntPtr instancePtr, string pchHostname, string pchKey, string pchValue, string pchPath, ulong nExpires, bool bSecure, bool bHTTPOnly);
  1126. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetPageScaleFactor")]
  1127. internal static extern void SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(IntPtr instancePtr, uint unBrowserHandle, float flZoom, int nPointX, int nPointY);
  1128. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_SetBackgroundMode")]
  1129. internal static extern void SteamAPI_ISteamHTMLSurface_SetBackgroundMode(IntPtr instancePtr, uint unBrowserHandle, bool bBackgroundMode);
  1130. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_AllowStartRequest")]
  1131. internal static extern void SteamAPI_ISteamHTMLSurface_AllowStartRequest(IntPtr instancePtr, uint unBrowserHandle, bool bAllowed);
  1132. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_JSDialogResponse")]
  1133. internal static extern void SteamAPI_ISteamHTMLSurface_JSDialogResponse(IntPtr instancePtr, uint unBrowserHandle, bool bResult);
  1134. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse")]
  1135. internal static extern void SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse(IntPtr instancePtr, uint unBrowserHandle, string pchSelectedFiles);
  1136. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetResultStatus")]
  1137. internal static extern uint SteamAPI_ISteamInventory_GetResultStatus(IntPtr instancePtr, int resultHandle);
  1138. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetResultItems")]
  1139. internal static extern bool SteamAPI_ISteamInventory_GetResultItems(IntPtr instancePtr, int resultHandle, [In, Out] SteamItemDetails_t[] pOutItemsArray, ref uint punOutItemsArraySize);
  1140. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetResultTimestamp")]
  1141. internal static extern uint SteamAPI_ISteamInventory_GetResultTimestamp(IntPtr instancePtr, int resultHandle);
  1142. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_CheckResultSteamID")]
  1143. internal static extern bool SteamAPI_ISteamInventory_CheckResultSteamID(IntPtr instancePtr, int resultHandle, ulong steamIDExpected);
  1144. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_DestroyResult")]
  1145. internal static extern void SteamAPI_ISteamInventory_DestroyResult(IntPtr instancePtr, int resultHandle);
  1146. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetAllItems")]
  1147. internal static extern bool SteamAPI_ISteamInventory_GetAllItems(IntPtr instancePtr, ref int pResultHandle);
  1148. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemsByID")]
  1149. internal static extern bool SteamAPI_ISteamInventory_GetItemsByID(IntPtr instancePtr, ref int pResultHandle, [In, Out] ulong[] pInstanceIDs, uint unCountInstanceIDs);
  1150. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SerializeResult")]
  1151. internal static extern bool SteamAPI_ISteamInventory_SerializeResult(IntPtr instancePtr, int resultHandle, IntPtr pOutBuffer, ref uint punOutBufferSize);
  1152. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_DeserializeResult")]
  1153. internal static extern bool SteamAPI_ISteamInventory_DeserializeResult(IntPtr instancePtr, ref int pOutResultHandle, IntPtr pBuffer, uint unBufferSize, bool bRESERVED_MUST_BE_FALSE);
  1154. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GenerateItems")]
  1155. internal static extern bool SteamAPI_ISteamInventory_GenerateItems(IntPtr instancePtr, ref int pResultHandle, [In, Out] int[] pArrayItemDefs, [In, Out] uint[] punArrayQuantity, uint unArrayLength);
  1156. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GrantPromoItems")]
  1157. internal static extern bool SteamAPI_ISteamInventory_GrantPromoItems(IntPtr instancePtr, ref int pResultHandle);
  1158. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_AddPromoItem")]
  1159. internal static extern bool SteamAPI_ISteamInventory_AddPromoItem(IntPtr instancePtr, ref int pResultHandle, int itemDef);
  1160. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_AddPromoItems")]
  1161. internal static extern bool SteamAPI_ISteamInventory_AddPromoItems(IntPtr instancePtr, ref int pResultHandle, [In, Out] int[] pArrayItemDefs, uint unArrayLength);
  1162. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_ConsumeItem")]
  1163. internal static extern bool SteamAPI_ISteamInventory_ConsumeItem(IntPtr instancePtr, ref int pResultHandle, ulong itemConsume, uint unQuantity);
  1164. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_ExchangeItems")]
  1165. internal static extern bool SteamAPI_ISteamInventory_ExchangeItems(IntPtr instancePtr, ref int pResultHandle, [In, Out] int[] pArrayGenerate, [In, Out] uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, [In, Out] ulong[] pArrayDestroy, [In, Out] uint[] punArrayDestroyQuantity, uint unArrayDestroyLength);
  1166. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_TransferItemQuantity")]
  1167. internal static extern bool SteamAPI_ISteamInventory_TransferItemQuantity(IntPtr instancePtr, ref int pResultHandle, ulong itemIdSource, uint unQuantity, ulong itemIdDest);
  1168. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_SendItemDropHeartbeat")]
  1169. internal static extern void SteamAPI_ISteamInventory_SendItemDropHeartbeat(IntPtr instancePtr);
  1170. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_TriggerItemDrop")]
  1171. internal static extern bool SteamAPI_ISteamInventory_TriggerItemDrop(IntPtr instancePtr, ref int pResultHandle, int dropListDefinition);
  1172. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_TradeItems")]
  1173. internal static extern bool SteamAPI_ISteamInventory_TradeItems(IntPtr instancePtr, ref int pResultHandle, ulong steamIDTradePartner, [In, Out] ulong[] pArrayGive, [In, Out] uint[] pArrayGiveQuantity, uint nArrayGiveLength, [In, Out] ulong[] pArrayGet, [In, Out] uint[] pArrayGetQuantity, uint nArrayGetLength);
  1174. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions")]
  1175. internal static extern bool SteamAPI_ISteamInventory_LoadItemDefinitions(IntPtr instancePtr);
  1176. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs")]
  1177. internal static extern bool SteamAPI_ISteamInventory_GetItemDefinitionIDs(IntPtr instancePtr, [In, Out] int[] pItemDefIDs, ref uint punItemDefIDsArraySize);
  1178. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty")]
  1179. internal static extern bool SteamAPI_ISteamInventory_GetItemDefinitionProperty(IntPtr instancePtr, int iDefinition, string pchPropertyName, System.Text.StringBuilder pchValueBuffer, ref uint punValueBufferSize);
  1180. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamVideo_GetVideoURL")]
  1181. internal static extern void SteamAPI_ISteamVideo_GetVideoURL(IntPtr instancePtr, uint unVideoAppID);
  1182. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamVideo_IsBroadcasting")]
  1183. internal static extern bool SteamAPI_ISteamVideo_IsBroadcasting(IntPtr instancePtr, ref int pnNumViewers);
  1184. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_InitGameServer")]
  1185. internal static extern bool SteamAPI_ISteamGameServer_InitGameServer(IntPtr instancePtr, uint unIP, char usGamePort, char usQueryPort, uint unFlags, uint nGameAppId, string pchVersionString);
  1186. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetProduct")]
  1187. internal static extern void SteamAPI_ISteamGameServer_SetProduct(IntPtr instancePtr, string pszProduct);
  1188. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetGameDescription")]
  1189. internal static extern void SteamAPI_ISteamGameServer_SetGameDescription(IntPtr instancePtr, string pszGameDescription);
  1190. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetModDir")]
  1191. internal static extern void SteamAPI_ISteamGameServer_SetModDir(IntPtr instancePtr, string pszModDir);
  1192. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetDedicatedServer")]
  1193. internal static extern void SteamAPI_ISteamGameServer_SetDedicatedServer(IntPtr instancePtr, bool bDedicated);
  1194. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_LogOn")]
  1195. internal static extern void SteamAPI_ISteamGameServer_LogOn(IntPtr instancePtr, string pszToken);
  1196. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_LogOnAnonymous")]
  1197. internal static extern void SteamAPI_ISteamGameServer_LogOnAnonymous(IntPtr instancePtr);
  1198. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_LogOff")]
  1199. internal static extern void SteamAPI_ISteamGameServer_LogOff(IntPtr instancePtr);
  1200. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BLoggedOn")]
  1201. internal static extern bool SteamAPI_ISteamGameServer_BLoggedOn(IntPtr instancePtr);
  1202. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BSecure")]
  1203. internal static extern bool SteamAPI_ISteamGameServer_BSecure(IntPtr instancePtr);
  1204. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetSteamID")]
  1205. internal static extern ulong SteamAPI_ISteamGameServer_GetSteamID(IntPtr instancePtr);
  1206. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_WasRestartRequested")]
  1207. internal static extern bool SteamAPI_ISteamGameServer_WasRestartRequested(IntPtr instancePtr);
  1208. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetMaxPlayerCount")]
  1209. internal static extern void SteamAPI_ISteamGameServer_SetMaxPlayerCount(IntPtr instancePtr, int cPlayersMax);
  1210. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetBotPlayerCount")]
  1211. internal static extern void SteamAPI_ISteamGameServer_SetBotPlayerCount(IntPtr instancePtr, int cBotplayers);
  1212. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetServerName")]
  1213. internal static extern void SteamAPI_ISteamGameServer_SetServerName(IntPtr instancePtr, string pszServerName);
  1214. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetMapName")]
  1215. internal static extern void SteamAPI_ISteamGameServer_SetMapName(IntPtr instancePtr, string pszMapName);
  1216. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetPasswordProtected")]
  1217. internal static extern void SteamAPI_ISteamGameServer_SetPasswordProtected(IntPtr instancePtr, bool bPasswordProtected);
  1218. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorPort")]
  1219. internal static extern void SteamAPI_ISteamGameServer_SetSpectatorPort(IntPtr instancePtr, char unSpectatorPort);
  1220. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetSpectatorServerName")]
  1221. internal static extern void SteamAPI_ISteamGameServer_SetSpectatorServerName(IntPtr instancePtr, string pszSpectatorServerName);
  1222. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_ClearAllKeyValues")]
  1223. internal static extern void SteamAPI_ISteamGameServer_ClearAllKeyValues(IntPtr instancePtr);
  1224. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetKeyValue")]
  1225. internal static extern void SteamAPI_ISteamGameServer_SetKeyValue(IntPtr instancePtr, string pKey, string pValue);
  1226. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetGameTags")]
  1227. internal static extern void SteamAPI_ISteamGameServer_SetGameTags(IntPtr instancePtr, string pchGameTags);
  1228. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetGameData")]
  1229. internal static extern void SteamAPI_ISteamGameServer_SetGameData(IntPtr instancePtr, string pchGameData);
  1230. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetRegion")]
  1231. internal static extern void SteamAPI_ISteamGameServer_SetRegion(IntPtr instancePtr, string pszRegion);
  1232. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate")]
  1233. internal static extern bool SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(IntPtr instancePtr, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref CSteamID pSteamIDUser);
  1234. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection")]
  1235. internal static extern ulong SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(IntPtr instancePtr);
  1236. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SendUserDisconnect")]
  1237. internal static extern void SteamAPI_ISteamGameServer_SendUserDisconnect(IntPtr instancePtr, ulong steamIDUser);
  1238. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BUpdateUserData")]
  1239. internal static extern bool SteamAPI_ISteamGameServer_BUpdateUserData(IntPtr instancePtr, ulong steamIDUser, string pchPlayerName, uint uScore);
  1240. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetAuthSessionTicket")]
  1241. internal static extern uint SteamAPI_ISteamGameServer_GetAuthSessionTicket(IntPtr instancePtr, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket);
  1242. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_BeginAuthSession")]
  1243. internal static extern uint SteamAPI_ISteamGameServer_BeginAuthSession(IntPtr instancePtr, IntPtr pAuthTicket, int cbAuthTicket, ulong steamID);
  1244. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_EndAuthSession")]
  1245. internal static extern void SteamAPI_ISteamGameServer_EndAuthSession(IntPtr instancePtr, ulong steamID);
  1246. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_CancelAuthTicket")]
  1247. internal static extern void SteamAPI_ISteamGameServer_CancelAuthTicket(IntPtr instancePtr, uint hAuthTicket);
  1248. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_UserHasLicenseForApp")]
  1249. internal static extern uint SteamAPI_ISteamGameServer_UserHasLicenseForApp(IntPtr instancePtr, ulong steamID, uint appID);
  1250. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_RequestUserGroupStatus")]
  1251. internal static extern bool SteamAPI_ISteamGameServer_RequestUserGroupStatus(IntPtr instancePtr, ulong steamIDUser, ulong steamIDGroup);
  1252. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetGameplayStats")]
  1253. internal static extern void SteamAPI_ISteamGameServer_GetGameplayStats(IntPtr instancePtr);
  1254. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetServerReputation")]
  1255. internal static extern ulong SteamAPI_ISteamGameServer_GetServerReputation(IntPtr instancePtr);
  1256. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetPublicIP")]
  1257. internal static extern uint SteamAPI_ISteamGameServer_GetPublicIP(IntPtr instancePtr);
  1258. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_HandleIncomingPacket")]
  1259. internal static extern bool SteamAPI_ISteamGameServer_HandleIncomingPacket(IntPtr instancePtr, IntPtr pData, int cbData, uint srcIP, char srcPort);
  1260. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_GetNextOutgoingPacket")]
  1261. internal static extern int SteamAPI_ISteamGameServer_GetNextOutgoingPacket(IntPtr instancePtr, IntPtr pOut, int cbMaxOut, ref uint pNetAdr, ref char pPort);
  1262. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_EnableHeartbeats")]
  1263. internal static extern void SteamAPI_ISteamGameServer_EnableHeartbeats(IntPtr instancePtr, bool bActive);
  1264. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_SetHeartbeatInterval")]
  1265. internal static extern void SteamAPI_ISteamGameServer_SetHeartbeatInterval(IntPtr instancePtr, int iHeartbeatInterval);
  1266. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_ForceHeartbeat")]
  1267. internal static extern void SteamAPI_ISteamGameServer_ForceHeartbeat(IntPtr instancePtr);
  1268. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_AssociateWithClan")]
  1269. internal static extern ulong SteamAPI_ISteamGameServer_AssociateWithClan(IntPtr instancePtr, ulong steamIDClan);
  1270. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility")]
  1271. internal static extern ulong SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(IntPtr instancePtr, ulong steamIDNewPlayer);
  1272. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_RequestUserStats")]
  1273. internal static extern ulong SteamAPI_ISteamGameServerStats_RequestUserStats(IntPtr instancePtr, ulong steamIDUser);
  1274. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat")]
  1275. internal static extern bool SteamAPI_ISteamGameServerStats_GetUserStat(IntPtr instancePtr, ulong steamIDUser, string pchName, ref int pData);
  1276. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserStat0")]
  1277. internal static extern bool SteamAPI_ISteamGameServerStats_GetUserStat0(IntPtr instancePtr, ulong steamIDUser, string pchName, ref float pData);
  1278. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_GetUserAchievement")]
  1279. internal static extern bool SteamAPI_ISteamGameServerStats_GetUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName, ref bool pbAchieved);
  1280. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat")]
  1281. internal static extern bool SteamAPI_ISteamGameServerStats_SetUserStat(IntPtr instancePtr, ulong steamIDUser, string pchName, int nData);
  1282. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat0")]
  1283. internal static extern bool SteamAPI_ISteamGameServerStats_SetUserStat0(IntPtr instancePtr, ulong steamIDUser, string pchName, float fData);
  1284. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat")]
  1285. internal static extern bool SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(IntPtr instancePtr, ulong steamIDUser, string pchName, float flCountThisSession, double dSessionLength);
  1286. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserAchievement")]
  1287. internal static extern bool SteamAPI_ISteamGameServerStats_SetUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName);
  1288. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_ClearUserAchievement")]
  1289. internal static extern bool SteamAPI_ISteamGameServerStats_ClearUserAchievement(IntPtr instancePtr, ulong steamIDUser, string pchName);
  1290. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_ISteamGameServerStats_StoreUserStats")]
  1291. internal static extern ulong SteamAPI_ISteamGameServerStats_StoreUserStats(IntPtr instancePtr, ulong steamIDUser);
  1292. }
  1293. }
  1294. namespace Valve.Steamworks
  1295. {
  1296. public abstract class ISteamClient
  1297. {
  1298. public abstract IntPtr GetIntPtr();
  1299. public abstract uint CreateSteamPipe();
  1300. public abstract bool BReleaseSteamPipe(uint hSteamPipe);
  1301. public abstract uint ConnectToGlobalUser(uint hSteamPipe);
  1302. public abstract uint CreateLocalUser(ref uint phSteamPipe,uint eAccountType);
  1303. public abstract void ReleaseUser(uint hSteamPipe,uint hUser);
  1304. public abstract ISteamUser GetISteamUser(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1305. public abstract ISteamGameServer GetISteamGameServer(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1306. public abstract void SetLocalIPBinding(uint unIP,char usPort);
  1307. public abstract ISteamFriends GetISteamFriends(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1308. public abstract ISteamUtils GetISteamUtils(uint hSteamPipe,string pchVersion);
  1309. public abstract ISteamMatchmaking GetISteamMatchmaking(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1310. public abstract ISteamMatchmakingServers GetISteamMatchmakingServers(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1311. public abstract IntPtr GetISteamGenericInterface(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1312. public abstract ISteamUserStats GetISteamUserStats(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1313. public abstract ISteamGameServerStats GetISteamGameServerStats(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1314. public abstract ISteamApps GetISteamApps(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1315. public abstract ISteamNetworking GetISteamNetworking(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1316. public abstract ISteamRemoteStorage GetISteamRemoteStorage(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1317. public abstract ISteamScreenshots GetISteamScreenshots(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1318. public abstract void RunFrame();
  1319. public abstract uint GetIPCCallCount();
  1320. public abstract void SetWarningMessageHook(IntPtr pFunction);
  1321. public abstract bool BShutdownIfAllPipesClosed();
  1322. public abstract ISteamHTTP GetISteamHTTP(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1323. public abstract ISteamUnifiedMessages GetISteamUnifiedMessages(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1324. public abstract ISteamController GetISteamController(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1325. public abstract ISteamUGC GetISteamUGC(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1326. public abstract ISteamAppList GetISteamAppList(uint hSteamUser,uint hSteamPipe,string pchVersion);
  1327. public abstract ISteamMusic GetISteamMusic(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1328. public abstract ISteamMusicRemote GetISteamMusicRemote(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1329. public abstract ISteamHTMLSurface GetISteamHTMLSurface(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1330. public abstract void Set_SteamAPI_CPostAPIResultInProcess(IntPtr func);
  1331. public abstract void Remove_SteamAPI_CPostAPIResultInProcess(IntPtr func);
  1332. public abstract void Set_SteamAPI_CCheckCallbackRegisteredInProcess(IntPtr func);
  1333. public abstract ISteamInventory GetISteamInventory(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1334. public abstract ISteamVideo GetISteamVideo(uint hSteamuser,uint hSteamPipe,string pchVersion);
  1335. }
  1336. public abstract class ISteamUser
  1337. {
  1338. public abstract IntPtr GetIntPtr();
  1339. public abstract uint GetHSteamUser();
  1340. public abstract bool BLoggedOn();
  1341. public abstract ulong GetSteamID();
  1342. public abstract int InitiateGameConnection(IntPtr pAuthBlob,int cbMaxAuthBlob,ulong steamIDGameServer,uint unIPServer,char usPortServer,bool bSecure);
  1343. public abstract void TerminateGameConnection(uint unIPServer,char usPortServer);
  1344. public abstract void TrackAppUsageEvent(ulong gameID,int eAppUsageEvent,string pchExtraInfo);
  1345. public abstract bool GetUserDataFolder(string pchBuffer,int cubBuffer);
  1346. public abstract void StartVoiceRecording();
  1347. public abstract void StopVoiceRecording();
  1348. public abstract uint GetAvailableVoice(ref uint pcbCompressed,ref uint pcbUncompressed,uint nUncompressedVoiceDesiredSampleRate);
  1349. public abstract uint GetVoice(bool bWantCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,bool bWantUncompressed,IntPtr pUncompressedDestBuffer,uint cbUncompressedDestBufferSize,ref uint nUncompressBytesWritten,uint nUncompressedVoiceDesiredSampleRate);
  1350. public abstract uint DecompressVoice(IntPtr pCompressed,uint cbCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,uint nDesiredSampleRate);
  1351. public abstract uint GetVoiceOptimalSampleRate();
  1352. public abstract uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket);
  1353. public abstract uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID);
  1354. public abstract void EndAuthSession(ulong steamID);
  1355. public abstract void CancelAuthTicket(uint hAuthTicket);
  1356. public abstract uint UserHasLicenseForApp(ulong steamID,uint appID);
  1357. public abstract bool BIsBehindNAT();
  1358. public abstract void AdvertiseGame(ulong steamIDGameServer,uint unIPServer,char usPortServer);
  1359. public abstract ulong RequestEncryptedAppTicket(IntPtr pDataToInclude,int cbDataToInclude);
  1360. public abstract bool GetEncryptedAppTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket);
  1361. public abstract int GetGameBadgeLevel(int nSeries,bool bFoil);
  1362. public abstract int GetPlayerSteamLevel();
  1363. public abstract ulong RequestStoreAuthURL(string pchRedirectURL);
  1364. }
  1365. public abstract class ISteamFriends
  1366. {
  1367. public abstract IntPtr GetIntPtr();
  1368. public abstract string GetPersonaName();
  1369. public abstract ulong SetPersonaName(string pchPersonaName);
  1370. public abstract uint GetPersonaState();
  1371. public abstract int GetFriendCount(int iFriendFlags);
  1372. public abstract ulong GetFriendByIndex(int iFriend,int iFriendFlags);
  1373. public abstract uint GetFriendRelationship(ulong steamIDFriend);
  1374. public abstract uint GetFriendPersonaState(ulong steamIDFriend);
  1375. public abstract string GetFriendPersonaName(ulong steamIDFriend);
  1376. public abstract bool GetFriendGamePlayed(ulong steamIDFriend,out FriendGameInfo_t pFriendGameInfo);
  1377. public abstract string GetFriendPersonaNameHistory(ulong steamIDFriend,int iPersonaName);
  1378. public abstract int GetFriendSteamLevel(ulong steamIDFriend);
  1379. public abstract string GetPlayerNickname(ulong steamIDPlayer);
  1380. public abstract int GetFriendsGroupCount();
  1381. public abstract char GetFriendsGroupIDByIndex(int iFG);
  1382. public abstract string GetFriendsGroupName(char friendsGroupID);
  1383. public abstract int GetFriendsGroupMembersCount(char friendsGroupID);
  1384. public abstract void GetFriendsGroupMembersList(char friendsGroupID,out CSteamID [] pOutSteamIDMembers);
  1385. public abstract bool HasFriend(ulong steamIDFriend,int iFriendFlags);
  1386. public abstract int GetClanCount();
  1387. public abstract ulong GetClanByIndex(int iClan);
  1388. public abstract string GetClanName(ulong steamIDClan);
  1389. public abstract string GetClanTag(ulong steamIDClan);
  1390. public abstract bool GetClanActivityCounts(ulong steamIDClan,ref int pnOnline,ref int pnInGame,ref int pnChatting);
  1391. public abstract ulong DownloadClanActivityCounts(CSteamID [] psteamIDClans);
  1392. public abstract int GetFriendCountFromSource(ulong steamIDSource);
  1393. public abstract ulong GetFriendFromSourceByIndex(ulong steamIDSource,int iFriend);
  1394. public abstract bool IsUserInSource(ulong steamIDUser,ulong steamIDSource);
  1395. public abstract void SetInGameVoiceSpeaking(ulong steamIDUser,bool bSpeaking);
  1396. public abstract void ActivateGameOverlay(string pchDialog);
  1397. public abstract void ActivateGameOverlayToUser(string pchDialog,ulong steamID);
  1398. public abstract void ActivateGameOverlayToWebPage(string pchURL);
  1399. public abstract void ActivateGameOverlayToStore(uint nAppID,char eFlag);
  1400. public abstract void SetPlayedWith(ulong steamIDUserPlayedWith);
  1401. public abstract void ActivateGameOverlayInviteDialog(ulong steamIDLobby);
  1402. public abstract int GetSmallFriendAvatar(ulong steamIDFriend);
  1403. public abstract int GetMediumFriendAvatar(ulong steamIDFriend);
  1404. public abstract int GetLargeFriendAvatar(ulong steamIDFriend);
  1405. public abstract bool RequestUserInformation(ulong steamIDUser,bool bRequireNameOnly);
  1406. public abstract ulong RequestClanOfficerList(ulong steamIDClan);
  1407. public abstract ulong GetClanOwner(ulong steamIDClan);
  1408. public abstract int GetClanOfficerCount(ulong steamIDClan);
  1409. public abstract ulong GetClanOfficerByIndex(ulong steamIDClan,int iOfficer);
  1410. public abstract uint GetUserRestrictions();
  1411. public abstract bool SetRichPresence(string pchKey,string pchValue);
  1412. public abstract void ClearRichPresence();
  1413. public abstract string GetFriendRichPresence(ulong steamIDFriend,string pchKey);
  1414. public abstract int GetFriendRichPresenceKeyCount(ulong steamIDFriend);
  1415. public abstract string GetFriendRichPresenceKeyByIndex(ulong steamIDFriend,int iKey);
  1416. public abstract void RequestFriendRichPresence(ulong steamIDFriend);
  1417. public abstract bool InviteUserToGame(ulong steamIDFriend,string pchConnectString);
  1418. public abstract int GetCoplayFriendCount();
  1419. public abstract ulong GetCoplayFriend(int iCoplayFriend);
  1420. public abstract int GetFriendCoplayTime(ulong steamIDFriend);
  1421. public abstract uint GetFriendCoplayGame(ulong steamIDFriend);
  1422. public abstract ulong JoinClanChatRoom(ulong steamIDClan);
  1423. public abstract bool LeaveClanChatRoom(ulong steamIDClan);
  1424. public abstract int GetClanChatMemberCount(ulong steamIDClan);
  1425. public abstract ulong GetChatMemberByIndex(ulong steamIDClan,int iUser);
  1426. public abstract bool SendClanChatMessage(ulong steamIDClanChat,string pchText);
  1427. public abstract int GetClanChatMessage(ulong steamIDClanChat,int iMessage,IntPtr prgchText,int cchTextMax,ref uint peChatEntryType,out CSteamID psteamidChatter);
  1428. public abstract bool IsClanChatAdmin(ulong steamIDClanChat,ulong steamIDUser);
  1429. public abstract bool IsClanChatWindowOpenInSteam(ulong steamIDClanChat);
  1430. public abstract bool OpenClanChatWindowInSteam(ulong steamIDClanChat);
  1431. public abstract bool CloseClanChatWindowInSteam(ulong steamIDClanChat);
  1432. public abstract bool SetListenForFriendsMessages(bool bInterceptEnabled);
  1433. public abstract bool ReplyToFriendMessage(ulong steamIDFriend,string pchMsgToSend);
  1434. public abstract int GetFriendMessage(ulong steamIDFriend,int iMessageID,IntPtr pvData,int cubData,ref uint peChatEntryType);
  1435. public abstract ulong GetFollowerCount(ulong steamID);
  1436. public abstract ulong IsFollowing(ulong steamID);
  1437. public abstract ulong EnumerateFollowingList(uint unStartIndex);
  1438. }
  1439. public abstract class ISteamUtils
  1440. {
  1441. public abstract IntPtr GetIntPtr();
  1442. public abstract uint GetSecondsSinceAppActive();
  1443. public abstract uint GetSecondsSinceComputerActive();
  1444. public abstract int GetConnectedUniverse();
  1445. public abstract uint GetServerRealTime();
  1446. public abstract string GetIPCountry();
  1447. public abstract bool GetImageSize(int iImage,ref uint pnWidth,ref uint pnHeight);
  1448. public abstract bool GetImageRGBA(int iImage,IntPtr pubDest,int nDestBufferSize);
  1449. public abstract bool GetCSERIPPort(ref uint unIP,ref char usPort);
  1450. public abstract byte GetCurrentBatteryPower();
  1451. public abstract uint GetAppID();
  1452. public abstract void SetOverlayNotificationPosition(uint eNotificationPosition);
  1453. public abstract bool IsAPICallCompleted(ulong hSteamAPICall,ref bool pbFailed);
  1454. public abstract int GetAPICallFailureReason(ulong hSteamAPICall);
  1455. public abstract bool GetAPICallResult(ulong hSteamAPICall,IntPtr pCallback,int cubCallback,int iCallbackExpected,ref bool pbFailed);
  1456. public abstract void RunFrame();
  1457. public abstract uint GetIPCCallCount();
  1458. public abstract void SetWarningMessageHook(IntPtr pFunction);
  1459. public abstract bool IsOverlayEnabled();
  1460. public abstract bool BOverlayNeedsPresent();
  1461. public abstract ulong CheckFileSignature(string szFileName);
  1462. public abstract bool ShowGamepadTextInput(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText);
  1463. public abstract uint GetEnteredGamepadTextLength();
  1464. public abstract bool GetEnteredGamepadTextInput(string pchText,uint cchText);
  1465. public abstract string GetSteamUILanguage();
  1466. public abstract bool IsSteamRunningInVR();
  1467. public abstract void SetOverlayNotificationInset(int nHorizontalInset,int nVerticalInset);
  1468. }
  1469. public abstract class ISteamMatchmaking
  1470. {
  1471. public abstract IntPtr GetIntPtr();
  1472. public abstract int GetFavoriteGameCount();
  1473. public abstract bool GetFavoriteGame(int iGame,ref uint pnAppID,ref uint pnIP,ref char pnConnPort,ref char pnQueryPort,ref uint punFlags,ref uint pRTime32LastPlayedOnServer);
  1474. public abstract int AddFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags,uint rTime32LastPlayedOnServer);
  1475. public abstract bool RemoveFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags);
  1476. public abstract ulong RequestLobbyList();
  1477. public abstract void AddRequestLobbyListStringFilter(string pchKeyToMatch,string pchValueToMatch,uint eComparisonType);
  1478. public abstract void AddRequestLobbyListNumericalFilter(string pchKeyToMatch,int nValueToMatch,uint eComparisonType);
  1479. public abstract void AddRequestLobbyListNearValueFilter(string pchKeyToMatch,int nValueToBeCloseTo);
  1480. public abstract void AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable);
  1481. public abstract void AddRequestLobbyListDistanceFilter(uint eLobbyDistanceFilter);
  1482. public abstract void AddRequestLobbyListResultCountFilter(int cMaxResults);
  1483. public abstract void AddRequestLobbyListCompatibleMembersFilter(ulong steamIDLobby);
  1484. public abstract ulong GetLobbyByIndex(int iLobby);
  1485. public abstract ulong CreateLobby(uint eLobbyType,int cMaxMembers);
  1486. public abstract ulong JoinLobby(ulong steamIDLobby);
  1487. public abstract void LeaveLobby(ulong steamIDLobby);
  1488. public abstract bool InviteUserToLobby(ulong steamIDLobby,ulong steamIDInvitee);
  1489. public abstract int GetNumLobbyMembers(ulong steamIDLobby);
  1490. public abstract ulong GetLobbyMemberByIndex(ulong steamIDLobby,int iMember);
  1491. public abstract string GetLobbyData(ulong steamIDLobby,string pchKey);
  1492. public abstract bool SetLobbyData(ulong steamIDLobby,string pchKey,string pchValue);
  1493. public abstract int GetLobbyDataCount(ulong steamIDLobby);
  1494. public abstract bool GetLobbyDataByIndex(ulong steamIDLobby,int iLobbyData,string pchKey,int cchKeyBufferSize,string pchValue,int cchValueBufferSize);
  1495. public abstract bool DeleteLobbyData(ulong steamIDLobby,string pchKey);
  1496. public abstract string GetLobbyMemberData(ulong steamIDLobby,ulong steamIDUser,string pchKey);
  1497. public abstract void SetLobbyMemberData(ulong steamIDLobby,string pchKey,string pchValue);
  1498. public abstract bool SendLobbyChatMsg(ulong steamIDLobby,IntPtr pvMsgBody,int cubMsgBody);
  1499. public abstract int GetLobbyChatEntry(ulong steamIDLobby,int iChatID,out CSteamID pSteamIDUser,IntPtr pvData,int cubData,ref uint peChatEntryType);
  1500. public abstract bool RequestLobbyData(ulong steamIDLobby);
  1501. public abstract void SetLobbyGameServer(ulong steamIDLobby,uint unGameServerIP,char unGameServerPort,ulong steamIDGameServer);
  1502. public abstract bool GetLobbyGameServer(ulong steamIDLobby,ref uint punGameServerIP,ref char punGameServerPort,out CSteamID psteamIDGameServer);
  1503. public abstract bool SetLobbyMemberLimit(ulong steamIDLobby,int cMaxMembers);
  1504. public abstract int GetLobbyMemberLimit(ulong steamIDLobby);
  1505. public abstract bool SetLobbyType(ulong steamIDLobby,uint eLobbyType);
  1506. public abstract bool SetLobbyJoinable(ulong steamIDLobby,bool bLobbyJoinable);
  1507. public abstract ulong GetLobbyOwner(ulong steamIDLobby);
  1508. public abstract bool SetLobbyOwner(ulong steamIDLobby,ulong steamIDNewOwner);
  1509. public abstract bool SetLinkedLobby(ulong steamIDLobby,ulong steamIDLobbyDependent);
  1510. }
  1511. public abstract class ISteamMatchmakingServerListResponse
  1512. {
  1513. public abstract IntPtr GetIntPtr();
  1514. public abstract void ServerResponded(uint hRequest,int iServer);
  1515. public abstract void ServerFailedToRespond(uint hRequest,int iServer);
  1516. public abstract void RefreshComplete(uint hRequest,uint response);
  1517. }
  1518. public abstract class ISteamMatchmakingPingResponse
  1519. {
  1520. public abstract IntPtr GetIntPtr();
  1521. public abstract void ServerResponded(IntPtr server);
  1522. public abstract void ServerFailedToRespond();
  1523. }
  1524. public abstract class ISteamMatchmakingPlayersResponse
  1525. {
  1526. public abstract IntPtr GetIntPtr();
  1527. public abstract void AddPlayerToList(string pchName,int nScore,float flTimePlayed);
  1528. public abstract void PlayersFailedToRespond();
  1529. public abstract void PlayersRefreshComplete();
  1530. }
  1531. public abstract class ISteamMatchmakingRulesResponse
  1532. {
  1533. public abstract IntPtr GetIntPtr();
  1534. public abstract void RulesResponded(string pchRule,string pchValue);
  1535. public abstract void RulesFailedToRespond();
  1536. public abstract void RulesRefreshComplete();
  1537. }
  1538. public abstract class ISteamMatchmakingServers
  1539. {
  1540. public abstract IntPtr GetIntPtr();
  1541. public abstract uint RequestInternetServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse);
  1542. public abstract uint RequestLANServerList(uint iApp,ISteamMatchmakingServerListResponse pRequestServersResponse);
  1543. public abstract uint RequestFriendsServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse);
  1544. public abstract uint RequestFavoritesServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse);
  1545. public abstract uint RequestHistoryServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse);
  1546. public abstract uint RequestSpectatorServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse);
  1547. public abstract void ReleaseRequest(uint hServerListRequest);
  1548. public abstract gameserveritem_t GetServerDetails(uint hRequest,int iServer);
  1549. public abstract void CancelQuery(uint hRequest);
  1550. public abstract void RefreshQuery(uint hRequest);
  1551. public abstract bool IsRefreshing(uint hRequest);
  1552. public abstract int GetServerCount(uint hRequest);
  1553. public abstract void RefreshServer(uint hRequest,int iServer);
  1554. public abstract uint PingServer(uint unIP,char usPort,ISteamMatchmakingPingResponse pRequestServersResponse);
  1555. public abstract uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse);
  1556. public abstract uint ServerRules(uint unIP,char usPort,ISteamMatchmakingRulesResponse pRequestServersResponse);
  1557. public abstract void CancelServerQuery(uint hServerQuery);
  1558. }
  1559. public abstract class ISteamRemoteStorage
  1560. {
  1561. public abstract IntPtr GetIntPtr();
  1562. public abstract bool FileWrite(string pchFile,IntPtr pvData,int cubData);
  1563. public abstract int FileRead(string pchFile,IntPtr pvData,int cubDataToRead);
  1564. public abstract ulong FileWriteAsync(string pchFile,IntPtr pvData,uint cubData);
  1565. public abstract ulong FileReadAsync(string pchFile,uint nOffset,uint cubToRead);
  1566. public abstract bool FileReadAsyncComplete(ulong hReadCall,IntPtr pvBuffer,uint cubToRead);
  1567. public abstract bool FileForget(string pchFile);
  1568. public abstract bool FileDelete(string pchFile);
  1569. public abstract ulong FileShare(string pchFile);
  1570. public abstract bool SetSyncPlatforms(string pchFile,uint eRemoteStoragePlatform);
  1571. public abstract ulong FileWriteStreamOpen(string pchFile);
  1572. public abstract bool FileWriteStreamWriteChunk(ulong writeHandle,IntPtr pvData,int cubData);
  1573. public abstract bool FileWriteStreamClose(ulong writeHandle);
  1574. public abstract bool FileWriteStreamCancel(ulong writeHandle);
  1575. public abstract bool FileExists(string pchFile);
  1576. public abstract bool FilePersisted(string pchFile);
  1577. public abstract int GetFileSize(string pchFile);
  1578. public abstract long GetFileTimestamp(string pchFile);
  1579. public abstract uint GetSyncPlatforms(string pchFile);
  1580. public abstract int GetFileCount();
  1581. public abstract string GetFileNameAndSize(int iFile,ref int pnFileSizeInBytes);
  1582. public abstract bool GetQuota(ref int pnTotalBytes,ref int puAvailableBytes);
  1583. public abstract bool IsCloudEnabledForAccount();
  1584. public abstract bool IsCloudEnabledForApp();
  1585. public abstract void SetCloudEnabledForApp(bool bEnabled);
  1586. public abstract ulong UGCDownload(ulong hContent,uint unPriority);
  1587. public abstract bool GetUGCDownloadProgress(ulong hContent,ref int pnBytesDownloaded,ref int pnBytesExpected);
  1588. public abstract bool GetUGCDetails(ulong hContent,ref uint pnAppID,string ppchName,ref int pnFileSizeInBytes,out CSteamID pSteamIDOwner);
  1589. public abstract int UGCRead(ulong hContent,IntPtr pvData,int cubDataToRead,uint cOffset,uint eAction);
  1590. public abstract int GetCachedUGCCount();
  1591. public abstract ulong GetCachedUGCHandle(int iCachedContent);
  1592. public abstract ulong PublishWorkshopFile(string pchFile,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags,uint eWorkshopFileType);
  1593. public abstract ulong CreatePublishedFileUpdateRequest(ulong unPublishedFileId);
  1594. public abstract bool UpdatePublishedFileFile(ulong updateHandle,string pchFile);
  1595. public abstract bool UpdatePublishedFilePreviewFile(ulong updateHandle,string pchPreviewFile);
  1596. public abstract bool UpdatePublishedFileTitle(ulong updateHandle,string pchTitle);
  1597. public abstract bool UpdatePublishedFileDescription(ulong updateHandle,string pchDescription);
  1598. public abstract bool UpdatePublishedFileVisibility(ulong updateHandle,uint eVisibility);
  1599. public abstract bool UpdatePublishedFileTags(ulong updateHandle,ref SteamParamStringArray_t pTags);
  1600. public abstract ulong CommitPublishedFileUpdate(ulong updateHandle);
  1601. public abstract ulong GetPublishedFileDetails(ulong unPublishedFileId,uint unMaxSecondsOld);
  1602. public abstract ulong DeletePublishedFile(ulong unPublishedFileId);
  1603. public abstract ulong EnumerateUserPublishedFiles(uint unStartIndex);
  1604. public abstract ulong SubscribePublishedFile(ulong unPublishedFileId);
  1605. public abstract ulong EnumerateUserSubscribedFiles(uint unStartIndex);
  1606. public abstract ulong UnsubscribePublishedFile(ulong unPublishedFileId);
  1607. public abstract bool UpdatePublishedFileSetChangeDescription(ulong updateHandle,string pchChangeDescription);
  1608. public abstract ulong GetPublishedItemVoteDetails(ulong unPublishedFileId);
  1609. public abstract ulong UpdateUserPublishedItemVote(ulong unPublishedFileId,bool bVoteUp);
  1610. public abstract ulong GetUserPublishedItemVoteDetails(ulong unPublishedFileId);
  1611. public abstract ulong EnumerateUserSharedWorkshopFiles(ulong steamId,uint unStartIndex,ref SteamParamStringArray_t pRequiredTags,ref SteamParamStringArray_t pExcludedTags);
  1612. public abstract ulong PublishVideo(uint eVideoProvider,string pchVideoAccount,string pchVideoIdentifier,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags);
  1613. public abstract ulong SetUserPublishedFileAction(ulong unPublishedFileId,uint eAction);
  1614. public abstract ulong EnumeratePublishedFilesByUserAction(uint eAction,uint unStartIndex);
  1615. public abstract ulong EnumeratePublishedWorkshopFiles(uint eEnumerationType,uint unStartIndex,uint unCount,uint unDays,ref SteamParamStringArray_t pTags,ref SteamParamStringArray_t pUserTags);
  1616. public abstract ulong UGCDownloadToLocation(ulong hContent,string pchLocation,uint unPriority);
  1617. }
  1618. public abstract class ISteamUserStats
  1619. {
  1620. public abstract IntPtr GetIntPtr();
  1621. public abstract bool RequestCurrentStats();
  1622. public abstract bool GetStat(string pchName,ref int pData);
  1623. public abstract bool GetStat0(string pchName,ref float pData);
  1624. public abstract bool SetStat(string pchName,int nData);
  1625. public abstract bool SetStat0(string pchName,float fData);
  1626. public abstract bool UpdateAvgRateStat(string pchName,float flCountThisSession,double dSessionLength);
  1627. public abstract bool GetAchievement(string pchName,ref bool pbAchieved);
  1628. public abstract bool SetAchievement(string pchName);
  1629. public abstract bool ClearAchievement(string pchName);
  1630. public abstract bool GetAchievementAndUnlockTime(string pchName,ref bool pbAchieved,ref uint punUnlockTime);
  1631. public abstract bool StoreStats();
  1632. public abstract int GetAchievementIcon(string pchName);
  1633. public abstract string GetAchievementDisplayAttribute(string pchName,string pchKey);
  1634. public abstract bool IndicateAchievementProgress(string pchName,uint nCurProgress,uint nMaxProgress);
  1635. public abstract uint GetNumAchievements();
  1636. public abstract string GetAchievementName(uint iAchievement);
  1637. public abstract ulong RequestUserStats(ulong steamIDUser);
  1638. public abstract bool GetUserStat(ulong steamIDUser,string pchName,ref int pData);
  1639. public abstract bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData);
  1640. public abstract bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved);
  1641. public abstract bool GetUserAchievementAndUnlockTime(ulong steamIDUser,string pchName,ref bool pbAchieved,ref uint punUnlockTime);
  1642. public abstract bool ResetAllStats(bool bAchievementsToo);
  1643. public abstract ulong FindOrCreateLeaderboard(string pchLeaderboardName,uint eLeaderboardSortMethod,uint eLeaderboardDisplayType);
  1644. public abstract ulong FindLeaderboard(string pchLeaderboardName);
  1645. public abstract string GetLeaderboardName(ulong hSteamLeaderboard);
  1646. public abstract int GetLeaderboardEntryCount(ulong hSteamLeaderboard);
  1647. public abstract uint GetLeaderboardSortMethod(ulong hSteamLeaderboard);
  1648. public abstract uint GetLeaderboardDisplayType(ulong hSteamLeaderboard);
  1649. public abstract ulong DownloadLeaderboardEntries(ulong hSteamLeaderboard,uint eLeaderboardDataRequest,int nRangeStart,int nRangeEnd);
  1650. public abstract ulong DownloadLeaderboardEntriesForUsers(ulong hSteamLeaderboard,CSteamID [] prgUsers);
  1651. public abstract bool GetDownloadedLeaderboardEntry(ulong hSteamLeaderboardEntries,int index,ref LeaderboardEntry_t pLeaderboardEntry,ref int pDetails,int cDetailsMax);
  1652. public abstract ulong UploadLeaderboardScore(ulong hSteamLeaderboard,uint eLeaderboardUploadScoreMethod,int nScore,ref int pScoreDetails,int cScoreDetailsCount);
  1653. public abstract ulong AttachLeaderboardUGC(ulong hSteamLeaderboard,ulong hUGC);
  1654. public abstract ulong GetNumberOfCurrentPlayers();
  1655. public abstract ulong RequestGlobalAchievementPercentages();
  1656. public abstract int GetMostAchievedAchievementInfo(string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved);
  1657. public abstract int GetNextMostAchievedAchievementInfo(int iIteratorPrevious,string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved);
  1658. public abstract bool GetAchievementAchievedPercent(string pchName,ref float pflPercent);
  1659. public abstract ulong RequestGlobalStats(int nHistoryDays);
  1660. public abstract bool GetGlobalStat(string pchStatName,ref long pData);
  1661. public abstract bool GetGlobalStat0(string pchStatName,ref double pData);
  1662. public abstract int GetGlobalStatHistory(string pchStatName,long [] pData);
  1663. public abstract int GetGlobalStatHistory0(string pchStatName,double [] pData);
  1664. }
  1665. public abstract class ISteamApps
  1666. {
  1667. public abstract IntPtr GetIntPtr();
  1668. public abstract bool BIsSubscribed();
  1669. public abstract bool BIsLowViolence();
  1670. public abstract bool BIsCybercafe();
  1671. public abstract bool BIsVACBanned();
  1672. public abstract string GetCurrentGameLanguage();
  1673. public abstract string GetAvailableGameLanguages();
  1674. public abstract bool BIsSubscribedApp(uint appID);
  1675. public abstract bool BIsDlcInstalled(uint appID);
  1676. public abstract uint GetEarliestPurchaseUnixTime(uint nAppID);
  1677. public abstract bool BIsSubscribedFromFreeWeekend();
  1678. public abstract int GetDLCCount();
  1679. public abstract bool BGetDLCDataByIndex(int iDLC,ref uint pAppID,ref bool pbAvailable,string pchName,int cchNameBufferSize);
  1680. public abstract void InstallDLC(uint nAppID);
  1681. public abstract void UninstallDLC(uint nAppID);
  1682. public abstract void RequestAppProofOfPurchaseKey(uint nAppID);
  1683. public abstract bool GetCurrentBetaName(string pchName,int cchNameBufferSize);
  1684. public abstract bool MarkContentCorrupt(bool bMissingFilesOnly);
  1685. public abstract uint GetInstalledDepots(uint appID,ref uint pvecDepots,uint cMaxDepots);
  1686. public abstract uint GetAppInstallDir(uint appID,string pchFolder,uint cchFolderBufferSize);
  1687. public abstract bool BIsAppInstalled(uint appID);
  1688. public abstract ulong GetAppOwner();
  1689. public abstract string GetLaunchQueryParam(string pchKey);
  1690. public abstract bool GetDlcDownloadProgress(uint nAppID,ref ulong punBytesDownloaded,ref ulong punBytesTotal);
  1691. public abstract int GetAppBuildId();
  1692. }
  1693. public abstract class ISteamNetworking
  1694. {
  1695. public abstract IntPtr GetIntPtr();
  1696. public abstract bool SendP2PPacket(ulong steamIDRemote,IntPtr pubData,uint cubData,uint eP2PSendType,int nChannel);
  1697. public abstract bool IsP2PPacketAvailable(ref uint pcubMsgSize,int nChannel);
  1698. public abstract bool ReadP2PPacket(IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref CSteamID psteamIDRemote,int nChannel);
  1699. public abstract bool AcceptP2PSessionWithUser(ulong steamIDRemote);
  1700. public abstract bool CloseP2PSessionWithUser(ulong steamIDRemote);
  1701. public abstract bool CloseP2PChannelWithUser(ulong steamIDRemote,int nChannel);
  1702. public abstract bool GetP2PSessionState(ulong steamIDRemote,ref P2PSessionState_t pConnectionState);
  1703. public abstract bool AllowP2PPacketRelay(bool bAllow);
  1704. public abstract uint CreateListenSocket(int nVirtualP2PPort,uint nIP,char nPort,bool bAllowUseOfPacketRelay);
  1705. public abstract uint CreateP2PConnectionSocket(ulong steamIDTarget,int nVirtualPort,int nTimeoutSec,bool bAllowUseOfPacketRelay);
  1706. public abstract uint CreateConnectionSocket(uint nIP,char nPort,int nTimeoutSec);
  1707. public abstract bool DestroySocket(uint hSocket,bool bNotifyRemoteEnd);
  1708. public abstract bool DestroyListenSocket(uint hSocket,bool bNotifyRemoteEnd);
  1709. public abstract bool SendDataOnSocket(uint hSocket,IntPtr pubData,uint cubData,bool bReliable);
  1710. public abstract bool IsDataAvailableOnSocket(uint hSocket,ref uint pcubMsgSize);
  1711. public abstract bool RetrieveDataFromSocket(uint hSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize);
  1712. public abstract bool IsDataAvailable(uint hListenSocket,ref uint pcubMsgSize,ref uint phSocket);
  1713. public abstract bool RetrieveData(uint hListenSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref uint phSocket);
  1714. public abstract bool GetSocketInfo(uint hSocket,ref CSteamID pSteamIDRemote,ref int peSocketStatus,ref uint punIPRemote,ref char punPortRemote);
  1715. public abstract bool GetListenSocketInfo(uint hListenSocket,ref uint pnIP,ref char pnPort);
  1716. public abstract uint GetSocketConnectionType(uint hSocket);
  1717. public abstract int GetMaxPacketSize(uint hSocket);
  1718. }
  1719. public abstract class ISteamScreenshots
  1720. {
  1721. public abstract IntPtr GetIntPtr();
  1722. public abstract uint WriteScreenshot(IntPtr pubRGB,uint cubRGB,int nWidth,int nHeight);
  1723. public abstract uint AddScreenshotToLibrary(string pchFilename,string pchThumbnailFilename,int nWidth,int nHeight);
  1724. public abstract void TriggerScreenshot();
  1725. public abstract void HookScreenshots(bool bHook);
  1726. public abstract bool SetLocation(uint hScreenshot,string pchLocation);
  1727. public abstract bool TagUser(uint hScreenshot,ulong steamID);
  1728. public abstract bool TagPublishedFile(uint hScreenshot,ulong unPublishedFileID);
  1729. }
  1730. public abstract class ISteamMusic
  1731. {
  1732. public abstract IntPtr GetIntPtr();
  1733. public abstract bool BIsEnabled();
  1734. public abstract bool BIsPlaying();
  1735. public abstract int GetPlaybackStatus();
  1736. public abstract void Play();
  1737. public abstract void Pause();
  1738. public abstract void PlayPrevious();
  1739. public abstract void PlayNext();
  1740. public abstract void SetVolume(float flVolume);
  1741. public abstract float GetVolume();
  1742. }
  1743. public abstract class ISteamMusicRemote
  1744. {
  1745. public abstract IntPtr GetIntPtr();
  1746. public abstract bool RegisterSteamMusicRemote(string pchName);
  1747. public abstract bool DeregisterSteamMusicRemote();
  1748. public abstract bool BIsCurrentMusicRemote();
  1749. public abstract bool BActivationSuccess(bool bValue);
  1750. public abstract bool SetDisplayName(string pchDisplayName);
  1751. public abstract bool SetPNGIcon_64x64(IntPtr pvBuffer,uint cbBufferLength);
  1752. public abstract bool EnablePlayPrevious(bool bValue);
  1753. public abstract bool EnablePlayNext(bool bValue);
  1754. public abstract bool EnableShuffled(bool bValue);
  1755. public abstract bool EnableLooped(bool bValue);
  1756. public abstract bool EnableQueue(bool bValue);
  1757. public abstract bool EnablePlaylists(bool bValue);
  1758. public abstract bool UpdatePlaybackStatus(int nStatus);
  1759. public abstract bool UpdateShuffled(bool bValue);
  1760. public abstract bool UpdateLooped(bool bValue);
  1761. public abstract bool UpdateVolume(float flValue);
  1762. public abstract bool CurrentEntryWillChange();
  1763. public abstract bool CurrentEntryIsAvailable(bool bAvailable);
  1764. public abstract bool UpdateCurrentEntryText(string pchText);
  1765. public abstract bool UpdateCurrentEntryElapsedSeconds(int nValue);
  1766. public abstract bool UpdateCurrentEntryCoverArt(IntPtr pvBuffer,uint cbBufferLength);
  1767. public abstract bool CurrentEntryDidChange();
  1768. public abstract bool QueueWillChange();
  1769. public abstract bool ResetQueueEntries();
  1770. public abstract bool SetQueueEntry(int nID,int nPosition,string pchEntryText);
  1771. public abstract bool SetCurrentQueueEntry(int nID);
  1772. public abstract bool QueueDidChange();
  1773. public abstract bool PlaylistWillChange();
  1774. public abstract bool ResetPlaylistEntries();
  1775. public abstract bool SetPlaylistEntry(int nID,int nPosition,string pchEntryText);
  1776. public abstract bool SetCurrentPlaylistEntry(int nID);
  1777. public abstract bool PlaylistDidChange();
  1778. }
  1779. public abstract class ISteamHTTP
  1780. {
  1781. public abstract IntPtr GetIntPtr();
  1782. public abstract uint CreateHTTPRequest(uint eHTTPRequestMethod,string pchAbsoluteURL);
  1783. public abstract bool SetHTTPRequestContextValue(uint hRequest,ulong ulContextValue);
  1784. public abstract bool SetHTTPRequestNetworkActivityTimeout(uint hRequest,uint unTimeoutSeconds);
  1785. public abstract bool SetHTTPRequestHeaderValue(uint hRequest,string pchHeaderName,string pchHeaderValue);
  1786. public abstract bool SetHTTPRequestGetOrPostParameter(uint hRequest,string pchParamName,string pchParamValue);
  1787. public abstract bool SendHTTPRequest(uint hRequest,ref ulong pCallHandle);
  1788. public abstract bool SendHTTPRequestAndStreamResponse(uint hRequest,ref ulong pCallHandle);
  1789. public abstract bool DeferHTTPRequest(uint hRequest);
  1790. public abstract bool PrioritizeHTTPRequest(uint hRequest);
  1791. public abstract bool GetHTTPResponseHeaderSize(uint hRequest,string pchHeaderName,ref uint unResponseHeaderSize);
  1792. public abstract bool GetHTTPResponseHeaderValue(uint hRequest,string pchHeaderName,IntPtr pHeaderValueBuffer,uint unBufferSize);
  1793. public abstract bool GetHTTPResponseBodySize(uint hRequest,ref uint unBodySize);
  1794. public abstract bool GetHTTPResponseBodyData(uint hRequest,IntPtr pBodyDataBuffer,uint unBufferSize);
  1795. public abstract bool GetHTTPStreamingResponseBodyData(uint hRequest,uint cOffset,IntPtr pBodyDataBuffer,uint unBufferSize);
  1796. public abstract bool ReleaseHTTPRequest(uint hRequest);
  1797. public abstract bool GetHTTPDownloadProgressPct(uint hRequest,ref float pflPercentOut);
  1798. public abstract bool SetHTTPRequestRawPostBody(uint hRequest,string pchContentType,IntPtr pubBody,uint unBodyLen);
  1799. public abstract uint CreateCookieContainer(bool bAllowResponsesToModify);
  1800. public abstract bool ReleaseCookieContainer(uint hCookieContainer);
  1801. public abstract bool SetCookie(uint hCookieContainer,string pchHost,string pchUrl,string pchCookie);
  1802. public abstract bool SetHTTPRequestCookieContainer(uint hRequest,uint hCookieContainer);
  1803. public abstract bool SetHTTPRequestUserAgentInfo(uint hRequest,string pchUserAgentInfo);
  1804. public abstract bool SetHTTPRequestRequiresVerifiedCertificate(uint hRequest,bool bRequireVerifiedCertificate);
  1805. public abstract bool SetHTTPRequestAbsoluteTimeoutMS(uint hRequest,uint unMilliseconds);
  1806. public abstract bool GetHTTPRequestWasTimedOut(uint hRequest,ref bool pbWasTimedOut);
  1807. }
  1808. public abstract class ISteamUnifiedMessages
  1809. {
  1810. public abstract IntPtr GetIntPtr();
  1811. public abstract ulong SendMethod(string pchServiceMethod,IntPtr pRequestBuffer,uint unRequestBufferSize,ulong unContext);
  1812. public abstract bool GetMethodResponseInfo(ulong hHandle,ref uint punResponseSize,ref uint peResult);
  1813. public abstract bool GetMethodResponseData(ulong hHandle,IntPtr pResponseBuffer,uint unResponseBufferSize,bool bAutoRelease);
  1814. public abstract bool ReleaseMethod(ulong hHandle);
  1815. public abstract bool SendNotification(string pchServiceNotification,IntPtr pNotificationBuffer,uint unNotificationBufferSize);
  1816. }
  1817. public abstract class ISteamController
  1818. {
  1819. public abstract IntPtr GetIntPtr();
  1820. public abstract bool Init();
  1821. public abstract bool Shutdown();
  1822. public abstract void RunFrame();
  1823. public abstract int GetConnectedControllers(ref ulong handlesOut);
  1824. public abstract bool ShowBindingPanel(ulong controllerHandle);
  1825. public abstract ulong GetActionSetHandle(string pszActionSetName);
  1826. public abstract void ActivateActionSet(ulong controllerHandle,ulong actionSetHandle);
  1827. public abstract ulong GetCurrentActionSet(ulong controllerHandle);
  1828. public abstract ulong GetDigitalActionHandle(string pszActionName);
  1829. public abstract ControllerDigitalActionData_t GetDigitalActionData(ulong controllerHandle,ulong digitalActionHandle);
  1830. public abstract int GetDigitalActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong digitalActionHandle,ref uint originsOut);
  1831. public abstract ulong GetAnalogActionHandle(string pszActionName);
  1832. public abstract ControllerAnalogActionData_t GetAnalogActionData(ulong controllerHandle,ulong analogActionHandle);
  1833. public abstract int GetAnalogActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong analogActionHandle,ref uint originsOut);
  1834. public abstract void StopAnalogActionMomentum(ulong controllerHandle,ulong eAction);
  1835. public abstract void TriggerHapticPulse(ulong controllerHandle,uint eTargetPad,char usDurationMicroSec);
  1836. }
  1837. public abstract class ISteamUGC
  1838. {
  1839. public abstract IntPtr GetIntPtr();
  1840. public abstract ulong CreateQueryUserUGCRequest(uint unAccountID,uint eListType,uint eMatchingUGCType,uint eSortOrder,uint nCreatorAppID,uint nConsumerAppID,uint unPage);
  1841. public abstract ulong CreateQueryAllUGCRequest(uint eQueryType,uint eMatchingeMatchingUGCTypeFileType,uint nCreatorAppID,uint nConsumerAppID,uint unPage);
  1842. public abstract ulong CreateQueryUGCDetailsRequest(ref ulong pvecPublishedFileID,uint unNumPublishedFileIDs);
  1843. public abstract ulong SendQueryUGCRequest(ulong handle);
  1844. public abstract bool GetQueryUGCResult(ulong handle,uint index,ref SteamUGCDetails_t pDetails);
  1845. public abstract bool GetQueryUGCPreviewURL(ulong handle,uint index,string pchURL,uint cchURLSize);
  1846. public abstract bool GetQueryUGCMetadata(ulong handle,uint index,string pchMetadata,uint cchMetadatasize);
  1847. public abstract bool GetQueryUGCChildren(ulong handle,uint index,ref ulong pvecPublishedFileID,uint cMaxEntries);
  1848. public abstract bool GetQueryUGCStatistic(ulong handle,uint index,uint eStatType,ref uint pStatValue);
  1849. public abstract uint GetQueryUGCNumAdditionalPreviews(ulong handle,uint index);
  1850. public abstract bool GetQueryUGCAdditionalPreview(ulong handle,uint index,uint previewIndex,string pchURLOrVideoID,uint cchURLSize,ref bool pbIsImage);
  1851. public abstract uint GetQueryUGCNumKeyValueTags(ulong handle,uint index);
  1852. public abstract bool GetQueryUGCKeyValueTag(ulong handle,uint index,uint keyValueTagIndex,string pchKey,uint cchKeySize,string pchValue,uint cchValueSize);
  1853. public abstract bool ReleaseQueryUGCRequest(ulong handle);
  1854. public abstract bool AddRequiredTag(ulong handle,string pTagName);
  1855. public abstract bool AddExcludedTag(ulong handle,string pTagName);
  1856. public abstract bool SetReturnKeyValueTags(ulong handle,bool bReturnKeyValueTags);
  1857. public abstract bool SetReturnLongDescription(ulong handle,bool bReturnLongDescription);
  1858. public abstract bool SetReturnMetadata(ulong handle,bool bReturnMetadata);
  1859. public abstract bool SetReturnChildren(ulong handle,bool bReturnChildren);
  1860. public abstract bool SetReturnAdditionalPreviews(ulong handle,bool bReturnAdditionalPreviews);
  1861. public abstract bool SetReturnTotalOnly(ulong handle,bool bReturnTotalOnly);
  1862. public abstract bool SetLanguage(ulong handle,string pchLanguage);
  1863. public abstract bool SetAllowCachedResponse(ulong handle,uint unMaxAgeSeconds);
  1864. public abstract bool SetCloudFileNameFilter(ulong handle,string pMatchCloudFileName);
  1865. public abstract bool SetMatchAnyTag(ulong handle,bool bMatchAnyTag);
  1866. public abstract bool SetSearchText(ulong handle,string pSearchText);
  1867. public abstract bool SetRankedByTrendDays(ulong handle,uint unDays);
  1868. public abstract bool AddRequiredKeyValueTag(ulong handle,string pKey,string pValue);
  1869. public abstract ulong RequestUGCDetails(ulong nPublishedFileID,uint unMaxAgeSeconds);
  1870. public abstract ulong CreateItem(uint nConsumerAppId,uint eFileType);
  1871. public abstract ulong StartItemUpdate(uint nConsumerAppId,ulong nPublishedFileID);
  1872. public abstract bool SetItemTitle(ulong handle,string pchTitle);
  1873. public abstract bool SetItemDescription(ulong handle,string pchDescription);
  1874. public abstract bool SetItemUpdateLanguage(ulong handle,string pchLanguage);
  1875. public abstract bool SetItemMetadata(ulong handle,string pchMetaData);
  1876. public abstract bool SetItemVisibility(ulong handle,uint eVisibility);
  1877. public abstract bool SetItemTags(ulong updateHandle,ref SteamParamStringArray_t pTags);
  1878. public abstract bool SetItemContent(ulong handle,string pszContentFolder);
  1879. public abstract bool SetItemPreview(ulong handle,string pszPreviewFile);
  1880. public abstract bool RemoveItemKeyValueTags(ulong handle,string pchKey);
  1881. public abstract bool AddItemKeyValueTag(ulong handle,string pchKey,string pchValue);
  1882. public abstract ulong SubmitItemUpdate(ulong handle,string pchChangeNote);
  1883. public abstract uint GetItemUpdateProgress(ulong handle,ref ulong punBytesProcessed,ref ulong punBytesTotal);
  1884. public abstract ulong SetUserItemVote(ulong nPublishedFileID,bool bVoteUp);
  1885. public abstract ulong GetUserItemVote(ulong nPublishedFileID);
  1886. public abstract ulong AddItemToFavorites(uint nAppId,ulong nPublishedFileID);
  1887. public abstract ulong RemoveItemFromFavorites(uint nAppId,ulong nPublishedFileID);
  1888. public abstract ulong SubscribeItem(ulong nPublishedFileID);
  1889. public abstract ulong UnsubscribeItem(ulong nPublishedFileID);
  1890. public abstract uint GetNumSubscribedItems();
  1891. public abstract uint GetSubscribedItems(ref ulong pvecPublishedFileID,uint cMaxEntries);
  1892. public abstract uint GetItemState(ulong nPublishedFileID);
  1893. public abstract bool GetItemInstallInfo(ulong nPublishedFileID,ref ulong punSizeOnDisk,string pchFolder,uint cchFolderSize,ref uint punTimeStamp);
  1894. public abstract bool GetItemDownloadInfo(ulong nPublishedFileID,ref ulong punBytesDownloaded,ref ulong punBytesTotal);
  1895. public abstract bool DownloadItem(ulong nPublishedFileID,bool bHighPriority);
  1896. public abstract bool BInitWorkshopForGameServer(uint unWorkshopDepotID,string pszFolder);
  1897. public abstract void SuspendDownloads(bool bSuspend);
  1898. }
  1899. public abstract class ISteamAppList
  1900. {
  1901. public abstract IntPtr GetIntPtr();
  1902. public abstract uint GetNumInstalledApps();
  1903. public abstract uint GetInstalledApps(ref uint pvecAppID,uint unMaxAppIDs);
  1904. public abstract int GetAppName(uint nAppID,string pchName,int cchNameMax);
  1905. public abstract int GetAppInstallDir(uint nAppID,string pchDirectory,int cchNameMax);
  1906. public abstract int GetAppBuildId(uint nAppID);
  1907. }
  1908. public abstract class ISteamHTMLSurface
  1909. {
  1910. public abstract IntPtr GetIntPtr();
  1911. public abstract void DestructISteamHTMLSurface();
  1912. public abstract bool Init();
  1913. public abstract bool Shutdown();
  1914. public abstract ulong CreateBrowser(string pchUserAgent,string pchUserCSS);
  1915. public abstract void RemoveBrowser(uint unBrowserHandle);
  1916. public abstract void LoadURL(uint unBrowserHandle,string pchURL,string pchPostData);
  1917. public abstract void SetSize(uint unBrowserHandle,uint unWidth,uint unHeight);
  1918. public abstract void StopLoad(uint unBrowserHandle);
  1919. public abstract void Reload(uint unBrowserHandle);
  1920. public abstract void GoBack(uint unBrowserHandle);
  1921. public abstract void GoForward(uint unBrowserHandle);
  1922. public abstract void AddHeader(uint unBrowserHandle,string pchKey,string pchValue);
  1923. public abstract void ExecuteJavascript(uint unBrowserHandle,string pchScript);
  1924. public abstract void MouseUp(uint unBrowserHandle,uint eMouseButton);
  1925. public abstract void MouseDown(uint unBrowserHandle,uint eMouseButton);
  1926. public abstract void MouseDoubleClick(uint unBrowserHandle,uint eMouseButton);
  1927. public abstract void MouseMove(uint unBrowserHandle,int x,int y);
  1928. public abstract void MouseWheel(uint unBrowserHandle,int nDelta);
  1929. public abstract void KeyDown(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers);
  1930. public abstract void KeyUp(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers);
  1931. public abstract void KeyChar(uint unBrowserHandle,uint cUnicodeChar,uint eHTMLKeyModifiers);
  1932. public abstract void SetHorizontalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll);
  1933. public abstract void SetVerticalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll);
  1934. public abstract void SetKeyFocus(uint unBrowserHandle,bool bHasKeyFocus);
  1935. public abstract void ViewSource(uint unBrowserHandle);
  1936. public abstract void CopyToClipboard(uint unBrowserHandle);
  1937. public abstract void PasteFromClipboard(uint unBrowserHandle);
  1938. public abstract void Find(uint unBrowserHandle,string pchSearchStr,bool bCurrentlyInFind,bool bReverse);
  1939. public abstract void StopFind(uint unBrowserHandle);
  1940. public abstract void GetLinkAtPosition(uint unBrowserHandle,int x,int y);
  1941. public abstract void SetCookie(string pchHostname,string pchKey,string pchValue,string pchPath,ulong nExpires,bool bSecure,bool bHTTPOnly);
  1942. public abstract void SetPageScaleFactor(uint unBrowserHandle,float flZoom,int nPointX,int nPointY);
  1943. public abstract void SetBackgroundMode(uint unBrowserHandle,bool bBackgroundMode);
  1944. public abstract void AllowStartRequest(uint unBrowserHandle,bool bAllowed);
  1945. public abstract void JSDialogResponse(uint unBrowserHandle,bool bResult);
  1946. public abstract void FileLoadDialogResponse(uint unBrowserHandle,string pchSelectedFiles);
  1947. }
  1948. public abstract class ISteamInventory
  1949. {
  1950. public abstract IntPtr GetIntPtr();
  1951. public abstract uint GetResultStatus(int resultHandle);
  1952. public abstract bool GetResultItems(int resultHandle,out SteamItemDetails_t [] pOutItemsArray);
  1953. public abstract uint GetResultTimestamp(int resultHandle);
  1954. public abstract bool CheckResultSteamID(int resultHandle,ulong steamIDExpected);
  1955. public abstract void DestroyResult(int resultHandle);
  1956. public abstract bool GetAllItems(ref int pResultHandle);
  1957. public abstract bool GetItemsByID(ref int pResultHandle,ulong [] pInstanceIDs);
  1958. public abstract bool SerializeResult(int resultHandle,IntPtr pOutBuffer,ref uint punOutBufferSize);
  1959. public abstract bool DeserializeResult(ref int pOutResultHandle,IntPtr pBuffer,uint unBufferSize,bool bRESERVED_MUST_BE_FALSE);
  1960. public abstract bool GenerateItems(ref int pResultHandle,int [] pArrayItemDefs,uint [] punArrayQuantity);
  1961. public abstract bool GrantPromoItems(ref int pResultHandle);
  1962. public abstract bool AddPromoItem(ref int pResultHandle,int itemDef);
  1963. public abstract bool AddPromoItems(ref int pResultHandle,int [] pArrayItemDefs);
  1964. public abstract bool ConsumeItem(ref int pResultHandle,ulong itemConsume,uint unQuantity);
  1965. public abstract bool ExchangeItems(ref int pResultHandle,int [] pArrayGenerate,uint [] punArrayGenerateQuantity,ulong [] pArrayDestroy,uint [] punArrayDestroyQuantity);
  1966. public abstract bool TransferItemQuantity(ref int pResultHandle,ulong itemIdSource,uint unQuantity,ulong itemIdDest);
  1967. public abstract void SendItemDropHeartbeat();
  1968. public abstract bool TriggerItemDrop(ref int pResultHandle,int dropListDefinition);
  1969. public abstract bool TradeItems(ref int pResultHandle,ulong steamIDTradePartner,ulong [] pArrayGive,uint [] pArrayGiveQuantity,ulong [] pArrayGet,uint [] pArrayGetQuantity);
  1970. public abstract bool LoadItemDefinitions();
  1971. public abstract bool GetItemDefinitionIDs(out int [] pItemDefIDs);
  1972. public abstract bool GetItemDefinitionProperty(int iDefinition,string pchPropertyName,out string pchValueBuffer);
  1973. }
  1974. public abstract class ISteamVideo
  1975. {
  1976. public abstract IntPtr GetIntPtr();
  1977. public abstract void GetVideoURL(uint unVideoAppID);
  1978. public abstract bool IsBroadcasting(ref int pnNumViewers);
  1979. }
  1980. public abstract class ISteamGameServer
  1981. {
  1982. public abstract IntPtr GetIntPtr();
  1983. public abstract bool InitGameServer(uint unIP,char usGamePort,char usQueryPort,uint unFlags,uint nGameAppId,string pchVersionString);
  1984. public abstract void SetProduct(string pszProduct);
  1985. public abstract void SetGameDescription(string pszGameDescription);
  1986. public abstract void SetModDir(string pszModDir);
  1987. public abstract void SetDedicatedServer(bool bDedicated);
  1988. public abstract void LogOn(string pszToken);
  1989. public abstract void LogOnAnonymous();
  1990. public abstract void LogOff();
  1991. public abstract bool BLoggedOn();
  1992. public abstract bool BSecure();
  1993. public abstract ulong GetSteamID();
  1994. public abstract bool WasRestartRequested();
  1995. public abstract void SetMaxPlayerCount(int cPlayersMax);
  1996. public abstract void SetBotPlayerCount(int cBotplayers);
  1997. public abstract void SetServerName(string pszServerName);
  1998. public abstract void SetMapName(string pszMapName);
  1999. public abstract void SetPasswordProtected(bool bPasswordProtected);
  2000. public abstract void SetSpectatorPort(char unSpectatorPort);
  2001. public abstract void SetSpectatorServerName(string pszSpectatorServerName);
  2002. public abstract void ClearAllKeyValues();
  2003. public abstract void SetKeyValue(string pKey,string pValue);
  2004. public abstract void SetGameTags(string pchGameTags);
  2005. public abstract void SetGameData(string pchGameData);
  2006. public abstract void SetRegion(string pszRegion);
  2007. public abstract bool SendUserConnectAndAuthenticate(uint unIPClient,IntPtr pvAuthBlob,uint cubAuthBlobSize,ref CSteamID pSteamIDUser);
  2008. public abstract ulong CreateUnauthenticatedUserConnection();
  2009. public abstract void SendUserDisconnect(ulong steamIDUser);
  2010. public abstract bool BUpdateUserData(ulong steamIDUser,string pchPlayerName,uint uScore);
  2011. public abstract uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket);
  2012. public abstract uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID);
  2013. public abstract void EndAuthSession(ulong steamID);
  2014. public abstract void CancelAuthTicket(uint hAuthTicket);
  2015. public abstract uint UserHasLicenseForApp(ulong steamID,uint appID);
  2016. public abstract bool RequestUserGroupStatus(ulong steamIDUser,ulong steamIDGroup);
  2017. public abstract void GetGameplayStats();
  2018. public abstract ulong GetServerReputation();
  2019. public abstract uint GetPublicIP();
  2020. public abstract bool HandleIncomingPacket(IntPtr pData,int cbData,uint srcIP,char srcPort);
  2021. public abstract int GetNextOutgoingPacket(IntPtr pOut,int cbMaxOut,ref uint pNetAdr,ref char pPort);
  2022. public abstract void EnableHeartbeats(bool bActive);
  2023. public abstract void SetHeartbeatInterval(int iHeartbeatInterval);
  2024. public abstract void ForceHeartbeat();
  2025. public abstract ulong AssociateWithClan(ulong steamIDClan);
  2026. public abstract ulong ComputeNewPlayerCompatibility(ulong steamIDNewPlayer);
  2027. }
  2028. public abstract class ISteamGameServerStats
  2029. {
  2030. public abstract IntPtr GetIntPtr();
  2031. public abstract ulong RequestUserStats(ulong steamIDUser);
  2032. public abstract bool GetUserStat(ulong steamIDUser,string pchName,ref int pData);
  2033. public abstract bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData);
  2034. public abstract bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved);
  2035. public abstract bool SetUserStat(ulong steamIDUser,string pchName,int nData);
  2036. public abstract bool SetUserStat0(ulong steamIDUser,string pchName,float fData);
  2037. public abstract bool UpdateUserAvgRateStat(ulong steamIDUser,string pchName,float flCountThisSession,double dSessionLength);
  2038. public abstract bool SetUserAchievement(ulong steamIDUser,string pchName);
  2039. public abstract bool ClearUserAchievement(ulong steamIDUser,string pchName);
  2040. public abstract ulong StoreUserStats(ulong steamIDUser);
  2041. }
  2042. public class CSteamClient : ISteamClient
  2043. {
  2044. public CSteamClient(IntPtr SteamClient)
  2045. {
  2046. m_pSteamClient = SteamClient;
  2047. }
  2048. IntPtr m_pSteamClient;
  2049. public override IntPtr GetIntPtr() { return m_pSteamClient; }
  2050. private void CheckIfUsable()
  2051. {
  2052. if (m_pSteamClient == IntPtr.Zero)
  2053. {
  2054. throw new Exception("Steam Pointer not configured");
  2055. }
  2056. }
  2057. public override uint CreateSteamPipe()
  2058. {
  2059. CheckIfUsable();
  2060. uint result = NativeEntrypoints.SteamAPI_ISteamClient_CreateSteamPipe(m_pSteamClient);
  2061. return result;
  2062. }
  2063. public override bool BReleaseSteamPipe(uint hSteamPipe)
  2064. {
  2065. CheckIfUsable();
  2066. bool result = NativeEntrypoints.SteamAPI_ISteamClient_BReleaseSteamPipe(m_pSteamClient,hSteamPipe);
  2067. return result;
  2068. }
  2069. public override uint ConnectToGlobalUser(uint hSteamPipe)
  2070. {
  2071. CheckIfUsable();
  2072. uint result = NativeEntrypoints.SteamAPI_ISteamClient_ConnectToGlobalUser(m_pSteamClient,hSteamPipe);
  2073. return result;
  2074. }
  2075. public override uint CreateLocalUser(ref uint phSteamPipe,uint eAccountType)
  2076. {
  2077. CheckIfUsable();
  2078. phSteamPipe = 0;
  2079. uint result = NativeEntrypoints.SteamAPI_ISteamClient_CreateLocalUser(m_pSteamClient,ref phSteamPipe,eAccountType);
  2080. return result;
  2081. }
  2082. public override void ReleaseUser(uint hSteamPipe,uint hUser)
  2083. {
  2084. CheckIfUsable();
  2085. NativeEntrypoints.SteamAPI_ISteamClient_ReleaseUser(m_pSteamClient,hSteamPipe,hUser);
  2086. }
  2087. public override ISteamUser GetISteamUser(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2088. {
  2089. CheckIfUsable();
  2090. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUser(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2091. return (ISteamUser) Marshal.PtrToStructure(result, typeof(ISteamUser));
  2092. }
  2093. public override ISteamGameServer GetISteamGameServer(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2094. {
  2095. CheckIfUsable();
  2096. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamGameServer(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2097. return (ISteamGameServer) Marshal.PtrToStructure(result, typeof(ISteamGameServer));
  2098. }
  2099. public override void SetLocalIPBinding(uint unIP,char usPort)
  2100. {
  2101. CheckIfUsable();
  2102. NativeEntrypoints.SteamAPI_ISteamClient_SetLocalIPBinding(m_pSteamClient,unIP,usPort);
  2103. }
  2104. public override ISteamFriends GetISteamFriends(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2105. {
  2106. CheckIfUsable();
  2107. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamFriends(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2108. return (ISteamFriends) Marshal.PtrToStructure(result, typeof(ISteamFriends));
  2109. }
  2110. public override ISteamUtils GetISteamUtils(uint hSteamPipe,string pchVersion)
  2111. {
  2112. CheckIfUsable();
  2113. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUtils(m_pSteamClient,hSteamPipe,pchVersion);
  2114. return (ISteamUtils) Marshal.PtrToStructure(result, typeof(ISteamUtils));
  2115. }
  2116. public override ISteamMatchmaking GetISteamMatchmaking(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2117. {
  2118. CheckIfUsable();
  2119. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMatchmaking(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2120. return (ISteamMatchmaking) Marshal.PtrToStructure(result, typeof(ISteamMatchmaking));
  2121. }
  2122. public override ISteamMatchmakingServers GetISteamMatchmakingServers(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2123. {
  2124. CheckIfUsable();
  2125. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMatchmakingServers(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2126. return (ISteamMatchmakingServers) Marshal.PtrToStructure(result, typeof(ISteamMatchmakingServers));
  2127. }
  2128. public override IntPtr GetISteamGenericInterface(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2129. {
  2130. CheckIfUsable();
  2131. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamGenericInterface(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2132. return (IntPtr) Marshal.PtrToStructure(result, typeof(IntPtr));
  2133. }
  2134. public override ISteamUserStats GetISteamUserStats(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2135. {
  2136. CheckIfUsable();
  2137. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUserStats(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2138. return (ISteamUserStats) Marshal.PtrToStructure(result, typeof(ISteamUserStats));
  2139. }
  2140. public override ISteamGameServerStats GetISteamGameServerStats(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2141. {
  2142. CheckIfUsable();
  2143. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamGameServerStats(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2144. return (ISteamGameServerStats) Marshal.PtrToStructure(result, typeof(ISteamGameServerStats));
  2145. }
  2146. public override ISteamApps GetISteamApps(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2147. {
  2148. CheckIfUsable();
  2149. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamApps(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2150. return (ISteamApps) Marshal.PtrToStructure(result, typeof(ISteamApps));
  2151. }
  2152. public override ISteamNetworking GetISteamNetworking(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2153. {
  2154. CheckIfUsable();
  2155. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamNetworking(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2156. return (ISteamNetworking) Marshal.PtrToStructure(result, typeof(ISteamNetworking));
  2157. }
  2158. public override ISteamRemoteStorage GetISteamRemoteStorage(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2159. {
  2160. CheckIfUsable();
  2161. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamRemoteStorage(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2162. return (ISteamRemoteStorage) Marshal.PtrToStructure(result, typeof(ISteamRemoteStorage));
  2163. }
  2164. public override ISteamScreenshots GetISteamScreenshots(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2165. {
  2166. CheckIfUsable();
  2167. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamScreenshots(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2168. return (ISteamScreenshots) Marshal.PtrToStructure(result, typeof(ISteamScreenshots));
  2169. }
  2170. public override void RunFrame()
  2171. {
  2172. CheckIfUsable();
  2173. NativeEntrypoints.SteamAPI_ISteamClient_RunFrame(m_pSteamClient);
  2174. }
  2175. public override uint GetIPCCallCount()
  2176. {
  2177. CheckIfUsable();
  2178. uint result = NativeEntrypoints.SteamAPI_ISteamClient_GetIPCCallCount(m_pSteamClient);
  2179. return result;
  2180. }
  2181. public override void SetWarningMessageHook(IntPtr pFunction)
  2182. {
  2183. CheckIfUsable();
  2184. NativeEntrypoints.SteamAPI_ISteamClient_SetWarningMessageHook(m_pSteamClient,pFunction);
  2185. }
  2186. public override bool BShutdownIfAllPipesClosed()
  2187. {
  2188. CheckIfUsable();
  2189. bool result = NativeEntrypoints.SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(m_pSteamClient);
  2190. return result;
  2191. }
  2192. public override ISteamHTTP GetISteamHTTP(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2193. {
  2194. CheckIfUsable();
  2195. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamHTTP(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2196. return (ISteamHTTP) Marshal.PtrToStructure(result, typeof(ISteamHTTP));
  2197. }
  2198. public override ISteamUnifiedMessages GetISteamUnifiedMessages(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2199. {
  2200. CheckIfUsable();
  2201. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUnifiedMessages(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2202. return (ISteamUnifiedMessages) Marshal.PtrToStructure(result, typeof(ISteamUnifiedMessages));
  2203. }
  2204. public override ISteamController GetISteamController(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2205. {
  2206. CheckIfUsable();
  2207. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamController(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2208. return (ISteamController) Marshal.PtrToStructure(result, typeof(ISteamController));
  2209. }
  2210. public override ISteamUGC GetISteamUGC(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2211. {
  2212. CheckIfUsable();
  2213. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamUGC(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2214. return (ISteamUGC) Marshal.PtrToStructure(result, typeof(ISteamUGC));
  2215. }
  2216. public override ISteamAppList GetISteamAppList(uint hSteamUser,uint hSteamPipe,string pchVersion)
  2217. {
  2218. CheckIfUsable();
  2219. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamAppList(m_pSteamClient,hSteamUser,hSteamPipe,pchVersion);
  2220. return (ISteamAppList) Marshal.PtrToStructure(result, typeof(ISteamAppList));
  2221. }
  2222. public override ISteamMusic GetISteamMusic(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2223. {
  2224. CheckIfUsable();
  2225. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMusic(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2226. return (ISteamMusic) Marshal.PtrToStructure(result, typeof(ISteamMusic));
  2227. }
  2228. public override ISteamMusicRemote GetISteamMusicRemote(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2229. {
  2230. CheckIfUsable();
  2231. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamMusicRemote(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2232. return (ISteamMusicRemote) Marshal.PtrToStructure(result, typeof(ISteamMusicRemote));
  2233. }
  2234. public override ISteamHTMLSurface GetISteamHTMLSurface(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2235. {
  2236. CheckIfUsable();
  2237. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamHTMLSurface(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2238. return (ISteamHTMLSurface) Marshal.PtrToStructure(result, typeof(ISteamHTMLSurface));
  2239. }
  2240. public override void Set_SteamAPI_CPostAPIResultInProcess(IntPtr func)
  2241. {
  2242. CheckIfUsable();
  2243. NativeEntrypoints.SteamAPI_ISteamClient_Set_SteamAPI_CPostAPIResultInProcess(m_pSteamClient,func);
  2244. }
  2245. public override void Remove_SteamAPI_CPostAPIResultInProcess(IntPtr func)
  2246. {
  2247. CheckIfUsable();
  2248. NativeEntrypoints.SteamAPI_ISteamClient_Remove_SteamAPI_CPostAPIResultInProcess(m_pSteamClient,func);
  2249. }
  2250. public override void Set_SteamAPI_CCheckCallbackRegisteredInProcess(IntPtr func)
  2251. {
  2252. CheckIfUsable();
  2253. NativeEntrypoints.SteamAPI_ISteamClient_Set_SteamAPI_CCheckCallbackRegisteredInProcess(m_pSteamClient,func);
  2254. }
  2255. public override ISteamInventory GetISteamInventory(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2256. {
  2257. CheckIfUsable();
  2258. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamInventory(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2259. return (ISteamInventory) Marshal.PtrToStructure(result, typeof(ISteamInventory));
  2260. }
  2261. public override ISteamVideo GetISteamVideo(uint hSteamuser,uint hSteamPipe,string pchVersion)
  2262. {
  2263. CheckIfUsable();
  2264. IntPtr result = NativeEntrypoints.SteamAPI_ISteamClient_GetISteamVideo(m_pSteamClient,hSteamuser,hSteamPipe,pchVersion);
  2265. return (ISteamVideo) Marshal.PtrToStructure(result, typeof(ISteamVideo));
  2266. }
  2267. }
  2268. public class CSteamUser : ISteamUser
  2269. {
  2270. public CSteamUser(IntPtr SteamUser)
  2271. {
  2272. m_pSteamUser = SteamUser;
  2273. }
  2274. IntPtr m_pSteamUser;
  2275. public override IntPtr GetIntPtr() { return m_pSteamUser; }
  2276. private void CheckIfUsable()
  2277. {
  2278. if (m_pSteamUser == IntPtr.Zero)
  2279. {
  2280. throw new Exception("Steam Pointer not configured");
  2281. }
  2282. }
  2283. public override uint GetHSteamUser()
  2284. {
  2285. CheckIfUsable();
  2286. uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetHSteamUser(m_pSteamUser);
  2287. return result;
  2288. }
  2289. public override bool BLoggedOn()
  2290. {
  2291. CheckIfUsable();
  2292. bool result = NativeEntrypoints.SteamAPI_ISteamUser_BLoggedOn(m_pSteamUser);
  2293. return result;
  2294. }
  2295. public override ulong GetSteamID()
  2296. {
  2297. CheckIfUsable();
  2298. ulong result = NativeEntrypoints.SteamAPI_ISteamUser_GetSteamID(m_pSteamUser);
  2299. return result;
  2300. }
  2301. public override int InitiateGameConnection(IntPtr pAuthBlob,int cbMaxAuthBlob,ulong steamIDGameServer,uint unIPServer,char usPortServer,bool bSecure)
  2302. {
  2303. CheckIfUsable();
  2304. int result = NativeEntrypoints.SteamAPI_ISteamUser_InitiateGameConnection(m_pSteamUser,pAuthBlob,cbMaxAuthBlob,steamIDGameServer,unIPServer,usPortServer,bSecure);
  2305. return result;
  2306. }
  2307. public override void TerminateGameConnection(uint unIPServer,char usPortServer)
  2308. {
  2309. CheckIfUsable();
  2310. NativeEntrypoints.SteamAPI_ISteamUser_TerminateGameConnection(m_pSteamUser,unIPServer,usPortServer);
  2311. }
  2312. public override void TrackAppUsageEvent(ulong gameID,int eAppUsageEvent,string pchExtraInfo)
  2313. {
  2314. CheckIfUsable();
  2315. NativeEntrypoints.SteamAPI_ISteamUser_TrackAppUsageEvent(m_pSteamUser,gameID,eAppUsageEvent,pchExtraInfo);
  2316. }
  2317. public override bool GetUserDataFolder(string pchBuffer,int cubBuffer)
  2318. {
  2319. CheckIfUsable();
  2320. bool result = NativeEntrypoints.SteamAPI_ISteamUser_GetUserDataFolder(m_pSteamUser,pchBuffer,cubBuffer);
  2321. return result;
  2322. }
  2323. public override void StartVoiceRecording()
  2324. {
  2325. CheckIfUsable();
  2326. NativeEntrypoints.SteamAPI_ISteamUser_StartVoiceRecording(m_pSteamUser);
  2327. }
  2328. public override void StopVoiceRecording()
  2329. {
  2330. CheckIfUsable();
  2331. NativeEntrypoints.SteamAPI_ISteamUser_StopVoiceRecording(m_pSteamUser);
  2332. }
  2333. public override uint GetAvailableVoice(ref uint pcbCompressed,ref uint pcbUncompressed,uint nUncompressedVoiceDesiredSampleRate)
  2334. {
  2335. CheckIfUsable();
  2336. pcbCompressed = 0;
  2337. pcbUncompressed = 0;
  2338. uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetAvailableVoice(m_pSteamUser,ref pcbCompressed,ref pcbUncompressed,nUncompressedVoiceDesiredSampleRate);
  2339. return result;
  2340. }
  2341. public override uint GetVoice(bool bWantCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,bool bWantUncompressed,IntPtr pUncompressedDestBuffer,uint cbUncompressedDestBufferSize,ref uint nUncompressBytesWritten,uint nUncompressedVoiceDesiredSampleRate)
  2342. {
  2343. CheckIfUsable();
  2344. nBytesWritten = 0;
  2345. nUncompressBytesWritten = 0;
  2346. uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetVoice(m_pSteamUser,bWantCompressed,pDestBuffer,cbDestBufferSize,ref nBytesWritten,bWantUncompressed,pUncompressedDestBuffer,cbUncompressedDestBufferSize,ref nUncompressBytesWritten,nUncompressedVoiceDesiredSampleRate);
  2347. return result;
  2348. }
  2349. public override uint DecompressVoice(IntPtr pCompressed,uint cbCompressed,IntPtr pDestBuffer,uint cbDestBufferSize,ref uint nBytesWritten,uint nDesiredSampleRate)
  2350. {
  2351. CheckIfUsable();
  2352. nBytesWritten = 0;
  2353. uint result = NativeEntrypoints.SteamAPI_ISteamUser_DecompressVoice(m_pSteamUser,pCompressed,cbCompressed,pDestBuffer,cbDestBufferSize,ref nBytesWritten,nDesiredSampleRate);
  2354. return result;
  2355. }
  2356. public override uint GetVoiceOptimalSampleRate()
  2357. {
  2358. CheckIfUsable();
  2359. uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(m_pSteamUser);
  2360. return result;
  2361. }
  2362. public override uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket)
  2363. {
  2364. CheckIfUsable();
  2365. pcbTicket = 0;
  2366. uint result = NativeEntrypoints.SteamAPI_ISteamUser_GetAuthSessionTicket(m_pSteamUser,pTicket,cbMaxTicket,ref pcbTicket);
  2367. return result;
  2368. }
  2369. public override uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID)
  2370. {
  2371. CheckIfUsable();
  2372. uint result = NativeEntrypoints.SteamAPI_ISteamUser_BeginAuthSession(m_pSteamUser,pAuthTicket,cbAuthTicket,steamID);
  2373. return result;
  2374. }
  2375. public override void EndAuthSession(ulong steamID)
  2376. {
  2377. CheckIfUsable();
  2378. NativeEntrypoints.SteamAPI_ISteamUser_EndAuthSession(m_pSteamUser,steamID);
  2379. }
  2380. public override void CancelAuthTicket(uint hAuthTicket)
  2381. {
  2382. CheckIfUsable();
  2383. NativeEntrypoints.SteamAPI_ISteamUser_CancelAuthTicket(m_pSteamUser,hAuthTicket);
  2384. }
  2385. public override uint UserHasLicenseForApp(ulong steamID,uint appID)
  2386. {
  2387. CheckIfUsable();
  2388. uint result = NativeEntrypoints.SteamAPI_ISteamUser_UserHasLicenseForApp(m_pSteamUser,steamID,appID);
  2389. return result;
  2390. }
  2391. public override bool BIsBehindNAT()
  2392. {
  2393. CheckIfUsable();
  2394. bool result = NativeEntrypoints.SteamAPI_ISteamUser_BIsBehindNAT(m_pSteamUser);
  2395. return result;
  2396. }
  2397. public override void AdvertiseGame(ulong steamIDGameServer,uint unIPServer,char usPortServer)
  2398. {
  2399. CheckIfUsable();
  2400. NativeEntrypoints.SteamAPI_ISteamUser_AdvertiseGame(m_pSteamUser,steamIDGameServer,unIPServer,usPortServer);
  2401. }
  2402. public override ulong RequestEncryptedAppTicket(IntPtr pDataToInclude,int cbDataToInclude)
  2403. {
  2404. CheckIfUsable();
  2405. ulong result = NativeEntrypoints.SteamAPI_ISteamUser_RequestEncryptedAppTicket(m_pSteamUser,pDataToInclude,cbDataToInclude);
  2406. return result;
  2407. }
  2408. public override bool GetEncryptedAppTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket)
  2409. {
  2410. CheckIfUsable();
  2411. pcbTicket = 0;
  2412. bool result = NativeEntrypoints.SteamAPI_ISteamUser_GetEncryptedAppTicket(m_pSteamUser,pTicket,cbMaxTicket,ref pcbTicket);
  2413. return result;
  2414. }
  2415. public override int GetGameBadgeLevel(int nSeries,bool bFoil)
  2416. {
  2417. CheckIfUsable();
  2418. int result = NativeEntrypoints.SteamAPI_ISteamUser_GetGameBadgeLevel(m_pSteamUser,nSeries,bFoil);
  2419. return result;
  2420. }
  2421. public override int GetPlayerSteamLevel()
  2422. {
  2423. CheckIfUsable();
  2424. int result = NativeEntrypoints.SteamAPI_ISteamUser_GetPlayerSteamLevel(m_pSteamUser);
  2425. return result;
  2426. }
  2427. public override ulong RequestStoreAuthURL(string pchRedirectURL)
  2428. {
  2429. CheckIfUsable();
  2430. ulong result = NativeEntrypoints.SteamAPI_ISteamUser_RequestStoreAuthURL(m_pSteamUser,pchRedirectURL);
  2431. return result;
  2432. }
  2433. }
  2434. public class CSteamFriends : ISteamFriends
  2435. {
  2436. public CSteamFriends(IntPtr SteamFriends)
  2437. {
  2438. m_pSteamFriends = SteamFriends;
  2439. }
  2440. IntPtr m_pSteamFriends;
  2441. public override IntPtr GetIntPtr() { return m_pSteamFriends; }
  2442. private void CheckIfUsable()
  2443. {
  2444. if (m_pSteamFriends == IntPtr.Zero)
  2445. {
  2446. throw new Exception("Steam Pointer not configured");
  2447. }
  2448. }
  2449. public override string GetPersonaName()
  2450. {
  2451. CheckIfUsable();
  2452. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetPersonaName(m_pSteamFriends);
  2453. return (string) Marshal.PtrToStructure(result, typeof(string));
  2454. }
  2455. public override ulong SetPersonaName(string pchPersonaName)
  2456. {
  2457. CheckIfUsable();
  2458. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_SetPersonaName(m_pSteamFriends,pchPersonaName);
  2459. return result;
  2460. }
  2461. public override uint GetPersonaState()
  2462. {
  2463. CheckIfUsable();
  2464. uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetPersonaState(m_pSteamFriends);
  2465. return result;
  2466. }
  2467. public override int GetFriendCount(int iFriendFlags)
  2468. {
  2469. CheckIfUsable();
  2470. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCount(m_pSteamFriends,iFriendFlags);
  2471. return result;
  2472. }
  2473. public override ulong GetFriendByIndex(int iFriend,int iFriendFlags)
  2474. {
  2475. CheckIfUsable();
  2476. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendByIndex(m_pSteamFriends,iFriend,iFriendFlags);
  2477. return result;
  2478. }
  2479. public override uint GetFriendRelationship(ulong steamIDFriend)
  2480. {
  2481. CheckIfUsable();
  2482. uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRelationship(m_pSteamFriends,steamIDFriend);
  2483. return result;
  2484. }
  2485. public override uint GetFriendPersonaState(ulong steamIDFriend)
  2486. {
  2487. CheckIfUsable();
  2488. uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendPersonaState(m_pSteamFriends,steamIDFriend);
  2489. return result;
  2490. }
  2491. public override string GetFriendPersonaName(ulong steamIDFriend)
  2492. {
  2493. CheckIfUsable();
  2494. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendPersonaName(m_pSteamFriends,steamIDFriend);
  2495. return (string) Marshal.PtrToStructure(result, typeof(string));
  2496. }
  2497. public override bool GetFriendGamePlayed(ulong steamIDFriend,out FriendGameInfo_t pFriendGameInfo)
  2498. {
  2499. CheckIfUsable();
  2500. pFriendGameInfo = new FriendGameInfo_t();
  2501. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendGamePlayed(m_pSteamFriends,steamIDFriend,ref pFriendGameInfo);
  2502. return result;
  2503. }
  2504. public override string GetFriendPersonaNameHistory(ulong steamIDFriend,int iPersonaName)
  2505. {
  2506. CheckIfUsable();
  2507. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(m_pSteamFriends,steamIDFriend,iPersonaName);
  2508. return (string) Marshal.PtrToStructure(result, typeof(string));
  2509. }
  2510. public override int GetFriendSteamLevel(ulong steamIDFriend)
  2511. {
  2512. CheckIfUsable();
  2513. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendSteamLevel(m_pSteamFriends,steamIDFriend);
  2514. return result;
  2515. }
  2516. public override string GetPlayerNickname(ulong steamIDPlayer)
  2517. {
  2518. CheckIfUsable();
  2519. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetPlayerNickname(m_pSteamFriends,steamIDPlayer);
  2520. return (string) Marshal.PtrToStructure(result, typeof(string));
  2521. }
  2522. public override int GetFriendsGroupCount()
  2523. {
  2524. CheckIfUsable();
  2525. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupCount(m_pSteamFriends);
  2526. return result;
  2527. }
  2528. public override char GetFriendsGroupIDByIndex(int iFG)
  2529. {
  2530. CheckIfUsable();
  2531. char result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(m_pSteamFriends,iFG);
  2532. return result;
  2533. }
  2534. public override string GetFriendsGroupName(char friendsGroupID)
  2535. {
  2536. CheckIfUsable();
  2537. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupName(m_pSteamFriends,friendsGroupID);
  2538. return (string) Marshal.PtrToStructure(result, typeof(string));
  2539. }
  2540. public override int GetFriendsGroupMembersCount(char friendsGroupID)
  2541. {
  2542. CheckIfUsable();
  2543. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(m_pSteamFriends,friendsGroupID);
  2544. return result;
  2545. }
  2546. public override void GetFriendsGroupMembersList(char friendsGroupID,out CSteamID [] pOutSteamIDMembers)
  2547. {
  2548. CheckIfUsable();
  2549. int nMembersCount = GetFriendsGroupMembersCount (friendsGroupID);
  2550. pOutSteamIDMembers = new CSteamID[nMembersCount];
  2551. NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendsGroupMembersList(m_pSteamFriends,friendsGroupID,pOutSteamIDMembers,nMembersCount);
  2552. }
  2553. public override bool HasFriend(ulong steamIDFriend,int iFriendFlags)
  2554. {
  2555. CheckIfUsable();
  2556. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_HasFriend(m_pSteamFriends,steamIDFriend,iFriendFlags);
  2557. return result;
  2558. }
  2559. public override int GetClanCount()
  2560. {
  2561. CheckIfUsable();
  2562. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanCount(m_pSteamFriends);
  2563. return result;
  2564. }
  2565. public override ulong GetClanByIndex(int iClan)
  2566. {
  2567. CheckIfUsable();
  2568. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanByIndex(m_pSteamFriends,iClan);
  2569. return result;
  2570. }
  2571. public override string GetClanName(ulong steamIDClan)
  2572. {
  2573. CheckIfUsable();
  2574. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanName(m_pSteamFriends,steamIDClan);
  2575. return (string) Marshal.PtrToStructure(result, typeof(string));
  2576. }
  2577. public override string GetClanTag(ulong steamIDClan)
  2578. {
  2579. CheckIfUsable();
  2580. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanTag(m_pSteamFriends,steamIDClan);
  2581. return (string) Marshal.PtrToStructure(result, typeof(string));
  2582. }
  2583. public override bool GetClanActivityCounts(ulong steamIDClan,ref int pnOnline,ref int pnInGame,ref int pnChatting)
  2584. {
  2585. CheckIfUsable();
  2586. pnOnline = 0;
  2587. pnInGame = 0;
  2588. pnChatting = 0;
  2589. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanActivityCounts(m_pSteamFriends,steamIDClan,ref pnOnline,ref pnInGame,ref pnChatting);
  2590. return result;
  2591. }
  2592. public override ulong DownloadClanActivityCounts(CSteamID [] psteamIDClans)
  2593. {
  2594. CheckIfUsable();
  2595. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_DownloadClanActivityCounts(m_pSteamFriends,psteamIDClans,(int) psteamIDClans.Length);
  2596. return result;
  2597. }
  2598. public override int GetFriendCountFromSource(ulong steamIDSource)
  2599. {
  2600. CheckIfUsable();
  2601. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCountFromSource(m_pSteamFriends,steamIDSource);
  2602. return result;
  2603. }
  2604. public override ulong GetFriendFromSourceByIndex(ulong steamIDSource,int iFriend)
  2605. {
  2606. CheckIfUsable();
  2607. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(m_pSteamFriends,steamIDSource,iFriend);
  2608. return result;
  2609. }
  2610. public override bool IsUserInSource(ulong steamIDUser,ulong steamIDSource)
  2611. {
  2612. CheckIfUsable();
  2613. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsUserInSource(m_pSteamFriends,steamIDUser,steamIDSource);
  2614. return result;
  2615. }
  2616. public override void SetInGameVoiceSpeaking(ulong steamIDUser,bool bSpeaking)
  2617. {
  2618. CheckIfUsable();
  2619. NativeEntrypoints.SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(m_pSteamFriends,steamIDUser,bSpeaking);
  2620. }
  2621. public override void ActivateGameOverlay(string pchDialog)
  2622. {
  2623. CheckIfUsable();
  2624. NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlay(m_pSteamFriends,pchDialog);
  2625. }
  2626. public override void ActivateGameOverlayToUser(string pchDialog,ulong steamID)
  2627. {
  2628. CheckIfUsable();
  2629. NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayToUser(m_pSteamFriends,pchDialog,steamID);
  2630. }
  2631. public override void ActivateGameOverlayToWebPage(string pchURL)
  2632. {
  2633. CheckIfUsable();
  2634. NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(m_pSteamFriends,pchURL);
  2635. }
  2636. public override void ActivateGameOverlayToStore(uint nAppID,char eFlag)
  2637. {
  2638. CheckIfUsable();
  2639. NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayToStore(m_pSteamFriends,nAppID,eFlag);
  2640. }
  2641. public override void SetPlayedWith(ulong steamIDUserPlayedWith)
  2642. {
  2643. CheckIfUsable();
  2644. NativeEntrypoints.SteamAPI_ISteamFriends_SetPlayedWith(m_pSteamFriends,steamIDUserPlayedWith);
  2645. }
  2646. public override void ActivateGameOverlayInviteDialog(ulong steamIDLobby)
  2647. {
  2648. CheckIfUsable();
  2649. NativeEntrypoints.SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(m_pSteamFriends,steamIDLobby);
  2650. }
  2651. public override int GetSmallFriendAvatar(ulong steamIDFriend)
  2652. {
  2653. CheckIfUsable();
  2654. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetSmallFriendAvatar(m_pSteamFriends,steamIDFriend);
  2655. return result;
  2656. }
  2657. public override int GetMediumFriendAvatar(ulong steamIDFriend)
  2658. {
  2659. CheckIfUsable();
  2660. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetMediumFriendAvatar(m_pSteamFriends,steamIDFriend);
  2661. return result;
  2662. }
  2663. public override int GetLargeFriendAvatar(ulong steamIDFriend)
  2664. {
  2665. CheckIfUsable();
  2666. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetLargeFriendAvatar(m_pSteamFriends,steamIDFriend);
  2667. return result;
  2668. }
  2669. public override bool RequestUserInformation(ulong steamIDUser,bool bRequireNameOnly)
  2670. {
  2671. CheckIfUsable();
  2672. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_RequestUserInformation(m_pSteamFriends,steamIDUser,bRequireNameOnly);
  2673. return result;
  2674. }
  2675. public override ulong RequestClanOfficerList(ulong steamIDClan)
  2676. {
  2677. CheckIfUsable();
  2678. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_RequestClanOfficerList(m_pSteamFriends,steamIDClan);
  2679. return result;
  2680. }
  2681. public override ulong GetClanOwner(ulong steamIDClan)
  2682. {
  2683. CheckIfUsable();
  2684. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanOwner(m_pSteamFriends,steamIDClan);
  2685. return result;
  2686. }
  2687. public override int GetClanOfficerCount(ulong steamIDClan)
  2688. {
  2689. CheckIfUsable();
  2690. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanOfficerCount(m_pSteamFriends,steamIDClan);
  2691. return result;
  2692. }
  2693. public override ulong GetClanOfficerByIndex(ulong steamIDClan,int iOfficer)
  2694. {
  2695. CheckIfUsable();
  2696. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanOfficerByIndex(m_pSteamFriends,steamIDClan,iOfficer);
  2697. return result;
  2698. }
  2699. public override uint GetUserRestrictions()
  2700. {
  2701. CheckIfUsable();
  2702. uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetUserRestrictions(m_pSteamFriends);
  2703. return result;
  2704. }
  2705. public override bool SetRichPresence(string pchKey,string pchValue)
  2706. {
  2707. CheckIfUsable();
  2708. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_SetRichPresence(m_pSteamFriends,pchKey,pchValue);
  2709. return result;
  2710. }
  2711. public override void ClearRichPresence()
  2712. {
  2713. CheckIfUsable();
  2714. NativeEntrypoints.SteamAPI_ISteamFriends_ClearRichPresence(m_pSteamFriends);
  2715. }
  2716. public override string GetFriendRichPresence(ulong steamIDFriend,string pchKey)
  2717. {
  2718. CheckIfUsable();
  2719. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRichPresence(m_pSteamFriends,steamIDFriend,pchKey);
  2720. return (string) Marshal.PtrToStructure(result, typeof(string));
  2721. }
  2722. public override int GetFriendRichPresenceKeyCount(ulong steamIDFriend)
  2723. {
  2724. CheckIfUsable();
  2725. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(m_pSteamFriends,steamIDFriend);
  2726. return result;
  2727. }
  2728. public override string GetFriendRichPresenceKeyByIndex(ulong steamIDFriend,int iKey)
  2729. {
  2730. CheckIfUsable();
  2731. IntPtr result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(m_pSteamFriends,steamIDFriend,iKey);
  2732. return (string) Marshal.PtrToStructure(result, typeof(string));
  2733. }
  2734. public override void RequestFriendRichPresence(ulong steamIDFriend)
  2735. {
  2736. CheckIfUsable();
  2737. NativeEntrypoints.SteamAPI_ISteamFriends_RequestFriendRichPresence(m_pSteamFriends,steamIDFriend);
  2738. }
  2739. public override bool InviteUserToGame(ulong steamIDFriend,string pchConnectString)
  2740. {
  2741. CheckIfUsable();
  2742. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_InviteUserToGame(m_pSteamFriends,steamIDFriend,pchConnectString);
  2743. return result;
  2744. }
  2745. public override int GetCoplayFriendCount()
  2746. {
  2747. CheckIfUsable();
  2748. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetCoplayFriendCount(m_pSteamFriends);
  2749. return result;
  2750. }
  2751. public override ulong GetCoplayFriend(int iCoplayFriend)
  2752. {
  2753. CheckIfUsable();
  2754. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetCoplayFriend(m_pSteamFriends,iCoplayFriend);
  2755. return result;
  2756. }
  2757. public override int GetFriendCoplayTime(ulong steamIDFriend)
  2758. {
  2759. CheckIfUsable();
  2760. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCoplayTime(m_pSteamFriends,steamIDFriend);
  2761. return result;
  2762. }
  2763. public override uint GetFriendCoplayGame(ulong steamIDFriend)
  2764. {
  2765. CheckIfUsable();
  2766. uint result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendCoplayGame(m_pSteamFriends,steamIDFriend);
  2767. return result;
  2768. }
  2769. public override ulong JoinClanChatRoom(ulong steamIDClan)
  2770. {
  2771. CheckIfUsable();
  2772. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_JoinClanChatRoom(m_pSteamFriends,steamIDClan);
  2773. return result;
  2774. }
  2775. public override bool LeaveClanChatRoom(ulong steamIDClan)
  2776. {
  2777. CheckIfUsable();
  2778. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_LeaveClanChatRoom(m_pSteamFriends,steamIDClan);
  2779. return result;
  2780. }
  2781. public override int GetClanChatMemberCount(ulong steamIDClan)
  2782. {
  2783. CheckIfUsable();
  2784. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanChatMemberCount(m_pSteamFriends,steamIDClan);
  2785. return result;
  2786. }
  2787. public override ulong GetChatMemberByIndex(ulong steamIDClan,int iUser)
  2788. {
  2789. CheckIfUsable();
  2790. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetChatMemberByIndex(m_pSteamFriends,steamIDClan,iUser);
  2791. return result;
  2792. }
  2793. public override bool SendClanChatMessage(ulong steamIDClanChat,string pchText)
  2794. {
  2795. CheckIfUsable();
  2796. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_SendClanChatMessage(m_pSteamFriends,steamIDClanChat,pchText);
  2797. return result;
  2798. }
  2799. public override int GetClanChatMessage(ulong steamIDClanChat,int iMessage,IntPtr prgchText,int cchTextMax,ref uint peChatEntryType,out CSteamID psteamidChatter)
  2800. {
  2801. CheckIfUsable();
  2802. peChatEntryType = 0;
  2803. psteamidChatter = new CSteamID();
  2804. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetClanChatMessage(m_pSteamFriends,steamIDClanChat,iMessage,prgchText,cchTextMax,ref peChatEntryType,ref psteamidChatter);
  2805. return result;
  2806. }
  2807. public override bool IsClanChatAdmin(ulong steamIDClanChat,ulong steamIDUser)
  2808. {
  2809. CheckIfUsable();
  2810. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsClanChatAdmin(m_pSteamFriends,steamIDClanChat,steamIDUser);
  2811. return result;
  2812. }
  2813. public override bool IsClanChatWindowOpenInSteam(ulong steamIDClanChat)
  2814. {
  2815. CheckIfUsable();
  2816. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(m_pSteamFriends,steamIDClanChat);
  2817. return result;
  2818. }
  2819. public override bool OpenClanChatWindowInSteam(ulong steamIDClanChat)
  2820. {
  2821. CheckIfUsable();
  2822. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(m_pSteamFriends,steamIDClanChat);
  2823. return result;
  2824. }
  2825. public override bool CloseClanChatWindowInSteam(ulong steamIDClanChat)
  2826. {
  2827. CheckIfUsable();
  2828. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(m_pSteamFriends,steamIDClanChat);
  2829. return result;
  2830. }
  2831. public override bool SetListenForFriendsMessages(bool bInterceptEnabled)
  2832. {
  2833. CheckIfUsable();
  2834. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_SetListenForFriendsMessages(m_pSteamFriends,bInterceptEnabled);
  2835. return result;
  2836. }
  2837. public override bool ReplyToFriendMessage(ulong steamIDFriend,string pchMsgToSend)
  2838. {
  2839. CheckIfUsable();
  2840. bool result = NativeEntrypoints.SteamAPI_ISteamFriends_ReplyToFriendMessage(m_pSteamFriends,steamIDFriend,pchMsgToSend);
  2841. return result;
  2842. }
  2843. public override int GetFriendMessage(ulong steamIDFriend,int iMessageID,IntPtr pvData,int cubData,ref uint peChatEntryType)
  2844. {
  2845. CheckIfUsable();
  2846. peChatEntryType = 0;
  2847. int result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFriendMessage(m_pSteamFriends,steamIDFriend,iMessageID,pvData,cubData,ref peChatEntryType);
  2848. return result;
  2849. }
  2850. public override ulong GetFollowerCount(ulong steamID)
  2851. {
  2852. CheckIfUsable();
  2853. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_GetFollowerCount(m_pSteamFriends,steamID);
  2854. return result;
  2855. }
  2856. public override ulong IsFollowing(ulong steamID)
  2857. {
  2858. CheckIfUsable();
  2859. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_IsFollowing(m_pSteamFriends,steamID);
  2860. return result;
  2861. }
  2862. public override ulong EnumerateFollowingList(uint unStartIndex)
  2863. {
  2864. CheckIfUsable();
  2865. ulong result = NativeEntrypoints.SteamAPI_ISteamFriends_EnumerateFollowingList(m_pSteamFriends,unStartIndex);
  2866. return result;
  2867. }
  2868. }
  2869. public class CSteamUtils : ISteamUtils
  2870. {
  2871. public CSteamUtils(IntPtr SteamUtils)
  2872. {
  2873. m_pSteamUtils = SteamUtils;
  2874. }
  2875. IntPtr m_pSteamUtils;
  2876. public override IntPtr GetIntPtr() { return m_pSteamUtils; }
  2877. private void CheckIfUsable()
  2878. {
  2879. if (m_pSteamUtils == IntPtr.Zero)
  2880. {
  2881. throw new Exception("Steam Pointer not configured");
  2882. }
  2883. }
  2884. public override uint GetSecondsSinceAppActive()
  2885. {
  2886. CheckIfUsable();
  2887. uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetSecondsSinceAppActive(m_pSteamUtils);
  2888. return result;
  2889. }
  2890. public override uint GetSecondsSinceComputerActive()
  2891. {
  2892. CheckIfUsable();
  2893. uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(m_pSteamUtils);
  2894. return result;
  2895. }
  2896. public override int GetConnectedUniverse()
  2897. {
  2898. CheckIfUsable();
  2899. int result = NativeEntrypoints.SteamAPI_ISteamUtils_GetConnectedUniverse(m_pSteamUtils);
  2900. return result;
  2901. }
  2902. public override uint GetServerRealTime()
  2903. {
  2904. CheckIfUsable();
  2905. uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetServerRealTime(m_pSteamUtils);
  2906. return result;
  2907. }
  2908. public override string GetIPCountry()
  2909. {
  2910. CheckIfUsable();
  2911. IntPtr result = NativeEntrypoints.SteamAPI_ISteamUtils_GetIPCountry(m_pSteamUtils);
  2912. return (string) Marshal.PtrToStructure(result, typeof(string));
  2913. }
  2914. public override bool GetImageSize(int iImage,ref uint pnWidth,ref uint pnHeight)
  2915. {
  2916. CheckIfUsable();
  2917. pnWidth = 0;
  2918. pnHeight = 0;
  2919. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetImageSize(m_pSteamUtils,iImage,ref pnWidth,ref pnHeight);
  2920. return result;
  2921. }
  2922. public override bool GetImageRGBA(int iImage,IntPtr pubDest,int nDestBufferSize)
  2923. {
  2924. CheckIfUsable();
  2925. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetImageRGBA(m_pSteamUtils,iImage,pubDest,nDestBufferSize);
  2926. return result;
  2927. }
  2928. public override bool GetCSERIPPort(ref uint unIP,ref char usPort)
  2929. {
  2930. CheckIfUsable();
  2931. unIP = 0;
  2932. usPort = (char) 0;
  2933. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetCSERIPPort(m_pSteamUtils,ref unIP,ref usPort);
  2934. return result;
  2935. }
  2936. public override byte GetCurrentBatteryPower()
  2937. {
  2938. CheckIfUsable();
  2939. byte result = NativeEntrypoints.SteamAPI_ISteamUtils_GetCurrentBatteryPower(m_pSteamUtils);
  2940. return result;
  2941. }
  2942. public override uint GetAppID()
  2943. {
  2944. CheckIfUsable();
  2945. uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetAppID(m_pSteamUtils);
  2946. return result;
  2947. }
  2948. public override void SetOverlayNotificationPosition(uint eNotificationPosition)
  2949. {
  2950. CheckIfUsable();
  2951. NativeEntrypoints.SteamAPI_ISteamUtils_SetOverlayNotificationPosition(m_pSteamUtils,eNotificationPosition);
  2952. }
  2953. public override bool IsAPICallCompleted(ulong hSteamAPICall,ref bool pbFailed)
  2954. {
  2955. CheckIfUsable();
  2956. pbFailed = false;
  2957. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_IsAPICallCompleted(m_pSteamUtils,hSteamAPICall,ref pbFailed);
  2958. return result;
  2959. }
  2960. public override int GetAPICallFailureReason(ulong hSteamAPICall)
  2961. {
  2962. CheckIfUsable();
  2963. int result = NativeEntrypoints.SteamAPI_ISteamUtils_GetAPICallFailureReason(m_pSteamUtils,hSteamAPICall);
  2964. return result;
  2965. }
  2966. public override bool GetAPICallResult(ulong hSteamAPICall,IntPtr pCallback,int cubCallback,int iCallbackExpected,ref bool pbFailed)
  2967. {
  2968. CheckIfUsable();
  2969. pbFailed = false;
  2970. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetAPICallResult(m_pSteamUtils,hSteamAPICall,pCallback,cubCallback,iCallbackExpected,ref pbFailed);
  2971. return result;
  2972. }
  2973. public override void RunFrame()
  2974. {
  2975. CheckIfUsable();
  2976. NativeEntrypoints.SteamAPI_ISteamUtils_RunFrame(m_pSteamUtils);
  2977. }
  2978. public override uint GetIPCCallCount()
  2979. {
  2980. CheckIfUsable();
  2981. uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetIPCCallCount(m_pSteamUtils);
  2982. return result;
  2983. }
  2984. public override void SetWarningMessageHook(IntPtr pFunction)
  2985. {
  2986. CheckIfUsable();
  2987. NativeEntrypoints.SteamAPI_ISteamUtils_SetWarningMessageHook(m_pSteamUtils,pFunction);
  2988. }
  2989. public override bool IsOverlayEnabled()
  2990. {
  2991. CheckIfUsable();
  2992. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_IsOverlayEnabled(m_pSteamUtils);
  2993. return result;
  2994. }
  2995. public override bool BOverlayNeedsPresent()
  2996. {
  2997. CheckIfUsable();
  2998. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_BOverlayNeedsPresent(m_pSteamUtils);
  2999. return result;
  3000. }
  3001. public override ulong CheckFileSignature(string szFileName)
  3002. {
  3003. CheckIfUsable();
  3004. ulong result = NativeEntrypoints.SteamAPI_ISteamUtils_CheckFileSignature(m_pSteamUtils,szFileName);
  3005. return result;
  3006. }
  3007. public override bool ShowGamepadTextInput(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText)
  3008. {
  3009. CheckIfUsable();
  3010. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_ShowGamepadTextInput(m_pSteamUtils,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText);
  3011. return result;
  3012. }
  3013. public override uint GetEnteredGamepadTextLength()
  3014. {
  3015. CheckIfUsable();
  3016. uint result = NativeEntrypoints.SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(m_pSteamUtils);
  3017. return result;
  3018. }
  3019. public override bool GetEnteredGamepadTextInput(string pchText,uint cchText)
  3020. {
  3021. CheckIfUsable();
  3022. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(m_pSteamUtils,pchText,cchText);
  3023. return result;
  3024. }
  3025. public override string GetSteamUILanguage()
  3026. {
  3027. CheckIfUsable();
  3028. IntPtr result = NativeEntrypoints.SteamAPI_ISteamUtils_GetSteamUILanguage(m_pSteamUtils);
  3029. return (string) Marshal.PtrToStructure(result, typeof(string));
  3030. }
  3031. public override bool IsSteamRunningInVR()
  3032. {
  3033. CheckIfUsable();
  3034. bool result = NativeEntrypoints.SteamAPI_ISteamUtils_IsSteamRunningInVR(m_pSteamUtils);
  3035. return result;
  3036. }
  3037. public override void SetOverlayNotificationInset(int nHorizontalInset,int nVerticalInset)
  3038. {
  3039. CheckIfUsable();
  3040. NativeEntrypoints.SteamAPI_ISteamUtils_SetOverlayNotificationInset(m_pSteamUtils,nHorizontalInset,nVerticalInset);
  3041. }
  3042. }
  3043. public class CSteamMatchmaking : ISteamMatchmaking
  3044. {
  3045. public CSteamMatchmaking(IntPtr SteamMatchmaking)
  3046. {
  3047. m_pSteamMatchmaking = SteamMatchmaking;
  3048. }
  3049. IntPtr m_pSteamMatchmaking;
  3050. public override IntPtr GetIntPtr() { return m_pSteamMatchmaking; }
  3051. private void CheckIfUsable()
  3052. {
  3053. if (m_pSteamMatchmaking == IntPtr.Zero)
  3054. {
  3055. throw new Exception("Steam Pointer not configured");
  3056. }
  3057. }
  3058. public override int GetFavoriteGameCount()
  3059. {
  3060. CheckIfUsable();
  3061. int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(m_pSteamMatchmaking);
  3062. return result;
  3063. }
  3064. public override bool GetFavoriteGame(int iGame,ref uint pnAppID,ref uint pnIP,ref char pnConnPort,ref char pnQueryPort,ref uint punFlags,ref uint pRTime32LastPlayedOnServer)
  3065. {
  3066. CheckIfUsable();
  3067. pnAppID = 0;
  3068. pnIP = 0;
  3069. pnConnPort = (char) 0;
  3070. pnQueryPort = (char) 0;
  3071. punFlags = 0;
  3072. pRTime32LastPlayedOnServer = 0;
  3073. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetFavoriteGame(m_pSteamMatchmaking,iGame,ref pnAppID,ref pnIP,ref pnConnPort,ref pnQueryPort,ref punFlags,ref pRTime32LastPlayedOnServer);
  3074. return result;
  3075. }
  3076. public override int AddFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags,uint rTime32LastPlayedOnServer)
  3077. {
  3078. CheckIfUsable();
  3079. int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddFavoriteGame(m_pSteamMatchmaking,nAppID,nIP,nConnPort,nQueryPort,unFlags,rTime32LastPlayedOnServer);
  3080. return result;
  3081. }
  3082. public override bool RemoveFavoriteGame(uint nAppID,uint nIP,char nConnPort,char nQueryPort,uint unFlags)
  3083. {
  3084. CheckIfUsable();
  3085. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(m_pSteamMatchmaking,nAppID,nIP,nConnPort,nQueryPort,unFlags);
  3086. return result;
  3087. }
  3088. public override ulong RequestLobbyList()
  3089. {
  3090. CheckIfUsable();
  3091. ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_RequestLobbyList(m_pSteamMatchmaking);
  3092. return result;
  3093. }
  3094. public override void AddRequestLobbyListStringFilter(string pchKeyToMatch,string pchValueToMatch,uint eComparisonType)
  3095. {
  3096. CheckIfUsable();
  3097. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(m_pSteamMatchmaking,pchKeyToMatch,pchValueToMatch,eComparisonType);
  3098. }
  3099. public override void AddRequestLobbyListNumericalFilter(string pchKeyToMatch,int nValueToMatch,uint eComparisonType)
  3100. {
  3101. CheckIfUsable();
  3102. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(m_pSteamMatchmaking,pchKeyToMatch,nValueToMatch,eComparisonType);
  3103. }
  3104. public override void AddRequestLobbyListNearValueFilter(string pchKeyToMatch,int nValueToBeCloseTo)
  3105. {
  3106. CheckIfUsable();
  3107. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(m_pSteamMatchmaking,pchKeyToMatch,nValueToBeCloseTo);
  3108. }
  3109. public override void AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable)
  3110. {
  3111. CheckIfUsable();
  3112. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(m_pSteamMatchmaking,nSlotsAvailable);
  3113. }
  3114. public override void AddRequestLobbyListDistanceFilter(uint eLobbyDistanceFilter)
  3115. {
  3116. CheckIfUsable();
  3117. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(m_pSteamMatchmaking,eLobbyDistanceFilter);
  3118. }
  3119. public override void AddRequestLobbyListResultCountFilter(int cMaxResults)
  3120. {
  3121. CheckIfUsable();
  3122. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(m_pSteamMatchmaking,cMaxResults);
  3123. }
  3124. public override void AddRequestLobbyListCompatibleMembersFilter(ulong steamIDLobby)
  3125. {
  3126. CheckIfUsable();
  3127. NativeEntrypoints.SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(m_pSteamMatchmaking,steamIDLobby);
  3128. }
  3129. public override ulong GetLobbyByIndex(int iLobby)
  3130. {
  3131. CheckIfUsable();
  3132. ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyByIndex(m_pSteamMatchmaking,iLobby);
  3133. return result;
  3134. }
  3135. public override ulong CreateLobby(uint eLobbyType,int cMaxMembers)
  3136. {
  3137. CheckIfUsable();
  3138. ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_CreateLobby(m_pSteamMatchmaking,eLobbyType,cMaxMembers);
  3139. return result;
  3140. }
  3141. public override ulong JoinLobby(ulong steamIDLobby)
  3142. {
  3143. CheckIfUsable();
  3144. ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_JoinLobby(m_pSteamMatchmaking,steamIDLobby);
  3145. return result;
  3146. }
  3147. public override void LeaveLobby(ulong steamIDLobby)
  3148. {
  3149. CheckIfUsable();
  3150. NativeEntrypoints.SteamAPI_ISteamMatchmaking_LeaveLobby(m_pSteamMatchmaking,steamIDLobby);
  3151. }
  3152. public override bool InviteUserToLobby(ulong steamIDLobby,ulong steamIDInvitee)
  3153. {
  3154. CheckIfUsable();
  3155. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_InviteUserToLobby(m_pSteamMatchmaking,steamIDLobby,steamIDInvitee);
  3156. return result;
  3157. }
  3158. public override int GetNumLobbyMembers(ulong steamIDLobby)
  3159. {
  3160. CheckIfUsable();
  3161. int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(m_pSteamMatchmaking,steamIDLobby);
  3162. return result;
  3163. }
  3164. public override ulong GetLobbyMemberByIndex(ulong steamIDLobby,int iMember)
  3165. {
  3166. CheckIfUsable();
  3167. ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(m_pSteamMatchmaking,steamIDLobby,iMember);
  3168. return result;
  3169. }
  3170. public override string GetLobbyData(ulong steamIDLobby,string pchKey)
  3171. {
  3172. CheckIfUsable();
  3173. IntPtr result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyData(m_pSteamMatchmaking,steamIDLobby,pchKey);
  3174. return (string) Marshal.PtrToStructure(result, typeof(string));
  3175. }
  3176. public override bool SetLobbyData(ulong steamIDLobby,string pchKey,string pchValue)
  3177. {
  3178. CheckIfUsable();
  3179. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyData(m_pSteamMatchmaking,steamIDLobby,pchKey,pchValue);
  3180. return result;
  3181. }
  3182. public override int GetLobbyDataCount(ulong steamIDLobby)
  3183. {
  3184. CheckIfUsable();
  3185. int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyDataCount(m_pSteamMatchmaking,steamIDLobby);
  3186. return result;
  3187. }
  3188. public override bool GetLobbyDataByIndex(ulong steamIDLobby,int iLobbyData,string pchKey,int cchKeyBufferSize,string pchValue,int cchValueBufferSize)
  3189. {
  3190. CheckIfUsable();
  3191. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(m_pSteamMatchmaking,steamIDLobby,iLobbyData,pchKey,cchKeyBufferSize,pchValue,cchValueBufferSize);
  3192. return result;
  3193. }
  3194. public override bool DeleteLobbyData(ulong steamIDLobby,string pchKey)
  3195. {
  3196. CheckIfUsable();
  3197. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_DeleteLobbyData(m_pSteamMatchmaking,steamIDLobby,pchKey);
  3198. return result;
  3199. }
  3200. public override string GetLobbyMemberData(ulong steamIDLobby,ulong steamIDUser,string pchKey)
  3201. {
  3202. CheckIfUsable();
  3203. IntPtr result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyMemberData(m_pSteamMatchmaking,steamIDLobby,steamIDUser,pchKey);
  3204. return (string) Marshal.PtrToStructure(result, typeof(string));
  3205. }
  3206. public override void SetLobbyMemberData(ulong steamIDLobby,string pchKey,string pchValue)
  3207. {
  3208. CheckIfUsable();
  3209. NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyMemberData(m_pSteamMatchmaking,steamIDLobby,pchKey,pchValue);
  3210. }
  3211. public override bool SendLobbyChatMsg(ulong steamIDLobby,IntPtr pvMsgBody,int cubMsgBody)
  3212. {
  3213. CheckIfUsable();
  3214. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(m_pSteamMatchmaking,steamIDLobby,pvMsgBody,cubMsgBody);
  3215. return result;
  3216. }
  3217. public override int GetLobbyChatEntry(ulong steamIDLobby,int iChatID,out CSteamID pSteamIDUser,IntPtr pvData,int cubData,ref uint peChatEntryType)
  3218. {
  3219. CheckIfUsable();
  3220. pSteamIDUser = new CSteamID();
  3221. peChatEntryType = 0;
  3222. int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(m_pSteamMatchmaking,steamIDLobby,iChatID,ref pSteamIDUser,pvData,cubData,ref peChatEntryType);
  3223. return result;
  3224. }
  3225. public override bool RequestLobbyData(ulong steamIDLobby)
  3226. {
  3227. CheckIfUsable();
  3228. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_RequestLobbyData(m_pSteamMatchmaking,steamIDLobby);
  3229. return result;
  3230. }
  3231. public override void SetLobbyGameServer(ulong steamIDLobby,uint unGameServerIP,char unGameServerPort,ulong steamIDGameServer)
  3232. {
  3233. CheckIfUsable();
  3234. NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyGameServer(m_pSteamMatchmaking,steamIDLobby,unGameServerIP,unGameServerPort,steamIDGameServer);
  3235. }
  3236. public override bool GetLobbyGameServer(ulong steamIDLobby,ref uint punGameServerIP,ref char punGameServerPort,out CSteamID psteamIDGameServer)
  3237. {
  3238. CheckIfUsable();
  3239. punGameServerIP = 0;
  3240. punGameServerPort = (char) 0;
  3241. psteamIDGameServer = new CSteamID();
  3242. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyGameServer(m_pSteamMatchmaking,steamIDLobby,ref punGameServerIP,ref punGameServerPort,ref psteamIDGameServer);
  3243. return result;
  3244. }
  3245. public override bool SetLobbyMemberLimit(ulong steamIDLobby,int cMaxMembers)
  3246. {
  3247. CheckIfUsable();
  3248. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(m_pSteamMatchmaking,steamIDLobby,cMaxMembers);
  3249. return result;
  3250. }
  3251. public override int GetLobbyMemberLimit(ulong steamIDLobby)
  3252. {
  3253. CheckIfUsable();
  3254. int result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(m_pSteamMatchmaking,steamIDLobby);
  3255. return result;
  3256. }
  3257. public override bool SetLobbyType(ulong steamIDLobby,uint eLobbyType)
  3258. {
  3259. CheckIfUsable();
  3260. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyType(m_pSteamMatchmaking,steamIDLobby,eLobbyType);
  3261. return result;
  3262. }
  3263. public override bool SetLobbyJoinable(ulong steamIDLobby,bool bLobbyJoinable)
  3264. {
  3265. CheckIfUsable();
  3266. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyJoinable(m_pSteamMatchmaking,steamIDLobby,bLobbyJoinable);
  3267. return result;
  3268. }
  3269. public override ulong GetLobbyOwner(ulong steamIDLobby)
  3270. {
  3271. CheckIfUsable();
  3272. ulong result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_GetLobbyOwner(m_pSteamMatchmaking,steamIDLobby);
  3273. return result;
  3274. }
  3275. public override bool SetLobbyOwner(ulong steamIDLobby,ulong steamIDNewOwner)
  3276. {
  3277. CheckIfUsable();
  3278. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLobbyOwner(m_pSteamMatchmaking,steamIDLobby,steamIDNewOwner);
  3279. return result;
  3280. }
  3281. public override bool SetLinkedLobby(ulong steamIDLobby,ulong steamIDLobbyDependent)
  3282. {
  3283. CheckIfUsable();
  3284. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmaking_SetLinkedLobby(m_pSteamMatchmaking,steamIDLobby,steamIDLobbyDependent);
  3285. return result;
  3286. }
  3287. }
  3288. public class CSteamMatchmakingServerListResponse : ISteamMatchmakingServerListResponse
  3289. {
  3290. public CSteamMatchmakingServerListResponse(IntPtr SteamMatchmakingServerListResponse)
  3291. {
  3292. m_pSteamMatchmakingServerListResponse = SteamMatchmakingServerListResponse;
  3293. }
  3294. IntPtr m_pSteamMatchmakingServerListResponse;
  3295. public override IntPtr GetIntPtr() { return m_pSteamMatchmakingServerListResponse; }
  3296. private void CheckIfUsable()
  3297. {
  3298. if (m_pSteamMatchmakingServerListResponse == IntPtr.Zero)
  3299. {
  3300. throw new Exception("Steam Pointer not configured");
  3301. }
  3302. }
  3303. public override void ServerResponded(uint hRequest,int iServer)
  3304. {
  3305. CheckIfUsable();
  3306. NativeEntrypoints.SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded(m_pSteamMatchmakingServerListResponse,hRequest,iServer);
  3307. }
  3308. public override void ServerFailedToRespond(uint hRequest,int iServer)
  3309. {
  3310. CheckIfUsable();
  3311. NativeEntrypoints.SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond(m_pSteamMatchmakingServerListResponse,hRequest,iServer);
  3312. }
  3313. public override void RefreshComplete(uint hRequest,uint response)
  3314. {
  3315. CheckIfUsable();
  3316. NativeEntrypoints.SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete(m_pSteamMatchmakingServerListResponse,hRequest,response);
  3317. }
  3318. }
  3319. public class CSteamMatchmakingPingResponse : ISteamMatchmakingPingResponse
  3320. {
  3321. public CSteamMatchmakingPingResponse(IntPtr SteamMatchmakingPingResponse)
  3322. {
  3323. m_pSteamMatchmakingPingResponse = SteamMatchmakingPingResponse;
  3324. }
  3325. IntPtr m_pSteamMatchmakingPingResponse;
  3326. public override IntPtr GetIntPtr() { return m_pSteamMatchmakingPingResponse; }
  3327. private void CheckIfUsable()
  3328. {
  3329. if (m_pSteamMatchmakingPingResponse == IntPtr.Zero)
  3330. {
  3331. throw new Exception("Steam Pointer not configured");
  3332. }
  3333. }
  3334. public override void ServerResponded(IntPtr server)
  3335. {
  3336. CheckIfUsable();
  3337. NativeEntrypoints.SteamAPI_ISteamMatchmakingPingResponse_ServerResponded(m_pSteamMatchmakingPingResponse,server);
  3338. }
  3339. public override void ServerFailedToRespond()
  3340. {
  3341. CheckIfUsable();
  3342. NativeEntrypoints.SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond(m_pSteamMatchmakingPingResponse);
  3343. }
  3344. }
  3345. public class CSteamMatchmakingPlayersResponse : ISteamMatchmakingPlayersResponse
  3346. {
  3347. public CSteamMatchmakingPlayersResponse(IntPtr SteamMatchmakingPlayersResponse)
  3348. {
  3349. m_pSteamMatchmakingPlayersResponse = SteamMatchmakingPlayersResponse;
  3350. }
  3351. IntPtr m_pSteamMatchmakingPlayersResponse;
  3352. public override IntPtr GetIntPtr() { return m_pSteamMatchmakingPlayersResponse; }
  3353. private void CheckIfUsable()
  3354. {
  3355. if (m_pSteamMatchmakingPlayersResponse == IntPtr.Zero)
  3356. {
  3357. throw new Exception("Steam Pointer not configured");
  3358. }
  3359. }
  3360. public override void AddPlayerToList(string pchName,int nScore,float flTimePlayed)
  3361. {
  3362. CheckIfUsable();
  3363. NativeEntrypoints.SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList(m_pSteamMatchmakingPlayersResponse,pchName,nScore,flTimePlayed);
  3364. }
  3365. public override void PlayersFailedToRespond()
  3366. {
  3367. CheckIfUsable();
  3368. NativeEntrypoints.SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond(m_pSteamMatchmakingPlayersResponse);
  3369. }
  3370. public override void PlayersRefreshComplete()
  3371. {
  3372. CheckIfUsable();
  3373. NativeEntrypoints.SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete(m_pSteamMatchmakingPlayersResponse);
  3374. }
  3375. }
  3376. public class CSteamMatchmakingRulesResponse : ISteamMatchmakingRulesResponse
  3377. {
  3378. public CSteamMatchmakingRulesResponse(IntPtr SteamMatchmakingRulesResponse)
  3379. {
  3380. m_pSteamMatchmakingRulesResponse = SteamMatchmakingRulesResponse;
  3381. }
  3382. IntPtr m_pSteamMatchmakingRulesResponse;
  3383. public override IntPtr GetIntPtr() { return m_pSteamMatchmakingRulesResponse; }
  3384. private void CheckIfUsable()
  3385. {
  3386. if (m_pSteamMatchmakingRulesResponse == IntPtr.Zero)
  3387. {
  3388. throw new Exception("Steam Pointer not configured");
  3389. }
  3390. }
  3391. public override void RulesResponded(string pchRule,string pchValue)
  3392. {
  3393. CheckIfUsable();
  3394. NativeEntrypoints.SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded(m_pSteamMatchmakingRulesResponse,pchRule,pchValue);
  3395. }
  3396. public override void RulesFailedToRespond()
  3397. {
  3398. CheckIfUsable();
  3399. NativeEntrypoints.SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond(m_pSteamMatchmakingRulesResponse);
  3400. }
  3401. public override void RulesRefreshComplete()
  3402. {
  3403. CheckIfUsable();
  3404. NativeEntrypoints.SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete(m_pSteamMatchmakingRulesResponse);
  3405. }
  3406. }
  3407. public class CSteamMatchmakingServers : ISteamMatchmakingServers
  3408. {
  3409. public CSteamMatchmakingServers(IntPtr SteamMatchmakingServers)
  3410. {
  3411. m_pSteamMatchmakingServers = SteamMatchmakingServers;
  3412. }
  3413. IntPtr m_pSteamMatchmakingServers;
  3414. public override IntPtr GetIntPtr() { return m_pSteamMatchmakingServers; }
  3415. private void CheckIfUsable()
  3416. {
  3417. if (m_pSteamMatchmakingServers == IntPtr.Zero)
  3418. {
  3419. throw new Exception("Steam Pointer not configured");
  3420. }
  3421. }
  3422. public override uint RequestInternetServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse)
  3423. {
  3424. CheckIfUsable();
  3425. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr());
  3426. return result;
  3427. }
  3428. public override uint RequestLANServerList(uint iApp,ISteamMatchmakingServerListResponse pRequestServersResponse)
  3429. {
  3430. CheckIfUsable();
  3431. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestLANServerList(m_pSteamMatchmakingServers,iApp,pRequestServersResponse.GetIntPtr());
  3432. return result;
  3433. }
  3434. public override uint RequestFriendsServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse)
  3435. {
  3436. CheckIfUsable();
  3437. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr());
  3438. return result;
  3439. }
  3440. public override uint RequestFavoritesServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse)
  3441. {
  3442. CheckIfUsable();
  3443. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr());
  3444. return result;
  3445. }
  3446. public override uint RequestHistoryServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse)
  3447. {
  3448. CheckIfUsable();
  3449. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr());
  3450. return result;
  3451. }
  3452. public override uint RequestSpectatorServerList(uint iApp,MatchMakingKeyValuePair_t [] ppchFilters,ISteamMatchmakingServerListResponse pRequestServersResponse)
  3453. {
  3454. CheckIfUsable();
  3455. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(m_pSteamMatchmakingServers,iApp,ppchFilters,(uint) ppchFilters.Length,pRequestServersResponse.GetIntPtr());
  3456. return result;
  3457. }
  3458. public override void ReleaseRequest(uint hServerListRequest)
  3459. {
  3460. CheckIfUsable();
  3461. NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_ReleaseRequest(m_pSteamMatchmakingServers,hServerListRequest);
  3462. }
  3463. public override gameserveritem_t GetServerDetails(uint hRequest,int iServer)
  3464. {
  3465. CheckIfUsable();
  3466. IntPtr result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_GetServerDetails(m_pSteamMatchmakingServers,hRequest,iServer);
  3467. return (gameserveritem_t) Marshal.PtrToStructure(result, typeof(gameserveritem_t));
  3468. }
  3469. public override void CancelQuery(uint hRequest)
  3470. {
  3471. CheckIfUsable();
  3472. NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_CancelQuery(m_pSteamMatchmakingServers,hRequest);
  3473. }
  3474. public override void RefreshQuery(uint hRequest)
  3475. {
  3476. CheckIfUsable();
  3477. NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RefreshQuery(m_pSteamMatchmakingServers,hRequest);
  3478. }
  3479. public override bool IsRefreshing(uint hRequest)
  3480. {
  3481. CheckIfUsable();
  3482. bool result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_IsRefreshing(m_pSteamMatchmakingServers,hRequest);
  3483. return result;
  3484. }
  3485. public override int GetServerCount(uint hRequest)
  3486. {
  3487. CheckIfUsable();
  3488. int result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_GetServerCount(m_pSteamMatchmakingServers,hRequest);
  3489. return result;
  3490. }
  3491. public override void RefreshServer(uint hRequest,int iServer)
  3492. {
  3493. CheckIfUsable();
  3494. NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_RefreshServer(m_pSteamMatchmakingServers,hRequest,iServer);
  3495. }
  3496. public override uint PingServer(uint unIP,char usPort,ISteamMatchmakingPingResponse pRequestServersResponse)
  3497. {
  3498. CheckIfUsable();
  3499. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_PingServer(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr());
  3500. return result;
  3501. }
  3502. public override uint PlayerDetails(uint unIP,char usPort,ISteamMatchmakingPlayersResponse pRequestServersResponse)
  3503. {
  3504. CheckIfUsable();
  3505. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_PlayerDetails(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr());
  3506. return result;
  3507. }
  3508. public override uint ServerRules(uint unIP,char usPort,ISteamMatchmakingRulesResponse pRequestServersResponse)
  3509. {
  3510. CheckIfUsable();
  3511. uint result = NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_ServerRules(m_pSteamMatchmakingServers,unIP,usPort,pRequestServersResponse.GetIntPtr());
  3512. return result;
  3513. }
  3514. public override void CancelServerQuery(uint hServerQuery)
  3515. {
  3516. CheckIfUsable();
  3517. NativeEntrypoints.SteamAPI_ISteamMatchmakingServers_CancelServerQuery(m_pSteamMatchmakingServers,hServerQuery);
  3518. }
  3519. }
  3520. public class CSteamRemoteStorage : ISteamRemoteStorage
  3521. {
  3522. public CSteamRemoteStorage(IntPtr SteamRemoteStorage)
  3523. {
  3524. m_pSteamRemoteStorage = SteamRemoteStorage;
  3525. }
  3526. IntPtr m_pSteamRemoteStorage;
  3527. public override IntPtr GetIntPtr() { return m_pSteamRemoteStorage; }
  3528. private void CheckIfUsable()
  3529. {
  3530. if (m_pSteamRemoteStorage == IntPtr.Zero)
  3531. {
  3532. throw new Exception("Steam Pointer not configured");
  3533. }
  3534. }
  3535. public override bool FileWrite(string pchFile,IntPtr pvData,int cubData)
  3536. {
  3537. CheckIfUsable();
  3538. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWrite(m_pSteamRemoteStorage,pchFile,pvData,cubData);
  3539. return result;
  3540. }
  3541. public override int FileRead(string pchFile,IntPtr pvData,int cubDataToRead)
  3542. {
  3543. CheckIfUsable();
  3544. int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileRead(m_pSteamRemoteStorage,pchFile,pvData,cubDataToRead);
  3545. return result;
  3546. }
  3547. public override ulong FileWriteAsync(string pchFile,IntPtr pvData,uint cubData)
  3548. {
  3549. CheckIfUsable();
  3550. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteAsync(m_pSteamRemoteStorage,pchFile,pvData,cubData);
  3551. return result;
  3552. }
  3553. public override ulong FileReadAsync(string pchFile,uint nOffset,uint cubToRead)
  3554. {
  3555. CheckIfUsable();
  3556. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileReadAsync(m_pSteamRemoteStorage,pchFile,nOffset,cubToRead);
  3557. return result;
  3558. }
  3559. public override bool FileReadAsyncComplete(ulong hReadCall,IntPtr pvBuffer,uint cubToRead)
  3560. {
  3561. CheckIfUsable();
  3562. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(m_pSteamRemoteStorage,hReadCall,pvBuffer,cubToRead);
  3563. return result;
  3564. }
  3565. public override bool FileForget(string pchFile)
  3566. {
  3567. CheckIfUsable();
  3568. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileForget(m_pSteamRemoteStorage,pchFile);
  3569. return result;
  3570. }
  3571. public override bool FileDelete(string pchFile)
  3572. {
  3573. CheckIfUsable();
  3574. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileDelete(m_pSteamRemoteStorage,pchFile);
  3575. return result;
  3576. }
  3577. public override ulong FileShare(string pchFile)
  3578. {
  3579. CheckIfUsable();
  3580. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileShare(m_pSteamRemoteStorage,pchFile);
  3581. return result;
  3582. }
  3583. public override bool SetSyncPlatforms(string pchFile,uint eRemoteStoragePlatform)
  3584. {
  3585. CheckIfUsable();
  3586. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(m_pSteamRemoteStorage,pchFile,eRemoteStoragePlatform);
  3587. return result;
  3588. }
  3589. public override ulong FileWriteStreamOpen(string pchFile)
  3590. {
  3591. CheckIfUsable();
  3592. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(m_pSteamRemoteStorage,pchFile);
  3593. return result;
  3594. }
  3595. public override bool FileWriteStreamWriteChunk(ulong writeHandle,IntPtr pvData,int cubData)
  3596. {
  3597. CheckIfUsable();
  3598. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(m_pSteamRemoteStorage,writeHandle,pvData,cubData);
  3599. return result;
  3600. }
  3601. public override bool FileWriteStreamClose(ulong writeHandle)
  3602. {
  3603. CheckIfUsable();
  3604. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(m_pSteamRemoteStorage,writeHandle);
  3605. return result;
  3606. }
  3607. public override bool FileWriteStreamCancel(ulong writeHandle)
  3608. {
  3609. CheckIfUsable();
  3610. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(m_pSteamRemoteStorage,writeHandle);
  3611. return result;
  3612. }
  3613. public override bool FileExists(string pchFile)
  3614. {
  3615. CheckIfUsable();
  3616. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FileExists(m_pSteamRemoteStorage,pchFile);
  3617. return result;
  3618. }
  3619. public override bool FilePersisted(string pchFile)
  3620. {
  3621. CheckIfUsable();
  3622. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_FilePersisted(m_pSteamRemoteStorage,pchFile);
  3623. return result;
  3624. }
  3625. public override int GetFileSize(string pchFile)
  3626. {
  3627. CheckIfUsable();
  3628. int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileSize(m_pSteamRemoteStorage,pchFile);
  3629. return result;
  3630. }
  3631. public override long GetFileTimestamp(string pchFile)
  3632. {
  3633. CheckIfUsable();
  3634. long result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileTimestamp(m_pSteamRemoteStorage,pchFile);
  3635. return result;
  3636. }
  3637. public override uint GetSyncPlatforms(string pchFile)
  3638. {
  3639. CheckIfUsable();
  3640. uint result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(m_pSteamRemoteStorage,pchFile);
  3641. return result;
  3642. }
  3643. public override int GetFileCount()
  3644. {
  3645. CheckIfUsable();
  3646. int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileCount(m_pSteamRemoteStorage);
  3647. return result;
  3648. }
  3649. public override string GetFileNameAndSize(int iFile,ref int pnFileSizeInBytes)
  3650. {
  3651. CheckIfUsable();
  3652. pnFileSizeInBytes = 0;
  3653. IntPtr result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(m_pSteamRemoteStorage,iFile,ref pnFileSizeInBytes);
  3654. return (string) Marshal.PtrToStructure(result, typeof(string));
  3655. }
  3656. public override bool GetQuota(ref int pnTotalBytes,ref int puAvailableBytes)
  3657. {
  3658. CheckIfUsable();
  3659. pnTotalBytes = 0;
  3660. puAvailableBytes = 0;
  3661. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetQuota(m_pSteamRemoteStorage,ref pnTotalBytes,ref puAvailableBytes);
  3662. return result;
  3663. }
  3664. public override bool IsCloudEnabledForAccount()
  3665. {
  3666. CheckIfUsable();
  3667. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(m_pSteamRemoteStorage);
  3668. return result;
  3669. }
  3670. public override bool IsCloudEnabledForApp()
  3671. {
  3672. CheckIfUsable();
  3673. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(m_pSteamRemoteStorage);
  3674. return result;
  3675. }
  3676. public override void SetCloudEnabledForApp(bool bEnabled)
  3677. {
  3678. CheckIfUsable();
  3679. NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(m_pSteamRemoteStorage,bEnabled);
  3680. }
  3681. public override ulong UGCDownload(ulong hContent,uint unPriority)
  3682. {
  3683. CheckIfUsable();
  3684. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UGCDownload(m_pSteamRemoteStorage,hContent,unPriority);
  3685. return result;
  3686. }
  3687. public override bool GetUGCDownloadProgress(ulong hContent,ref int pnBytesDownloaded,ref int pnBytesExpected)
  3688. {
  3689. CheckIfUsable();
  3690. pnBytesDownloaded = 0;
  3691. pnBytesExpected = 0;
  3692. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(m_pSteamRemoteStorage,hContent,ref pnBytesDownloaded,ref pnBytesExpected);
  3693. return result;
  3694. }
  3695. public override bool GetUGCDetails(ulong hContent,ref uint pnAppID,string ppchName,ref int pnFileSizeInBytes,out CSteamID pSteamIDOwner)
  3696. {
  3697. CheckIfUsable();
  3698. pnAppID = 0;
  3699. ppchName = "";
  3700. pnFileSizeInBytes = 0;
  3701. pSteamIDOwner = new CSteamID();
  3702. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetUGCDetails(m_pSteamRemoteStorage,hContent,ref pnAppID,ppchName,ref pnFileSizeInBytes,ref pSteamIDOwner);
  3703. return result;
  3704. }
  3705. public override int UGCRead(ulong hContent,IntPtr pvData,int cubDataToRead,uint cOffset,uint eAction)
  3706. {
  3707. CheckIfUsable();
  3708. int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UGCRead(m_pSteamRemoteStorage,hContent,pvData,cubDataToRead,cOffset,eAction);
  3709. return result;
  3710. }
  3711. public override int GetCachedUGCCount()
  3712. {
  3713. CheckIfUsable();
  3714. int result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(m_pSteamRemoteStorage);
  3715. return result;
  3716. }
  3717. public override ulong GetCachedUGCHandle(int iCachedContent)
  3718. {
  3719. CheckIfUsable();
  3720. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(m_pSteamRemoteStorage,iCachedContent);
  3721. return result;
  3722. }
  3723. public override ulong PublishWorkshopFile(string pchFile,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags,uint eWorkshopFileType)
  3724. {
  3725. CheckIfUsable();
  3726. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(m_pSteamRemoteStorage,pchFile,pchPreviewFile,nConsumerAppId,pchTitle,pchDescription,eVisibility,ref pTags,eWorkshopFileType);
  3727. return result;
  3728. }
  3729. public override ulong CreatePublishedFileUpdateRequest(ulong unPublishedFileId)
  3730. {
  3731. CheckIfUsable();
  3732. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(m_pSteamRemoteStorage,unPublishedFileId);
  3733. return result;
  3734. }
  3735. public override bool UpdatePublishedFileFile(ulong updateHandle,string pchFile)
  3736. {
  3737. CheckIfUsable();
  3738. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(m_pSteamRemoteStorage,updateHandle,pchFile);
  3739. return result;
  3740. }
  3741. public override bool UpdatePublishedFilePreviewFile(ulong updateHandle,string pchPreviewFile)
  3742. {
  3743. CheckIfUsable();
  3744. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(m_pSteamRemoteStorage,updateHandle,pchPreviewFile);
  3745. return result;
  3746. }
  3747. public override bool UpdatePublishedFileTitle(ulong updateHandle,string pchTitle)
  3748. {
  3749. CheckIfUsable();
  3750. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(m_pSteamRemoteStorage,updateHandle,pchTitle);
  3751. return result;
  3752. }
  3753. public override bool UpdatePublishedFileDescription(ulong updateHandle,string pchDescription)
  3754. {
  3755. CheckIfUsable();
  3756. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(m_pSteamRemoteStorage,updateHandle,pchDescription);
  3757. return result;
  3758. }
  3759. public override bool UpdatePublishedFileVisibility(ulong updateHandle,uint eVisibility)
  3760. {
  3761. CheckIfUsable();
  3762. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(m_pSteamRemoteStorage,updateHandle,eVisibility);
  3763. return result;
  3764. }
  3765. public override bool UpdatePublishedFileTags(ulong updateHandle,ref SteamParamStringArray_t pTags)
  3766. {
  3767. CheckIfUsable();
  3768. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(m_pSteamRemoteStorage,updateHandle,ref pTags);
  3769. return result;
  3770. }
  3771. public override ulong CommitPublishedFileUpdate(ulong updateHandle)
  3772. {
  3773. CheckIfUsable();
  3774. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(m_pSteamRemoteStorage,updateHandle);
  3775. return result;
  3776. }
  3777. public override ulong GetPublishedFileDetails(ulong unPublishedFileId,uint unMaxSecondsOld)
  3778. {
  3779. CheckIfUsable();
  3780. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(m_pSteamRemoteStorage,unPublishedFileId,unMaxSecondsOld);
  3781. return result;
  3782. }
  3783. public override ulong DeletePublishedFile(ulong unPublishedFileId)
  3784. {
  3785. CheckIfUsable();
  3786. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_DeletePublishedFile(m_pSteamRemoteStorage,unPublishedFileId);
  3787. return result;
  3788. }
  3789. public override ulong EnumerateUserPublishedFiles(uint unStartIndex)
  3790. {
  3791. CheckIfUsable();
  3792. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(m_pSteamRemoteStorage,unStartIndex);
  3793. return result;
  3794. }
  3795. public override ulong SubscribePublishedFile(ulong unPublishedFileId)
  3796. {
  3797. CheckIfUsable();
  3798. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(m_pSteamRemoteStorage,unPublishedFileId);
  3799. return result;
  3800. }
  3801. public override ulong EnumerateUserSubscribedFiles(uint unStartIndex)
  3802. {
  3803. CheckIfUsable();
  3804. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(m_pSteamRemoteStorage,unStartIndex);
  3805. return result;
  3806. }
  3807. public override ulong UnsubscribePublishedFile(ulong unPublishedFileId)
  3808. {
  3809. CheckIfUsable();
  3810. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(m_pSteamRemoteStorage,unPublishedFileId);
  3811. return result;
  3812. }
  3813. public override bool UpdatePublishedFileSetChangeDescription(ulong updateHandle,string pchChangeDescription)
  3814. {
  3815. CheckIfUsable();
  3816. bool result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(m_pSteamRemoteStorage,updateHandle,pchChangeDescription);
  3817. return result;
  3818. }
  3819. public override ulong GetPublishedItemVoteDetails(ulong unPublishedFileId)
  3820. {
  3821. CheckIfUsable();
  3822. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(m_pSteamRemoteStorage,unPublishedFileId);
  3823. return result;
  3824. }
  3825. public override ulong UpdateUserPublishedItemVote(ulong unPublishedFileId,bool bVoteUp)
  3826. {
  3827. CheckIfUsable();
  3828. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(m_pSteamRemoteStorage,unPublishedFileId,bVoteUp);
  3829. return result;
  3830. }
  3831. public override ulong GetUserPublishedItemVoteDetails(ulong unPublishedFileId)
  3832. {
  3833. CheckIfUsable();
  3834. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(m_pSteamRemoteStorage,unPublishedFileId);
  3835. return result;
  3836. }
  3837. public override ulong EnumerateUserSharedWorkshopFiles(ulong steamId,uint unStartIndex,ref SteamParamStringArray_t pRequiredTags,ref SteamParamStringArray_t pExcludedTags)
  3838. {
  3839. CheckIfUsable();
  3840. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(m_pSteamRemoteStorage,steamId,unStartIndex,ref pRequiredTags,ref pExcludedTags);
  3841. return result;
  3842. }
  3843. public override ulong PublishVideo(uint eVideoProvider,string pchVideoAccount,string pchVideoIdentifier,string pchPreviewFile,uint nConsumerAppId,string pchTitle,string pchDescription,uint eVisibility,ref SteamParamStringArray_t pTags)
  3844. {
  3845. CheckIfUsable();
  3846. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_PublishVideo(m_pSteamRemoteStorage,eVideoProvider,pchVideoAccount,pchVideoIdentifier,pchPreviewFile,nConsumerAppId,pchTitle,pchDescription,eVisibility,ref pTags);
  3847. return result;
  3848. }
  3849. public override ulong SetUserPublishedFileAction(ulong unPublishedFileId,uint eAction)
  3850. {
  3851. CheckIfUsable();
  3852. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(m_pSteamRemoteStorage,unPublishedFileId,eAction);
  3853. return result;
  3854. }
  3855. public override ulong EnumeratePublishedFilesByUserAction(uint eAction,uint unStartIndex)
  3856. {
  3857. CheckIfUsable();
  3858. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(m_pSteamRemoteStorage,eAction,unStartIndex);
  3859. return result;
  3860. }
  3861. public override ulong EnumeratePublishedWorkshopFiles(uint eEnumerationType,uint unStartIndex,uint unCount,uint unDays,ref SteamParamStringArray_t pTags,ref SteamParamStringArray_t pUserTags)
  3862. {
  3863. CheckIfUsable();
  3864. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(m_pSteamRemoteStorage,eEnumerationType,unStartIndex,unCount,unDays,ref pTags,ref pUserTags);
  3865. return result;
  3866. }
  3867. public override ulong UGCDownloadToLocation(ulong hContent,string pchLocation,uint unPriority)
  3868. {
  3869. CheckIfUsable();
  3870. ulong result = NativeEntrypoints.SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(m_pSteamRemoteStorage,hContent,pchLocation,unPriority);
  3871. return result;
  3872. }
  3873. }
  3874. public class CSteamUserStats : ISteamUserStats
  3875. {
  3876. public CSteamUserStats(IntPtr SteamUserStats)
  3877. {
  3878. m_pSteamUserStats = SteamUserStats;
  3879. }
  3880. IntPtr m_pSteamUserStats;
  3881. public override IntPtr GetIntPtr() { return m_pSteamUserStats; }
  3882. private void CheckIfUsable()
  3883. {
  3884. if (m_pSteamUserStats == IntPtr.Zero)
  3885. {
  3886. throw new Exception("Steam Pointer not configured");
  3887. }
  3888. }
  3889. public override bool RequestCurrentStats()
  3890. {
  3891. CheckIfUsable();
  3892. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestCurrentStats(m_pSteamUserStats);
  3893. return result;
  3894. }
  3895. public override bool GetStat(string pchName,ref int pData)
  3896. {
  3897. CheckIfUsable();
  3898. pData = 0;
  3899. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetStat(m_pSteamUserStats,pchName,ref pData);
  3900. return result;
  3901. }
  3902. public override bool GetStat0(string pchName,ref float pData)
  3903. {
  3904. CheckIfUsable();
  3905. pData = 0;
  3906. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetStat0(m_pSteamUserStats,pchName,ref pData);
  3907. return result;
  3908. }
  3909. public override bool SetStat(string pchName,int nData)
  3910. {
  3911. CheckIfUsable();
  3912. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_SetStat(m_pSteamUserStats,pchName,nData);
  3913. return result;
  3914. }
  3915. public override bool SetStat0(string pchName,float fData)
  3916. {
  3917. CheckIfUsable();
  3918. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_SetStat0(m_pSteamUserStats,pchName,fData);
  3919. return result;
  3920. }
  3921. public override bool UpdateAvgRateStat(string pchName,float flCountThisSession,double dSessionLength)
  3922. {
  3923. CheckIfUsable();
  3924. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_UpdateAvgRateStat(m_pSteamUserStats,pchName,flCountThisSession,dSessionLength);
  3925. return result;
  3926. }
  3927. public override bool GetAchievement(string pchName,ref bool pbAchieved)
  3928. {
  3929. CheckIfUsable();
  3930. pbAchieved = false;
  3931. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievement(m_pSteamUserStats,pchName,ref pbAchieved);
  3932. return result;
  3933. }
  3934. public override bool SetAchievement(string pchName)
  3935. {
  3936. CheckIfUsable();
  3937. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_SetAchievement(m_pSteamUserStats,pchName);
  3938. return result;
  3939. }
  3940. public override bool ClearAchievement(string pchName)
  3941. {
  3942. CheckIfUsable();
  3943. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_ClearAchievement(m_pSteamUserStats,pchName);
  3944. return result;
  3945. }
  3946. public override bool GetAchievementAndUnlockTime(string pchName,ref bool pbAchieved,ref uint punUnlockTime)
  3947. {
  3948. CheckIfUsable();
  3949. pbAchieved = false;
  3950. punUnlockTime = 0;
  3951. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(m_pSteamUserStats,pchName,ref pbAchieved,ref punUnlockTime);
  3952. return result;
  3953. }
  3954. public override bool StoreStats()
  3955. {
  3956. CheckIfUsable();
  3957. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_StoreStats(m_pSteamUserStats);
  3958. return result;
  3959. }
  3960. public override int GetAchievementIcon(string pchName)
  3961. {
  3962. CheckIfUsable();
  3963. int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementIcon(m_pSteamUserStats,pchName);
  3964. return result;
  3965. }
  3966. public override string GetAchievementDisplayAttribute(string pchName,string pchKey)
  3967. {
  3968. CheckIfUsable();
  3969. IntPtr result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(m_pSteamUserStats,pchName,pchKey);
  3970. return (string) Marshal.PtrToStructure(result, typeof(string));
  3971. }
  3972. public override bool IndicateAchievementProgress(string pchName,uint nCurProgress,uint nMaxProgress)
  3973. {
  3974. CheckIfUsable();
  3975. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_IndicateAchievementProgress(m_pSteamUserStats,pchName,nCurProgress,nMaxProgress);
  3976. return result;
  3977. }
  3978. public override uint GetNumAchievements()
  3979. {
  3980. CheckIfUsable();
  3981. uint result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetNumAchievements(m_pSteamUserStats);
  3982. return result;
  3983. }
  3984. public override string GetAchievementName(uint iAchievement)
  3985. {
  3986. CheckIfUsable();
  3987. IntPtr result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementName(m_pSteamUserStats,iAchievement);
  3988. return (string) Marshal.PtrToStructure(result, typeof(string));
  3989. }
  3990. public override ulong RequestUserStats(ulong steamIDUser)
  3991. {
  3992. CheckIfUsable();
  3993. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestUserStats(m_pSteamUserStats,steamIDUser);
  3994. return result;
  3995. }
  3996. public override bool GetUserStat(ulong steamIDUser,string pchName,ref int pData)
  3997. {
  3998. CheckIfUsable();
  3999. pData = 0;
  4000. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserStat(m_pSteamUserStats,steamIDUser,pchName,ref pData);
  4001. return result;
  4002. }
  4003. public override bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData)
  4004. {
  4005. CheckIfUsable();
  4006. pData = 0;
  4007. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserStat0(m_pSteamUserStats,steamIDUser,pchName,ref pData);
  4008. return result;
  4009. }
  4010. public override bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved)
  4011. {
  4012. CheckIfUsable();
  4013. pbAchieved = false;
  4014. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserAchievement(m_pSteamUserStats,steamIDUser,pchName,ref pbAchieved);
  4015. return result;
  4016. }
  4017. public override bool GetUserAchievementAndUnlockTime(ulong steamIDUser,string pchName,ref bool pbAchieved,ref uint punUnlockTime)
  4018. {
  4019. CheckIfUsable();
  4020. pbAchieved = false;
  4021. punUnlockTime = 0;
  4022. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(m_pSteamUserStats,steamIDUser,pchName,ref pbAchieved,ref punUnlockTime);
  4023. return result;
  4024. }
  4025. public override bool ResetAllStats(bool bAchievementsToo)
  4026. {
  4027. CheckIfUsable();
  4028. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_ResetAllStats(m_pSteamUserStats,bAchievementsToo);
  4029. return result;
  4030. }
  4031. public override ulong FindOrCreateLeaderboard(string pchLeaderboardName,uint eLeaderboardSortMethod,uint eLeaderboardDisplayType)
  4032. {
  4033. CheckIfUsable();
  4034. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(m_pSteamUserStats,pchLeaderboardName,eLeaderboardSortMethod,eLeaderboardDisplayType);
  4035. return result;
  4036. }
  4037. public override ulong FindLeaderboard(string pchLeaderboardName)
  4038. {
  4039. CheckIfUsable();
  4040. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_FindLeaderboard(m_pSteamUserStats,pchLeaderboardName);
  4041. return result;
  4042. }
  4043. public override string GetLeaderboardName(ulong hSteamLeaderboard)
  4044. {
  4045. CheckIfUsable();
  4046. IntPtr result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardName(m_pSteamUserStats,hSteamLeaderboard);
  4047. return (string) Marshal.PtrToStructure(result, typeof(string));
  4048. }
  4049. public override int GetLeaderboardEntryCount(ulong hSteamLeaderboard)
  4050. {
  4051. CheckIfUsable();
  4052. int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(m_pSteamUserStats,hSteamLeaderboard);
  4053. return result;
  4054. }
  4055. public override uint GetLeaderboardSortMethod(ulong hSteamLeaderboard)
  4056. {
  4057. CheckIfUsable();
  4058. uint result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(m_pSteamUserStats,hSteamLeaderboard);
  4059. return result;
  4060. }
  4061. public override uint GetLeaderboardDisplayType(ulong hSteamLeaderboard)
  4062. {
  4063. CheckIfUsable();
  4064. uint result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(m_pSteamUserStats,hSteamLeaderboard);
  4065. return result;
  4066. }
  4067. public override ulong DownloadLeaderboardEntries(ulong hSteamLeaderboard,uint eLeaderboardDataRequest,int nRangeStart,int nRangeEnd)
  4068. {
  4069. CheckIfUsable();
  4070. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(m_pSteamUserStats,hSteamLeaderboard,eLeaderboardDataRequest,nRangeStart,nRangeEnd);
  4071. return result;
  4072. }
  4073. public override ulong DownloadLeaderboardEntriesForUsers(ulong hSteamLeaderboard,CSteamID [] prgUsers)
  4074. {
  4075. CheckIfUsable();
  4076. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(m_pSteamUserStats,hSteamLeaderboard,prgUsers,(int) prgUsers.Length);
  4077. return result;
  4078. }
  4079. public override bool GetDownloadedLeaderboardEntry(ulong hSteamLeaderboardEntries,int index,ref LeaderboardEntry_t pLeaderboardEntry,ref int pDetails,int cDetailsMax)
  4080. {
  4081. CheckIfUsable();
  4082. pDetails = 0;
  4083. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(m_pSteamUserStats,hSteamLeaderboardEntries,index,ref pLeaderboardEntry,ref pDetails,cDetailsMax);
  4084. return result;
  4085. }
  4086. public override ulong UploadLeaderboardScore(ulong hSteamLeaderboard,uint eLeaderboardUploadScoreMethod,int nScore,ref int pScoreDetails,int cScoreDetailsCount)
  4087. {
  4088. CheckIfUsable();
  4089. pScoreDetails = 0;
  4090. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_UploadLeaderboardScore(m_pSteamUserStats,hSteamLeaderboard,eLeaderboardUploadScoreMethod,nScore,ref pScoreDetails,cScoreDetailsCount);
  4091. return result;
  4092. }
  4093. public override ulong AttachLeaderboardUGC(ulong hSteamLeaderboard,ulong hUGC)
  4094. {
  4095. CheckIfUsable();
  4096. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_AttachLeaderboardUGC(m_pSteamUserStats,hSteamLeaderboard,hUGC);
  4097. return result;
  4098. }
  4099. public override ulong GetNumberOfCurrentPlayers()
  4100. {
  4101. CheckIfUsable();
  4102. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(m_pSteamUserStats);
  4103. return result;
  4104. }
  4105. public override ulong RequestGlobalAchievementPercentages()
  4106. {
  4107. CheckIfUsable();
  4108. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(m_pSteamUserStats);
  4109. return result;
  4110. }
  4111. public override int GetMostAchievedAchievementInfo(string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved)
  4112. {
  4113. CheckIfUsable();
  4114. pflPercent = 0;
  4115. pbAchieved = false;
  4116. int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(m_pSteamUserStats,pchName,unNameBufLen,ref pflPercent,ref pbAchieved);
  4117. return result;
  4118. }
  4119. public override int GetNextMostAchievedAchievementInfo(int iIteratorPrevious,string pchName,uint unNameBufLen,ref float pflPercent,ref bool pbAchieved)
  4120. {
  4121. CheckIfUsable();
  4122. pflPercent = 0;
  4123. pbAchieved = false;
  4124. int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(m_pSteamUserStats,iIteratorPrevious,pchName,unNameBufLen,ref pflPercent,ref pbAchieved);
  4125. return result;
  4126. }
  4127. public override bool GetAchievementAchievedPercent(string pchName,ref float pflPercent)
  4128. {
  4129. CheckIfUsable();
  4130. pflPercent = 0;
  4131. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(m_pSteamUserStats,pchName,ref pflPercent);
  4132. return result;
  4133. }
  4134. public override ulong RequestGlobalStats(int nHistoryDays)
  4135. {
  4136. CheckIfUsable();
  4137. ulong result = NativeEntrypoints.SteamAPI_ISteamUserStats_RequestGlobalStats(m_pSteamUserStats,nHistoryDays);
  4138. return result;
  4139. }
  4140. public override bool GetGlobalStat(string pchStatName,ref long pData)
  4141. {
  4142. CheckIfUsable();
  4143. pData = 0;
  4144. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStat(m_pSteamUserStats,pchStatName,ref pData);
  4145. return result;
  4146. }
  4147. public override bool GetGlobalStat0(string pchStatName,ref double pData)
  4148. {
  4149. CheckIfUsable();
  4150. pData = 0;
  4151. bool result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStat0(m_pSteamUserStats,pchStatName,ref pData);
  4152. return result;
  4153. }
  4154. public override int GetGlobalStatHistory(string pchStatName,long [] pData)
  4155. {
  4156. CheckIfUsable();
  4157. int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStatHistory(m_pSteamUserStats,pchStatName,pData,(uint) pData.Length);
  4158. return result;
  4159. }
  4160. public override int GetGlobalStatHistory0(string pchStatName,double [] pData)
  4161. {
  4162. CheckIfUsable();
  4163. int result = NativeEntrypoints.SteamAPI_ISteamUserStats_GetGlobalStatHistory0(m_pSteamUserStats,pchStatName,pData,(uint) pData.Length);
  4164. return result;
  4165. }
  4166. }
  4167. public class CSteamApps : ISteamApps
  4168. {
  4169. public CSteamApps(IntPtr SteamApps)
  4170. {
  4171. m_pSteamApps = SteamApps;
  4172. }
  4173. IntPtr m_pSteamApps;
  4174. public override IntPtr GetIntPtr() { return m_pSteamApps; }
  4175. private void CheckIfUsable()
  4176. {
  4177. if (m_pSteamApps == IntPtr.Zero)
  4178. {
  4179. throw new Exception("Steam Pointer not configured");
  4180. }
  4181. }
  4182. public override bool BIsSubscribed()
  4183. {
  4184. CheckIfUsable();
  4185. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsSubscribed(m_pSteamApps);
  4186. return result;
  4187. }
  4188. public override bool BIsLowViolence()
  4189. {
  4190. CheckIfUsable();
  4191. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsLowViolence(m_pSteamApps);
  4192. return result;
  4193. }
  4194. public override bool BIsCybercafe()
  4195. {
  4196. CheckIfUsable();
  4197. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsCybercafe(m_pSteamApps);
  4198. return result;
  4199. }
  4200. public override bool BIsVACBanned()
  4201. {
  4202. CheckIfUsable();
  4203. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsVACBanned(m_pSteamApps);
  4204. return result;
  4205. }
  4206. public override string GetCurrentGameLanguage()
  4207. {
  4208. CheckIfUsable();
  4209. IntPtr result = NativeEntrypoints.SteamAPI_ISteamApps_GetCurrentGameLanguage(m_pSteamApps);
  4210. return (string) Marshal.PtrToStructure(result, typeof(string));
  4211. }
  4212. public override string GetAvailableGameLanguages()
  4213. {
  4214. CheckIfUsable();
  4215. IntPtr result = NativeEntrypoints.SteamAPI_ISteamApps_GetAvailableGameLanguages(m_pSteamApps);
  4216. return (string) Marshal.PtrToStructure(result, typeof(string));
  4217. }
  4218. public override bool BIsSubscribedApp(uint appID)
  4219. {
  4220. CheckIfUsable();
  4221. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsSubscribedApp(m_pSteamApps,appID);
  4222. return result;
  4223. }
  4224. public override bool BIsDlcInstalled(uint appID)
  4225. {
  4226. CheckIfUsable();
  4227. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsDlcInstalled(m_pSteamApps,appID);
  4228. return result;
  4229. }
  4230. public override uint GetEarliestPurchaseUnixTime(uint nAppID)
  4231. {
  4232. CheckIfUsable();
  4233. uint result = NativeEntrypoints.SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(m_pSteamApps,nAppID);
  4234. return result;
  4235. }
  4236. public override bool BIsSubscribedFromFreeWeekend()
  4237. {
  4238. CheckIfUsable();
  4239. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(m_pSteamApps);
  4240. return result;
  4241. }
  4242. public override int GetDLCCount()
  4243. {
  4244. CheckIfUsable();
  4245. int result = NativeEntrypoints.SteamAPI_ISteamApps_GetDLCCount(m_pSteamApps);
  4246. return result;
  4247. }
  4248. public override bool BGetDLCDataByIndex(int iDLC,ref uint pAppID,ref bool pbAvailable,string pchName,int cchNameBufferSize)
  4249. {
  4250. CheckIfUsable();
  4251. pAppID = 0;
  4252. pbAvailable = false;
  4253. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BGetDLCDataByIndex(m_pSteamApps,iDLC,ref pAppID,ref pbAvailable,pchName,cchNameBufferSize);
  4254. return result;
  4255. }
  4256. public override void InstallDLC(uint nAppID)
  4257. {
  4258. CheckIfUsable();
  4259. NativeEntrypoints.SteamAPI_ISteamApps_InstallDLC(m_pSteamApps,nAppID);
  4260. }
  4261. public override void UninstallDLC(uint nAppID)
  4262. {
  4263. CheckIfUsable();
  4264. NativeEntrypoints.SteamAPI_ISteamApps_UninstallDLC(m_pSteamApps,nAppID);
  4265. }
  4266. public override void RequestAppProofOfPurchaseKey(uint nAppID)
  4267. {
  4268. CheckIfUsable();
  4269. NativeEntrypoints.SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(m_pSteamApps,nAppID);
  4270. }
  4271. public override bool GetCurrentBetaName(string pchName,int cchNameBufferSize)
  4272. {
  4273. CheckIfUsable();
  4274. bool result = NativeEntrypoints.SteamAPI_ISteamApps_GetCurrentBetaName(m_pSteamApps,pchName,cchNameBufferSize);
  4275. return result;
  4276. }
  4277. public override bool MarkContentCorrupt(bool bMissingFilesOnly)
  4278. {
  4279. CheckIfUsable();
  4280. bool result = NativeEntrypoints.SteamAPI_ISteamApps_MarkContentCorrupt(m_pSteamApps,bMissingFilesOnly);
  4281. return result;
  4282. }
  4283. public override uint GetInstalledDepots(uint appID,ref uint pvecDepots,uint cMaxDepots)
  4284. {
  4285. CheckIfUsable();
  4286. pvecDepots = 0;
  4287. uint result = NativeEntrypoints.SteamAPI_ISteamApps_GetInstalledDepots(m_pSteamApps,appID,ref pvecDepots,cMaxDepots);
  4288. return result;
  4289. }
  4290. public override uint GetAppInstallDir(uint appID,string pchFolder,uint cchFolderBufferSize)
  4291. {
  4292. CheckIfUsable();
  4293. uint result = NativeEntrypoints.SteamAPI_ISteamApps_GetAppInstallDir(m_pSteamApps,appID,pchFolder,cchFolderBufferSize);
  4294. return result;
  4295. }
  4296. public override bool BIsAppInstalled(uint appID)
  4297. {
  4298. CheckIfUsable();
  4299. bool result = NativeEntrypoints.SteamAPI_ISteamApps_BIsAppInstalled(m_pSteamApps,appID);
  4300. return result;
  4301. }
  4302. public override ulong GetAppOwner()
  4303. {
  4304. CheckIfUsable();
  4305. ulong result = NativeEntrypoints.SteamAPI_ISteamApps_GetAppOwner(m_pSteamApps);
  4306. return result;
  4307. }
  4308. public override string GetLaunchQueryParam(string pchKey)
  4309. {
  4310. CheckIfUsable();
  4311. IntPtr result = NativeEntrypoints.SteamAPI_ISteamApps_GetLaunchQueryParam(m_pSteamApps,pchKey);
  4312. return (string) Marshal.PtrToStructure(result, typeof(string));
  4313. }
  4314. public override bool GetDlcDownloadProgress(uint nAppID,ref ulong punBytesDownloaded,ref ulong punBytesTotal)
  4315. {
  4316. CheckIfUsable();
  4317. punBytesDownloaded = 0;
  4318. punBytesTotal = 0;
  4319. bool result = NativeEntrypoints.SteamAPI_ISteamApps_GetDlcDownloadProgress(m_pSteamApps,nAppID,ref punBytesDownloaded,ref punBytesTotal);
  4320. return result;
  4321. }
  4322. public override int GetAppBuildId()
  4323. {
  4324. CheckIfUsable();
  4325. int result = NativeEntrypoints.SteamAPI_ISteamApps_GetAppBuildId(m_pSteamApps);
  4326. return result;
  4327. }
  4328. }
  4329. public class CSteamNetworking : ISteamNetworking
  4330. {
  4331. public CSteamNetworking(IntPtr SteamNetworking)
  4332. {
  4333. m_pSteamNetworking = SteamNetworking;
  4334. }
  4335. IntPtr m_pSteamNetworking;
  4336. public override IntPtr GetIntPtr() { return m_pSteamNetworking; }
  4337. private void CheckIfUsable()
  4338. {
  4339. if (m_pSteamNetworking == IntPtr.Zero)
  4340. {
  4341. throw new Exception("Steam Pointer not configured");
  4342. }
  4343. }
  4344. public override bool SendP2PPacket(ulong steamIDRemote,IntPtr pubData,uint cubData,uint eP2PSendType,int nChannel)
  4345. {
  4346. CheckIfUsable();
  4347. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_SendP2PPacket(m_pSteamNetworking,steamIDRemote,pubData,cubData,eP2PSendType,nChannel);
  4348. return result;
  4349. }
  4350. public override bool IsP2PPacketAvailable(ref uint pcubMsgSize,int nChannel)
  4351. {
  4352. CheckIfUsable();
  4353. pcubMsgSize = 0;
  4354. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_IsP2PPacketAvailable(m_pSteamNetworking,ref pcubMsgSize,nChannel);
  4355. return result;
  4356. }
  4357. public override bool ReadP2PPacket(IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref CSteamID psteamIDRemote,int nChannel)
  4358. {
  4359. CheckIfUsable();
  4360. pcubMsgSize = 0;
  4361. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_ReadP2PPacket(m_pSteamNetworking,pubDest,cubDest,ref pcubMsgSize,ref psteamIDRemote,nChannel);
  4362. return result;
  4363. }
  4364. public override bool AcceptP2PSessionWithUser(ulong steamIDRemote)
  4365. {
  4366. CheckIfUsable();
  4367. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(m_pSteamNetworking,steamIDRemote);
  4368. return result;
  4369. }
  4370. public override bool CloseP2PSessionWithUser(ulong steamIDRemote)
  4371. {
  4372. CheckIfUsable();
  4373. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(m_pSteamNetworking,steamIDRemote);
  4374. return result;
  4375. }
  4376. public override bool CloseP2PChannelWithUser(ulong steamIDRemote,int nChannel)
  4377. {
  4378. CheckIfUsable();
  4379. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(m_pSteamNetworking,steamIDRemote,nChannel);
  4380. return result;
  4381. }
  4382. public override bool GetP2PSessionState(ulong steamIDRemote,ref P2PSessionState_t pConnectionState)
  4383. {
  4384. CheckIfUsable();
  4385. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetP2PSessionState(m_pSteamNetworking,steamIDRemote,ref pConnectionState);
  4386. return result;
  4387. }
  4388. public override bool AllowP2PPacketRelay(bool bAllow)
  4389. {
  4390. CheckIfUsable();
  4391. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_AllowP2PPacketRelay(m_pSteamNetworking,bAllow);
  4392. return result;
  4393. }
  4394. public override uint CreateListenSocket(int nVirtualP2PPort,uint nIP,char nPort,bool bAllowUseOfPacketRelay)
  4395. {
  4396. CheckIfUsable();
  4397. uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_CreateListenSocket(m_pSteamNetworking,nVirtualP2PPort,nIP,nPort,bAllowUseOfPacketRelay);
  4398. return result;
  4399. }
  4400. public override uint CreateP2PConnectionSocket(ulong steamIDTarget,int nVirtualPort,int nTimeoutSec,bool bAllowUseOfPacketRelay)
  4401. {
  4402. CheckIfUsable();
  4403. uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(m_pSteamNetworking,steamIDTarget,nVirtualPort,nTimeoutSec,bAllowUseOfPacketRelay);
  4404. return result;
  4405. }
  4406. public override uint CreateConnectionSocket(uint nIP,char nPort,int nTimeoutSec)
  4407. {
  4408. CheckIfUsable();
  4409. uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_CreateConnectionSocket(m_pSteamNetworking,nIP,nPort,nTimeoutSec);
  4410. return result;
  4411. }
  4412. public override bool DestroySocket(uint hSocket,bool bNotifyRemoteEnd)
  4413. {
  4414. CheckIfUsable();
  4415. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_DestroySocket(m_pSteamNetworking,hSocket,bNotifyRemoteEnd);
  4416. return result;
  4417. }
  4418. public override bool DestroyListenSocket(uint hSocket,bool bNotifyRemoteEnd)
  4419. {
  4420. CheckIfUsable();
  4421. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_DestroyListenSocket(m_pSteamNetworking,hSocket,bNotifyRemoteEnd);
  4422. return result;
  4423. }
  4424. public override bool SendDataOnSocket(uint hSocket,IntPtr pubData,uint cubData,bool bReliable)
  4425. {
  4426. CheckIfUsable();
  4427. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_SendDataOnSocket(m_pSteamNetworking,hSocket,pubData,cubData,bReliable);
  4428. return result;
  4429. }
  4430. public override bool IsDataAvailableOnSocket(uint hSocket,ref uint pcubMsgSize)
  4431. {
  4432. CheckIfUsable();
  4433. pcubMsgSize = 0;
  4434. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(m_pSteamNetworking,hSocket,ref pcubMsgSize);
  4435. return result;
  4436. }
  4437. public override bool RetrieveDataFromSocket(uint hSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize)
  4438. {
  4439. CheckIfUsable();
  4440. pcubMsgSize = 0;
  4441. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_RetrieveDataFromSocket(m_pSteamNetworking,hSocket,pubDest,cubDest,ref pcubMsgSize);
  4442. return result;
  4443. }
  4444. public override bool IsDataAvailable(uint hListenSocket,ref uint pcubMsgSize,ref uint phSocket)
  4445. {
  4446. CheckIfUsable();
  4447. pcubMsgSize = 0;
  4448. phSocket = 0;
  4449. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_IsDataAvailable(m_pSteamNetworking,hListenSocket,ref pcubMsgSize,ref phSocket);
  4450. return result;
  4451. }
  4452. public override bool RetrieveData(uint hListenSocket,IntPtr pubDest,uint cubDest,ref uint pcubMsgSize,ref uint phSocket)
  4453. {
  4454. CheckIfUsable();
  4455. pcubMsgSize = 0;
  4456. phSocket = 0;
  4457. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_RetrieveData(m_pSteamNetworking,hListenSocket,pubDest,cubDest,ref pcubMsgSize,ref phSocket);
  4458. return result;
  4459. }
  4460. public override bool GetSocketInfo(uint hSocket,ref CSteamID pSteamIDRemote,ref int peSocketStatus,ref uint punIPRemote,ref char punPortRemote)
  4461. {
  4462. CheckIfUsable();
  4463. peSocketStatus = 0;
  4464. punIPRemote = 0;
  4465. punPortRemote = (char) 0;
  4466. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetSocketInfo(m_pSteamNetworking,hSocket,ref pSteamIDRemote,ref peSocketStatus,ref punIPRemote,ref punPortRemote);
  4467. return result;
  4468. }
  4469. public override bool GetListenSocketInfo(uint hListenSocket,ref uint pnIP,ref char pnPort)
  4470. {
  4471. CheckIfUsable();
  4472. pnIP = 0;
  4473. pnPort = (char) 0;
  4474. bool result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetListenSocketInfo(m_pSteamNetworking,hListenSocket,ref pnIP,ref pnPort);
  4475. return result;
  4476. }
  4477. public override uint GetSocketConnectionType(uint hSocket)
  4478. {
  4479. CheckIfUsable();
  4480. uint result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetSocketConnectionType(m_pSteamNetworking,hSocket);
  4481. return result;
  4482. }
  4483. public override int GetMaxPacketSize(uint hSocket)
  4484. {
  4485. CheckIfUsable();
  4486. int result = NativeEntrypoints.SteamAPI_ISteamNetworking_GetMaxPacketSize(m_pSteamNetworking,hSocket);
  4487. return result;
  4488. }
  4489. }
  4490. public class CSteamScreenshots : ISteamScreenshots
  4491. {
  4492. public CSteamScreenshots(IntPtr SteamScreenshots)
  4493. {
  4494. m_pSteamScreenshots = SteamScreenshots;
  4495. }
  4496. IntPtr m_pSteamScreenshots;
  4497. public override IntPtr GetIntPtr() { return m_pSteamScreenshots; }
  4498. private void CheckIfUsable()
  4499. {
  4500. if (m_pSteamScreenshots == IntPtr.Zero)
  4501. {
  4502. throw new Exception("Steam Pointer not configured");
  4503. }
  4504. }
  4505. public override uint WriteScreenshot(IntPtr pubRGB,uint cubRGB,int nWidth,int nHeight)
  4506. {
  4507. CheckIfUsable();
  4508. uint result = NativeEntrypoints.SteamAPI_ISteamScreenshots_WriteScreenshot(m_pSteamScreenshots,pubRGB,cubRGB,nWidth,nHeight);
  4509. return result;
  4510. }
  4511. public override uint AddScreenshotToLibrary(string pchFilename,string pchThumbnailFilename,int nWidth,int nHeight)
  4512. {
  4513. CheckIfUsable();
  4514. uint result = NativeEntrypoints.SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(m_pSteamScreenshots,pchFilename,pchThumbnailFilename,nWidth,nHeight);
  4515. return result;
  4516. }
  4517. public override void TriggerScreenshot()
  4518. {
  4519. CheckIfUsable();
  4520. NativeEntrypoints.SteamAPI_ISteamScreenshots_TriggerScreenshot(m_pSteamScreenshots);
  4521. }
  4522. public override void HookScreenshots(bool bHook)
  4523. {
  4524. CheckIfUsable();
  4525. NativeEntrypoints.SteamAPI_ISteamScreenshots_HookScreenshots(m_pSteamScreenshots,bHook);
  4526. }
  4527. public override bool SetLocation(uint hScreenshot,string pchLocation)
  4528. {
  4529. CheckIfUsable();
  4530. bool result = NativeEntrypoints.SteamAPI_ISteamScreenshots_SetLocation(m_pSteamScreenshots,hScreenshot,pchLocation);
  4531. return result;
  4532. }
  4533. public override bool TagUser(uint hScreenshot,ulong steamID)
  4534. {
  4535. CheckIfUsable();
  4536. bool result = NativeEntrypoints.SteamAPI_ISteamScreenshots_TagUser(m_pSteamScreenshots,hScreenshot,steamID);
  4537. return result;
  4538. }
  4539. public override bool TagPublishedFile(uint hScreenshot,ulong unPublishedFileID)
  4540. {
  4541. CheckIfUsable();
  4542. bool result = NativeEntrypoints.SteamAPI_ISteamScreenshots_TagPublishedFile(m_pSteamScreenshots,hScreenshot,unPublishedFileID);
  4543. return result;
  4544. }
  4545. }
  4546. public class CSteamMusic : ISteamMusic
  4547. {
  4548. public CSteamMusic(IntPtr SteamMusic)
  4549. {
  4550. m_pSteamMusic = SteamMusic;
  4551. }
  4552. IntPtr m_pSteamMusic;
  4553. public override IntPtr GetIntPtr() { return m_pSteamMusic; }
  4554. private void CheckIfUsable()
  4555. {
  4556. if (m_pSteamMusic == IntPtr.Zero)
  4557. {
  4558. throw new Exception("Steam Pointer not configured");
  4559. }
  4560. }
  4561. public override bool BIsEnabled()
  4562. {
  4563. CheckIfUsable();
  4564. bool result = NativeEntrypoints.SteamAPI_ISteamMusic_BIsEnabled(m_pSteamMusic);
  4565. return result;
  4566. }
  4567. public override bool BIsPlaying()
  4568. {
  4569. CheckIfUsable();
  4570. bool result = NativeEntrypoints.SteamAPI_ISteamMusic_BIsPlaying(m_pSteamMusic);
  4571. return result;
  4572. }
  4573. public override int GetPlaybackStatus()
  4574. {
  4575. CheckIfUsable();
  4576. int result = NativeEntrypoints.SteamAPI_ISteamMusic_GetPlaybackStatus(m_pSteamMusic);
  4577. return result;
  4578. }
  4579. public override void Play()
  4580. {
  4581. CheckIfUsable();
  4582. NativeEntrypoints.SteamAPI_ISteamMusic_Play(m_pSteamMusic);
  4583. }
  4584. public override void Pause()
  4585. {
  4586. CheckIfUsable();
  4587. NativeEntrypoints.SteamAPI_ISteamMusic_Pause(m_pSteamMusic);
  4588. }
  4589. public override void PlayPrevious()
  4590. {
  4591. CheckIfUsable();
  4592. NativeEntrypoints.SteamAPI_ISteamMusic_PlayPrevious(m_pSteamMusic);
  4593. }
  4594. public override void PlayNext()
  4595. {
  4596. CheckIfUsable();
  4597. NativeEntrypoints.SteamAPI_ISteamMusic_PlayNext(m_pSteamMusic);
  4598. }
  4599. public override void SetVolume(float flVolume)
  4600. {
  4601. CheckIfUsable();
  4602. NativeEntrypoints.SteamAPI_ISteamMusic_SetVolume(m_pSteamMusic,flVolume);
  4603. }
  4604. public override float GetVolume()
  4605. {
  4606. CheckIfUsable();
  4607. float result = NativeEntrypoints.SteamAPI_ISteamMusic_GetVolume(m_pSteamMusic);
  4608. return result;
  4609. }
  4610. }
  4611. public class CSteamMusicRemote : ISteamMusicRemote
  4612. {
  4613. public CSteamMusicRemote(IntPtr SteamMusicRemote)
  4614. {
  4615. m_pSteamMusicRemote = SteamMusicRemote;
  4616. }
  4617. IntPtr m_pSteamMusicRemote;
  4618. public override IntPtr GetIntPtr() { return m_pSteamMusicRemote; }
  4619. private void CheckIfUsable()
  4620. {
  4621. if (m_pSteamMusicRemote == IntPtr.Zero)
  4622. {
  4623. throw new Exception("Steam Pointer not configured");
  4624. }
  4625. }
  4626. public override bool RegisterSteamMusicRemote(string pchName)
  4627. {
  4628. CheckIfUsable();
  4629. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(m_pSteamMusicRemote,pchName);
  4630. return result;
  4631. }
  4632. public override bool DeregisterSteamMusicRemote()
  4633. {
  4634. CheckIfUsable();
  4635. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(m_pSteamMusicRemote);
  4636. return result;
  4637. }
  4638. public override bool BIsCurrentMusicRemote()
  4639. {
  4640. CheckIfUsable();
  4641. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(m_pSteamMusicRemote);
  4642. return result;
  4643. }
  4644. public override bool BActivationSuccess(bool bValue)
  4645. {
  4646. CheckIfUsable();
  4647. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_BActivationSuccess(m_pSteamMusicRemote,bValue);
  4648. return result;
  4649. }
  4650. public override bool SetDisplayName(string pchDisplayName)
  4651. {
  4652. CheckIfUsable();
  4653. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetDisplayName(m_pSteamMusicRemote,pchDisplayName);
  4654. return result;
  4655. }
  4656. public override bool SetPNGIcon_64x64(IntPtr pvBuffer,uint cbBufferLength)
  4657. {
  4658. CheckIfUsable();
  4659. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(m_pSteamMusicRemote,pvBuffer,cbBufferLength);
  4660. return result;
  4661. }
  4662. public override bool EnablePlayPrevious(bool bValue)
  4663. {
  4664. CheckIfUsable();
  4665. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnablePlayPrevious(m_pSteamMusicRemote,bValue);
  4666. return result;
  4667. }
  4668. public override bool EnablePlayNext(bool bValue)
  4669. {
  4670. CheckIfUsable();
  4671. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnablePlayNext(m_pSteamMusicRemote,bValue);
  4672. return result;
  4673. }
  4674. public override bool EnableShuffled(bool bValue)
  4675. {
  4676. CheckIfUsable();
  4677. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnableShuffled(m_pSteamMusicRemote,bValue);
  4678. return result;
  4679. }
  4680. public override bool EnableLooped(bool bValue)
  4681. {
  4682. CheckIfUsable();
  4683. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnableLooped(m_pSteamMusicRemote,bValue);
  4684. return result;
  4685. }
  4686. public override bool EnableQueue(bool bValue)
  4687. {
  4688. CheckIfUsable();
  4689. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnableQueue(m_pSteamMusicRemote,bValue);
  4690. return result;
  4691. }
  4692. public override bool EnablePlaylists(bool bValue)
  4693. {
  4694. CheckIfUsable();
  4695. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_EnablePlaylists(m_pSteamMusicRemote,bValue);
  4696. return result;
  4697. }
  4698. public override bool UpdatePlaybackStatus(int nStatus)
  4699. {
  4700. CheckIfUsable();
  4701. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(m_pSteamMusicRemote,nStatus);
  4702. return result;
  4703. }
  4704. public override bool UpdateShuffled(bool bValue)
  4705. {
  4706. CheckIfUsable();
  4707. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateShuffled(m_pSteamMusicRemote,bValue);
  4708. return result;
  4709. }
  4710. public override bool UpdateLooped(bool bValue)
  4711. {
  4712. CheckIfUsable();
  4713. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateLooped(m_pSteamMusicRemote,bValue);
  4714. return result;
  4715. }
  4716. public override bool UpdateVolume(float flValue)
  4717. {
  4718. CheckIfUsable();
  4719. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateVolume(m_pSteamMusicRemote,flValue);
  4720. return result;
  4721. }
  4722. public override bool CurrentEntryWillChange()
  4723. {
  4724. CheckIfUsable();
  4725. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(m_pSteamMusicRemote);
  4726. return result;
  4727. }
  4728. public override bool CurrentEntryIsAvailable(bool bAvailable)
  4729. {
  4730. CheckIfUsable();
  4731. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(m_pSteamMusicRemote,bAvailable);
  4732. return result;
  4733. }
  4734. public override bool UpdateCurrentEntryText(string pchText)
  4735. {
  4736. CheckIfUsable();
  4737. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(m_pSteamMusicRemote,pchText);
  4738. return result;
  4739. }
  4740. public override bool UpdateCurrentEntryElapsedSeconds(int nValue)
  4741. {
  4742. CheckIfUsable();
  4743. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(m_pSteamMusicRemote,nValue);
  4744. return result;
  4745. }
  4746. public override bool UpdateCurrentEntryCoverArt(IntPtr pvBuffer,uint cbBufferLength)
  4747. {
  4748. CheckIfUsable();
  4749. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(m_pSteamMusicRemote,pvBuffer,cbBufferLength);
  4750. return result;
  4751. }
  4752. public override bool CurrentEntryDidChange()
  4753. {
  4754. CheckIfUsable();
  4755. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(m_pSteamMusicRemote);
  4756. return result;
  4757. }
  4758. public override bool QueueWillChange()
  4759. {
  4760. CheckIfUsable();
  4761. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_QueueWillChange(m_pSteamMusicRemote);
  4762. return result;
  4763. }
  4764. public override bool ResetQueueEntries()
  4765. {
  4766. CheckIfUsable();
  4767. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_ResetQueueEntries(m_pSteamMusicRemote);
  4768. return result;
  4769. }
  4770. public override bool SetQueueEntry(int nID,int nPosition,string pchEntryText)
  4771. {
  4772. CheckIfUsable();
  4773. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetQueueEntry(m_pSteamMusicRemote,nID,nPosition,pchEntryText);
  4774. return result;
  4775. }
  4776. public override bool SetCurrentQueueEntry(int nID)
  4777. {
  4778. CheckIfUsable();
  4779. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(m_pSteamMusicRemote,nID);
  4780. return result;
  4781. }
  4782. public override bool QueueDidChange()
  4783. {
  4784. CheckIfUsable();
  4785. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_QueueDidChange(m_pSteamMusicRemote);
  4786. return result;
  4787. }
  4788. public override bool PlaylistWillChange()
  4789. {
  4790. CheckIfUsable();
  4791. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_PlaylistWillChange(m_pSteamMusicRemote);
  4792. return result;
  4793. }
  4794. public override bool ResetPlaylistEntries()
  4795. {
  4796. CheckIfUsable();
  4797. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(m_pSteamMusicRemote);
  4798. return result;
  4799. }
  4800. public override bool SetPlaylistEntry(int nID,int nPosition,string pchEntryText)
  4801. {
  4802. CheckIfUsable();
  4803. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetPlaylistEntry(m_pSteamMusicRemote,nID,nPosition,pchEntryText);
  4804. return result;
  4805. }
  4806. public override bool SetCurrentPlaylistEntry(int nID)
  4807. {
  4808. CheckIfUsable();
  4809. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(m_pSteamMusicRemote,nID);
  4810. return result;
  4811. }
  4812. public override bool PlaylistDidChange()
  4813. {
  4814. CheckIfUsable();
  4815. bool result = NativeEntrypoints.SteamAPI_ISteamMusicRemote_PlaylistDidChange(m_pSteamMusicRemote);
  4816. return result;
  4817. }
  4818. }
  4819. public class CSteamHTTP : ISteamHTTP
  4820. {
  4821. public CSteamHTTP(IntPtr SteamHTTP)
  4822. {
  4823. m_pSteamHTTP = SteamHTTP;
  4824. }
  4825. IntPtr m_pSteamHTTP;
  4826. public override IntPtr GetIntPtr() { return m_pSteamHTTP; }
  4827. private void CheckIfUsable()
  4828. {
  4829. if (m_pSteamHTTP == IntPtr.Zero)
  4830. {
  4831. throw new Exception("Steam Pointer not configured");
  4832. }
  4833. }
  4834. public override uint CreateHTTPRequest(uint eHTTPRequestMethod,string pchAbsoluteURL)
  4835. {
  4836. CheckIfUsable();
  4837. uint result = NativeEntrypoints.SteamAPI_ISteamHTTP_CreateHTTPRequest(m_pSteamHTTP,eHTTPRequestMethod,pchAbsoluteURL);
  4838. return result;
  4839. }
  4840. public override bool SetHTTPRequestContextValue(uint hRequest,ulong ulContextValue)
  4841. {
  4842. CheckIfUsable();
  4843. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(m_pSteamHTTP,hRequest,ulContextValue);
  4844. return result;
  4845. }
  4846. public override bool SetHTTPRequestNetworkActivityTimeout(uint hRequest,uint unTimeoutSeconds)
  4847. {
  4848. CheckIfUsable();
  4849. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(m_pSteamHTTP,hRequest,unTimeoutSeconds);
  4850. return result;
  4851. }
  4852. public override bool SetHTTPRequestHeaderValue(uint hRequest,string pchHeaderName,string pchHeaderValue)
  4853. {
  4854. CheckIfUsable();
  4855. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(m_pSteamHTTP,hRequest,pchHeaderName,pchHeaderValue);
  4856. return result;
  4857. }
  4858. public override bool SetHTTPRequestGetOrPostParameter(uint hRequest,string pchParamName,string pchParamValue)
  4859. {
  4860. CheckIfUsable();
  4861. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(m_pSteamHTTP,hRequest,pchParamName,pchParamValue);
  4862. return result;
  4863. }
  4864. public override bool SendHTTPRequest(uint hRequest,ref ulong pCallHandle)
  4865. {
  4866. CheckIfUsable();
  4867. pCallHandle = 0;
  4868. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SendHTTPRequest(m_pSteamHTTP,hRequest,ref pCallHandle);
  4869. return result;
  4870. }
  4871. public override bool SendHTTPRequestAndStreamResponse(uint hRequest,ref ulong pCallHandle)
  4872. {
  4873. CheckIfUsable();
  4874. pCallHandle = 0;
  4875. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(m_pSteamHTTP,hRequest,ref pCallHandle);
  4876. return result;
  4877. }
  4878. public override bool DeferHTTPRequest(uint hRequest)
  4879. {
  4880. CheckIfUsable();
  4881. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_DeferHTTPRequest(m_pSteamHTTP,hRequest);
  4882. return result;
  4883. }
  4884. public override bool PrioritizeHTTPRequest(uint hRequest)
  4885. {
  4886. CheckIfUsable();
  4887. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(m_pSteamHTTP,hRequest);
  4888. return result;
  4889. }
  4890. public override bool GetHTTPResponseHeaderSize(uint hRequest,string pchHeaderName,ref uint unResponseHeaderSize)
  4891. {
  4892. CheckIfUsable();
  4893. unResponseHeaderSize = 0;
  4894. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(m_pSteamHTTP,hRequest,pchHeaderName,ref unResponseHeaderSize);
  4895. return result;
  4896. }
  4897. public override bool GetHTTPResponseHeaderValue(uint hRequest,string pchHeaderName,IntPtr pHeaderValueBuffer,uint unBufferSize)
  4898. {
  4899. CheckIfUsable();
  4900. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(m_pSteamHTTP,hRequest,pchHeaderName,pHeaderValueBuffer,unBufferSize);
  4901. return result;
  4902. }
  4903. public override bool GetHTTPResponseBodySize(uint hRequest,ref uint unBodySize)
  4904. {
  4905. CheckIfUsable();
  4906. unBodySize = 0;
  4907. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(m_pSteamHTTP,hRequest,ref unBodySize);
  4908. return result;
  4909. }
  4910. public override bool GetHTTPResponseBodyData(uint hRequest,IntPtr pBodyDataBuffer,uint unBufferSize)
  4911. {
  4912. CheckIfUsable();
  4913. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(m_pSteamHTTP,hRequest,pBodyDataBuffer,unBufferSize);
  4914. return result;
  4915. }
  4916. public override bool GetHTTPStreamingResponseBodyData(uint hRequest,uint cOffset,IntPtr pBodyDataBuffer,uint unBufferSize)
  4917. {
  4918. CheckIfUsable();
  4919. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(m_pSteamHTTP,hRequest,cOffset,pBodyDataBuffer,unBufferSize);
  4920. return result;
  4921. }
  4922. public override bool ReleaseHTTPRequest(uint hRequest)
  4923. {
  4924. CheckIfUsable();
  4925. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_ReleaseHTTPRequest(m_pSteamHTTP,hRequest);
  4926. return result;
  4927. }
  4928. public override bool GetHTTPDownloadProgressPct(uint hRequest,ref float pflPercentOut)
  4929. {
  4930. CheckIfUsable();
  4931. pflPercentOut = 0;
  4932. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(m_pSteamHTTP,hRequest,ref pflPercentOut);
  4933. return result;
  4934. }
  4935. public override bool SetHTTPRequestRawPostBody(uint hRequest,string pchContentType,IntPtr pubBody,uint unBodyLen)
  4936. {
  4937. CheckIfUsable();
  4938. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(m_pSteamHTTP,hRequest,pchContentType,pubBody,unBodyLen);
  4939. return result;
  4940. }
  4941. public override uint CreateCookieContainer(bool bAllowResponsesToModify)
  4942. {
  4943. CheckIfUsable();
  4944. uint result = NativeEntrypoints.SteamAPI_ISteamHTTP_CreateCookieContainer(m_pSteamHTTP,bAllowResponsesToModify);
  4945. return result;
  4946. }
  4947. public override bool ReleaseCookieContainer(uint hCookieContainer)
  4948. {
  4949. CheckIfUsable();
  4950. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_ReleaseCookieContainer(m_pSteamHTTP,hCookieContainer);
  4951. return result;
  4952. }
  4953. public override bool SetCookie(uint hCookieContainer,string pchHost,string pchUrl,string pchCookie)
  4954. {
  4955. CheckIfUsable();
  4956. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetCookie(m_pSteamHTTP,hCookieContainer,pchHost,pchUrl,pchCookie);
  4957. return result;
  4958. }
  4959. public override bool SetHTTPRequestCookieContainer(uint hRequest,uint hCookieContainer)
  4960. {
  4961. CheckIfUsable();
  4962. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(m_pSteamHTTP,hRequest,hCookieContainer);
  4963. return result;
  4964. }
  4965. public override bool SetHTTPRequestUserAgentInfo(uint hRequest,string pchUserAgentInfo)
  4966. {
  4967. CheckIfUsable();
  4968. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(m_pSteamHTTP,hRequest,pchUserAgentInfo);
  4969. return result;
  4970. }
  4971. public override bool SetHTTPRequestRequiresVerifiedCertificate(uint hRequest,bool bRequireVerifiedCertificate)
  4972. {
  4973. CheckIfUsable();
  4974. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(m_pSteamHTTP,hRequest,bRequireVerifiedCertificate);
  4975. return result;
  4976. }
  4977. public override bool SetHTTPRequestAbsoluteTimeoutMS(uint hRequest,uint unMilliseconds)
  4978. {
  4979. CheckIfUsable();
  4980. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(m_pSteamHTTP,hRequest,unMilliseconds);
  4981. return result;
  4982. }
  4983. public override bool GetHTTPRequestWasTimedOut(uint hRequest,ref bool pbWasTimedOut)
  4984. {
  4985. CheckIfUsable();
  4986. pbWasTimedOut = false;
  4987. bool result = NativeEntrypoints.SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(m_pSteamHTTP,hRequest,ref pbWasTimedOut);
  4988. return result;
  4989. }
  4990. }
  4991. public class CSteamUnifiedMessages : ISteamUnifiedMessages
  4992. {
  4993. public CSteamUnifiedMessages(IntPtr SteamUnifiedMessages)
  4994. {
  4995. m_pSteamUnifiedMessages = SteamUnifiedMessages;
  4996. }
  4997. IntPtr m_pSteamUnifiedMessages;
  4998. public override IntPtr GetIntPtr() { return m_pSteamUnifiedMessages; }
  4999. private void CheckIfUsable()
  5000. {
  5001. if (m_pSteamUnifiedMessages == IntPtr.Zero)
  5002. {
  5003. throw new Exception("Steam Pointer not configured");
  5004. }
  5005. }
  5006. public override ulong SendMethod(string pchServiceMethod,IntPtr pRequestBuffer,uint unRequestBufferSize,ulong unContext)
  5007. {
  5008. CheckIfUsable();
  5009. ulong result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_SendMethod(m_pSteamUnifiedMessages,pchServiceMethod,pRequestBuffer,unRequestBufferSize,unContext);
  5010. return result;
  5011. }
  5012. public override bool GetMethodResponseInfo(ulong hHandle,ref uint punResponseSize,ref uint peResult)
  5013. {
  5014. CheckIfUsable();
  5015. punResponseSize = 0;
  5016. peResult = 0;
  5017. bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo(m_pSteamUnifiedMessages,hHandle,ref punResponseSize,ref peResult);
  5018. return result;
  5019. }
  5020. public override bool GetMethodResponseData(ulong hHandle,IntPtr pResponseBuffer,uint unResponseBufferSize,bool bAutoRelease)
  5021. {
  5022. CheckIfUsable();
  5023. bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_GetMethodResponseData(m_pSteamUnifiedMessages,hHandle,pResponseBuffer,unResponseBufferSize,bAutoRelease);
  5024. return result;
  5025. }
  5026. public override bool ReleaseMethod(ulong hHandle)
  5027. {
  5028. CheckIfUsable();
  5029. bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_ReleaseMethod(m_pSteamUnifiedMessages,hHandle);
  5030. return result;
  5031. }
  5032. public override bool SendNotification(string pchServiceNotification,IntPtr pNotificationBuffer,uint unNotificationBufferSize)
  5033. {
  5034. CheckIfUsable();
  5035. bool result = NativeEntrypoints.SteamAPI_ISteamUnifiedMessages_SendNotification(m_pSteamUnifiedMessages,pchServiceNotification,pNotificationBuffer,unNotificationBufferSize);
  5036. return result;
  5037. }
  5038. }
  5039. public class CSteamController : ISteamController
  5040. {
  5041. public CSteamController(IntPtr SteamController)
  5042. {
  5043. m_pSteamController = SteamController;
  5044. }
  5045. IntPtr m_pSteamController;
  5046. public override IntPtr GetIntPtr() { return m_pSteamController; }
  5047. private void CheckIfUsable()
  5048. {
  5049. if (m_pSteamController == IntPtr.Zero)
  5050. {
  5051. throw new Exception("Steam Pointer not configured");
  5052. }
  5053. }
  5054. public override bool Init()
  5055. {
  5056. CheckIfUsable();
  5057. bool result = NativeEntrypoints.SteamAPI_ISteamController_Init(m_pSteamController);
  5058. return result;
  5059. }
  5060. public override bool Shutdown()
  5061. {
  5062. CheckIfUsable();
  5063. bool result = NativeEntrypoints.SteamAPI_ISteamController_Shutdown(m_pSteamController);
  5064. return result;
  5065. }
  5066. public override void RunFrame()
  5067. {
  5068. CheckIfUsable();
  5069. NativeEntrypoints.SteamAPI_ISteamController_RunFrame(m_pSteamController);
  5070. }
  5071. public override int GetConnectedControllers(ref ulong handlesOut)
  5072. {
  5073. CheckIfUsable();
  5074. handlesOut = 0;
  5075. int result = NativeEntrypoints.SteamAPI_ISteamController_GetConnectedControllers(m_pSteamController,ref handlesOut);
  5076. return result;
  5077. }
  5078. public override bool ShowBindingPanel(ulong controllerHandle)
  5079. {
  5080. CheckIfUsable();
  5081. bool result = NativeEntrypoints.SteamAPI_ISteamController_ShowBindingPanel(m_pSteamController,controllerHandle);
  5082. return result;
  5083. }
  5084. public override ulong GetActionSetHandle(string pszActionSetName)
  5085. {
  5086. CheckIfUsable();
  5087. ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetActionSetHandle(m_pSteamController,pszActionSetName);
  5088. return result;
  5089. }
  5090. public override void ActivateActionSet(ulong controllerHandle,ulong actionSetHandle)
  5091. {
  5092. CheckIfUsable();
  5093. NativeEntrypoints.SteamAPI_ISteamController_ActivateActionSet(m_pSteamController,controllerHandle,actionSetHandle);
  5094. }
  5095. public override ulong GetCurrentActionSet(ulong controllerHandle)
  5096. {
  5097. CheckIfUsable();
  5098. ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetCurrentActionSet(m_pSteamController,controllerHandle);
  5099. return result;
  5100. }
  5101. public override ulong GetDigitalActionHandle(string pszActionName)
  5102. {
  5103. CheckIfUsable();
  5104. ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetDigitalActionHandle(m_pSteamController,pszActionName);
  5105. return result;
  5106. }
  5107. public override ControllerDigitalActionData_t GetDigitalActionData(ulong controllerHandle,ulong digitalActionHandle)
  5108. {
  5109. CheckIfUsable();
  5110. ControllerDigitalActionData_t result = NativeEntrypoints.SteamAPI_ISteamController_GetDigitalActionData(m_pSteamController,controllerHandle,digitalActionHandle);
  5111. return result;
  5112. }
  5113. public override int GetDigitalActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong digitalActionHandle,ref uint originsOut)
  5114. {
  5115. CheckIfUsable();
  5116. originsOut = 0;
  5117. int result = NativeEntrypoints.SteamAPI_ISteamController_GetDigitalActionOrigins(m_pSteamController,controllerHandle,actionSetHandle,digitalActionHandle,ref originsOut);
  5118. return result;
  5119. }
  5120. public override ulong GetAnalogActionHandle(string pszActionName)
  5121. {
  5122. CheckIfUsable();
  5123. ulong result = NativeEntrypoints.SteamAPI_ISteamController_GetAnalogActionHandle(m_pSteamController,pszActionName);
  5124. return result;
  5125. }
  5126. public override ControllerAnalogActionData_t GetAnalogActionData(ulong controllerHandle,ulong analogActionHandle)
  5127. {
  5128. CheckIfUsable();
  5129. ControllerAnalogActionData_t result = NativeEntrypoints.SteamAPI_ISteamController_GetAnalogActionData(m_pSteamController,controllerHandle,analogActionHandle);
  5130. return result;
  5131. }
  5132. public override int GetAnalogActionOrigins(ulong controllerHandle,ulong actionSetHandle,ulong analogActionHandle,ref uint originsOut)
  5133. {
  5134. CheckIfUsable();
  5135. originsOut = 0;
  5136. int result = NativeEntrypoints.SteamAPI_ISteamController_GetAnalogActionOrigins(m_pSteamController,controllerHandle,actionSetHandle,analogActionHandle,ref originsOut);
  5137. return result;
  5138. }
  5139. public override void StopAnalogActionMomentum(ulong controllerHandle,ulong eAction)
  5140. {
  5141. CheckIfUsable();
  5142. NativeEntrypoints.SteamAPI_ISteamController_StopAnalogActionMomentum(m_pSteamController,controllerHandle,eAction);
  5143. }
  5144. public override void TriggerHapticPulse(ulong controllerHandle,uint eTargetPad,char usDurationMicroSec)
  5145. {
  5146. CheckIfUsable();
  5147. NativeEntrypoints.SteamAPI_ISteamController_TriggerHapticPulse(m_pSteamController,controllerHandle,eTargetPad,usDurationMicroSec);
  5148. }
  5149. }
  5150. public class CSteamUGC : ISteamUGC
  5151. {
  5152. public CSteamUGC(IntPtr SteamUGC)
  5153. {
  5154. m_pSteamUGC = SteamUGC;
  5155. }
  5156. IntPtr m_pSteamUGC;
  5157. public override IntPtr GetIntPtr() { return m_pSteamUGC; }
  5158. private void CheckIfUsable()
  5159. {
  5160. if (m_pSteamUGC == IntPtr.Zero)
  5161. {
  5162. throw new Exception("Steam Pointer not configured");
  5163. }
  5164. }
  5165. public override ulong CreateQueryUserUGCRequest(uint unAccountID,uint eListType,uint eMatchingUGCType,uint eSortOrder,uint nCreatorAppID,uint nConsumerAppID,uint unPage)
  5166. {
  5167. CheckIfUsable();
  5168. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(m_pSteamUGC,unAccountID,eListType,eMatchingUGCType,eSortOrder,nCreatorAppID,nConsumerAppID,unPage);
  5169. return result;
  5170. }
  5171. public override ulong CreateQueryAllUGCRequest(uint eQueryType,uint eMatchingeMatchingUGCTypeFileType,uint nCreatorAppID,uint nConsumerAppID,uint unPage)
  5172. {
  5173. CheckIfUsable();
  5174. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(m_pSteamUGC,eQueryType,eMatchingeMatchingUGCTypeFileType,nCreatorAppID,nConsumerAppID,unPage);
  5175. return result;
  5176. }
  5177. public override ulong CreateQueryUGCDetailsRequest(ref ulong pvecPublishedFileID,uint unNumPublishedFileIDs)
  5178. {
  5179. CheckIfUsable();
  5180. pvecPublishedFileID = 0;
  5181. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(m_pSteamUGC,ref pvecPublishedFileID,unNumPublishedFileIDs);
  5182. return result;
  5183. }
  5184. public override ulong SendQueryUGCRequest(ulong handle)
  5185. {
  5186. CheckIfUsable();
  5187. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SendQueryUGCRequest(m_pSteamUGC,handle);
  5188. return result;
  5189. }
  5190. public override bool GetQueryUGCResult(ulong handle,uint index,ref SteamUGCDetails_t pDetails)
  5191. {
  5192. CheckIfUsable();
  5193. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCResult(m_pSteamUGC,handle,index,ref pDetails);
  5194. return result;
  5195. }
  5196. public override bool GetQueryUGCPreviewURL(ulong handle,uint index,string pchURL,uint cchURLSize)
  5197. {
  5198. CheckIfUsable();
  5199. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(m_pSteamUGC,handle,index,pchURL,cchURLSize);
  5200. return result;
  5201. }
  5202. public override bool GetQueryUGCMetadata(ulong handle,uint index,string pchMetadata,uint cchMetadatasize)
  5203. {
  5204. CheckIfUsable();
  5205. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCMetadata(m_pSteamUGC,handle,index,pchMetadata,cchMetadatasize);
  5206. return result;
  5207. }
  5208. public override bool GetQueryUGCChildren(ulong handle,uint index,ref ulong pvecPublishedFileID,uint cMaxEntries)
  5209. {
  5210. CheckIfUsable();
  5211. pvecPublishedFileID = 0;
  5212. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCChildren(m_pSteamUGC,handle,index,ref pvecPublishedFileID,cMaxEntries);
  5213. return result;
  5214. }
  5215. public override bool GetQueryUGCStatistic(ulong handle,uint index,uint eStatType,ref uint pStatValue)
  5216. {
  5217. CheckIfUsable();
  5218. pStatValue = 0;
  5219. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCStatistic(m_pSteamUGC,handle,index,eStatType,ref pStatValue);
  5220. return result;
  5221. }
  5222. public override uint GetQueryUGCNumAdditionalPreviews(ulong handle,uint index)
  5223. {
  5224. CheckIfUsable();
  5225. uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(m_pSteamUGC,handle,index);
  5226. return result;
  5227. }
  5228. public override bool GetQueryUGCAdditionalPreview(ulong handle,uint index,uint previewIndex,string pchURLOrVideoID,uint cchURLSize,ref bool pbIsImage)
  5229. {
  5230. CheckIfUsable();
  5231. pbIsImage = false;
  5232. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(m_pSteamUGC,handle,index,previewIndex,pchURLOrVideoID,cchURLSize,ref pbIsImage);
  5233. return result;
  5234. }
  5235. public override uint GetQueryUGCNumKeyValueTags(ulong handle,uint index)
  5236. {
  5237. CheckIfUsable();
  5238. uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(m_pSteamUGC,handle,index);
  5239. return result;
  5240. }
  5241. public override bool GetQueryUGCKeyValueTag(ulong handle,uint index,uint keyValueTagIndex,string pchKey,uint cchKeySize,string pchValue,uint cchValueSize)
  5242. {
  5243. CheckIfUsable();
  5244. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(m_pSteamUGC,handle,index,keyValueTagIndex,pchKey,cchKeySize,pchValue,cchValueSize);
  5245. return result;
  5246. }
  5247. public override bool ReleaseQueryUGCRequest(ulong handle)
  5248. {
  5249. CheckIfUsable();
  5250. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(m_pSteamUGC,handle);
  5251. return result;
  5252. }
  5253. public override bool AddRequiredTag(ulong handle,string pTagName)
  5254. {
  5255. CheckIfUsable();
  5256. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddRequiredTag(m_pSteamUGC,handle,pTagName);
  5257. return result;
  5258. }
  5259. public override bool AddExcludedTag(ulong handle,string pTagName)
  5260. {
  5261. CheckIfUsable();
  5262. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddExcludedTag(m_pSteamUGC,handle,pTagName);
  5263. return result;
  5264. }
  5265. public override bool SetReturnKeyValueTags(ulong handle,bool bReturnKeyValueTags)
  5266. {
  5267. CheckIfUsable();
  5268. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnKeyValueTags(m_pSteamUGC,handle,bReturnKeyValueTags);
  5269. return result;
  5270. }
  5271. public override bool SetReturnLongDescription(ulong handle,bool bReturnLongDescription)
  5272. {
  5273. CheckIfUsable();
  5274. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnLongDescription(m_pSteamUGC,handle,bReturnLongDescription);
  5275. return result;
  5276. }
  5277. public override bool SetReturnMetadata(ulong handle,bool bReturnMetadata)
  5278. {
  5279. CheckIfUsable();
  5280. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnMetadata(m_pSteamUGC,handle,bReturnMetadata);
  5281. return result;
  5282. }
  5283. public override bool SetReturnChildren(ulong handle,bool bReturnChildren)
  5284. {
  5285. CheckIfUsable();
  5286. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnChildren(m_pSteamUGC,handle,bReturnChildren);
  5287. return result;
  5288. }
  5289. public override bool SetReturnAdditionalPreviews(ulong handle,bool bReturnAdditionalPreviews)
  5290. {
  5291. CheckIfUsable();
  5292. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(m_pSteamUGC,handle,bReturnAdditionalPreviews);
  5293. return result;
  5294. }
  5295. public override bool SetReturnTotalOnly(ulong handle,bool bReturnTotalOnly)
  5296. {
  5297. CheckIfUsable();
  5298. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetReturnTotalOnly(m_pSteamUGC,handle,bReturnTotalOnly);
  5299. return result;
  5300. }
  5301. public override bool SetLanguage(ulong handle,string pchLanguage)
  5302. {
  5303. CheckIfUsable();
  5304. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetLanguage(m_pSteamUGC,handle,pchLanguage);
  5305. return result;
  5306. }
  5307. public override bool SetAllowCachedResponse(ulong handle,uint unMaxAgeSeconds)
  5308. {
  5309. CheckIfUsable();
  5310. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetAllowCachedResponse(m_pSteamUGC,handle,unMaxAgeSeconds);
  5311. return result;
  5312. }
  5313. public override bool SetCloudFileNameFilter(ulong handle,string pMatchCloudFileName)
  5314. {
  5315. CheckIfUsable();
  5316. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetCloudFileNameFilter(m_pSteamUGC,handle,pMatchCloudFileName);
  5317. return result;
  5318. }
  5319. public override bool SetMatchAnyTag(ulong handle,bool bMatchAnyTag)
  5320. {
  5321. CheckIfUsable();
  5322. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetMatchAnyTag(m_pSteamUGC,handle,bMatchAnyTag);
  5323. return result;
  5324. }
  5325. public override bool SetSearchText(ulong handle,string pSearchText)
  5326. {
  5327. CheckIfUsable();
  5328. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetSearchText(m_pSteamUGC,handle,pSearchText);
  5329. return result;
  5330. }
  5331. public override bool SetRankedByTrendDays(ulong handle,uint unDays)
  5332. {
  5333. CheckIfUsable();
  5334. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetRankedByTrendDays(m_pSteamUGC,handle,unDays);
  5335. return result;
  5336. }
  5337. public override bool AddRequiredKeyValueTag(ulong handle,string pKey,string pValue)
  5338. {
  5339. CheckIfUsable();
  5340. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddRequiredKeyValueTag(m_pSteamUGC,handle,pKey,pValue);
  5341. return result;
  5342. }
  5343. public override ulong RequestUGCDetails(ulong nPublishedFileID,uint unMaxAgeSeconds)
  5344. {
  5345. CheckIfUsable();
  5346. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_RequestUGCDetails(m_pSteamUGC,nPublishedFileID,unMaxAgeSeconds);
  5347. return result;
  5348. }
  5349. public override ulong CreateItem(uint nConsumerAppId,uint eFileType)
  5350. {
  5351. CheckIfUsable();
  5352. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_CreateItem(m_pSteamUGC,nConsumerAppId,eFileType);
  5353. return result;
  5354. }
  5355. public override ulong StartItemUpdate(uint nConsumerAppId,ulong nPublishedFileID)
  5356. {
  5357. CheckIfUsable();
  5358. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_StartItemUpdate(m_pSteamUGC,nConsumerAppId,nPublishedFileID);
  5359. return result;
  5360. }
  5361. public override bool SetItemTitle(ulong handle,string pchTitle)
  5362. {
  5363. CheckIfUsable();
  5364. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemTitle(m_pSteamUGC,handle,pchTitle);
  5365. return result;
  5366. }
  5367. public override bool SetItemDescription(ulong handle,string pchDescription)
  5368. {
  5369. CheckIfUsable();
  5370. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemDescription(m_pSteamUGC,handle,pchDescription);
  5371. return result;
  5372. }
  5373. public override bool SetItemUpdateLanguage(ulong handle,string pchLanguage)
  5374. {
  5375. CheckIfUsable();
  5376. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemUpdateLanguage(m_pSteamUGC,handle,pchLanguage);
  5377. return result;
  5378. }
  5379. public override bool SetItemMetadata(ulong handle,string pchMetaData)
  5380. {
  5381. CheckIfUsable();
  5382. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemMetadata(m_pSteamUGC,handle,pchMetaData);
  5383. return result;
  5384. }
  5385. public override bool SetItemVisibility(ulong handle,uint eVisibility)
  5386. {
  5387. CheckIfUsable();
  5388. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemVisibility(m_pSteamUGC,handle,eVisibility);
  5389. return result;
  5390. }
  5391. public override bool SetItemTags(ulong updateHandle,ref SteamParamStringArray_t pTags)
  5392. {
  5393. CheckIfUsable();
  5394. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemTags(m_pSteamUGC,updateHandle,ref pTags);
  5395. return result;
  5396. }
  5397. public override bool SetItemContent(ulong handle,string pszContentFolder)
  5398. {
  5399. CheckIfUsable();
  5400. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemContent(m_pSteamUGC,handle,pszContentFolder);
  5401. return result;
  5402. }
  5403. public override bool SetItemPreview(ulong handle,string pszPreviewFile)
  5404. {
  5405. CheckIfUsable();
  5406. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_SetItemPreview(m_pSteamUGC,handle,pszPreviewFile);
  5407. return result;
  5408. }
  5409. public override bool RemoveItemKeyValueTags(ulong handle,string pchKey)
  5410. {
  5411. CheckIfUsable();
  5412. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_RemoveItemKeyValueTags(m_pSteamUGC,handle,pchKey);
  5413. return result;
  5414. }
  5415. public override bool AddItemKeyValueTag(ulong handle,string pchKey,string pchValue)
  5416. {
  5417. CheckIfUsable();
  5418. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_AddItemKeyValueTag(m_pSteamUGC,handle,pchKey,pchValue);
  5419. return result;
  5420. }
  5421. public override ulong SubmitItemUpdate(ulong handle,string pchChangeNote)
  5422. {
  5423. CheckIfUsable();
  5424. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SubmitItemUpdate(m_pSteamUGC,handle,pchChangeNote);
  5425. return result;
  5426. }
  5427. public override uint GetItemUpdateProgress(ulong handle,ref ulong punBytesProcessed,ref ulong punBytesTotal)
  5428. {
  5429. CheckIfUsable();
  5430. punBytesProcessed = 0;
  5431. punBytesTotal = 0;
  5432. uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemUpdateProgress(m_pSteamUGC,handle,ref punBytesProcessed,ref punBytesTotal);
  5433. return result;
  5434. }
  5435. public override ulong SetUserItemVote(ulong nPublishedFileID,bool bVoteUp)
  5436. {
  5437. CheckIfUsable();
  5438. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SetUserItemVote(m_pSteamUGC,nPublishedFileID,bVoteUp);
  5439. return result;
  5440. }
  5441. public override ulong GetUserItemVote(ulong nPublishedFileID)
  5442. {
  5443. CheckIfUsable();
  5444. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_GetUserItemVote(m_pSteamUGC,nPublishedFileID);
  5445. return result;
  5446. }
  5447. public override ulong AddItemToFavorites(uint nAppId,ulong nPublishedFileID)
  5448. {
  5449. CheckIfUsable();
  5450. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_AddItemToFavorites(m_pSteamUGC,nAppId,nPublishedFileID);
  5451. return result;
  5452. }
  5453. public override ulong RemoveItemFromFavorites(uint nAppId,ulong nPublishedFileID)
  5454. {
  5455. CheckIfUsable();
  5456. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_RemoveItemFromFavorites(m_pSteamUGC,nAppId,nPublishedFileID);
  5457. return result;
  5458. }
  5459. public override ulong SubscribeItem(ulong nPublishedFileID)
  5460. {
  5461. CheckIfUsable();
  5462. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_SubscribeItem(m_pSteamUGC,nPublishedFileID);
  5463. return result;
  5464. }
  5465. public override ulong UnsubscribeItem(ulong nPublishedFileID)
  5466. {
  5467. CheckIfUsable();
  5468. ulong result = NativeEntrypoints.SteamAPI_ISteamUGC_UnsubscribeItem(m_pSteamUGC,nPublishedFileID);
  5469. return result;
  5470. }
  5471. public override uint GetNumSubscribedItems()
  5472. {
  5473. CheckIfUsable();
  5474. uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetNumSubscribedItems(m_pSteamUGC);
  5475. return result;
  5476. }
  5477. public override uint GetSubscribedItems(ref ulong pvecPublishedFileID,uint cMaxEntries)
  5478. {
  5479. CheckIfUsable();
  5480. pvecPublishedFileID = 0;
  5481. uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetSubscribedItems(m_pSteamUGC,ref pvecPublishedFileID,cMaxEntries);
  5482. return result;
  5483. }
  5484. public override uint GetItemState(ulong nPublishedFileID)
  5485. {
  5486. CheckIfUsable();
  5487. uint result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemState(m_pSteamUGC,nPublishedFileID);
  5488. return result;
  5489. }
  5490. public override bool GetItemInstallInfo(ulong nPublishedFileID,ref ulong punSizeOnDisk,string pchFolder,uint cchFolderSize,ref uint punTimeStamp)
  5491. {
  5492. CheckIfUsable();
  5493. punSizeOnDisk = 0;
  5494. punTimeStamp = 0;
  5495. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemInstallInfo(m_pSteamUGC,nPublishedFileID,ref punSizeOnDisk,pchFolder,cchFolderSize,ref punTimeStamp);
  5496. return result;
  5497. }
  5498. public override bool GetItemDownloadInfo(ulong nPublishedFileID,ref ulong punBytesDownloaded,ref ulong punBytesTotal)
  5499. {
  5500. CheckIfUsable();
  5501. punBytesDownloaded = 0;
  5502. punBytesTotal = 0;
  5503. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetItemDownloadInfo(m_pSteamUGC,nPublishedFileID,ref punBytesDownloaded,ref punBytesTotal);
  5504. return result;
  5505. }
  5506. public override bool DownloadItem(ulong nPublishedFileID,bool bHighPriority)
  5507. {
  5508. CheckIfUsable();
  5509. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_DownloadItem(m_pSteamUGC,nPublishedFileID,bHighPriority);
  5510. return result;
  5511. }
  5512. public override bool BInitWorkshopForGameServer(uint unWorkshopDepotID,string pszFolder)
  5513. {
  5514. CheckIfUsable();
  5515. bool result = NativeEntrypoints.SteamAPI_ISteamUGC_BInitWorkshopForGameServer(m_pSteamUGC,unWorkshopDepotID,pszFolder);
  5516. return result;
  5517. }
  5518. public override void SuspendDownloads(bool bSuspend)
  5519. {
  5520. CheckIfUsable();
  5521. NativeEntrypoints.SteamAPI_ISteamUGC_SuspendDownloads(m_pSteamUGC,bSuspend);
  5522. }
  5523. }
  5524. public class CSteamAppList : ISteamAppList
  5525. {
  5526. public CSteamAppList(IntPtr SteamAppList)
  5527. {
  5528. m_pSteamAppList = SteamAppList;
  5529. }
  5530. IntPtr m_pSteamAppList;
  5531. public override IntPtr GetIntPtr() { return m_pSteamAppList; }
  5532. private void CheckIfUsable()
  5533. {
  5534. if (m_pSteamAppList == IntPtr.Zero)
  5535. {
  5536. throw new Exception("Steam Pointer not configured");
  5537. }
  5538. }
  5539. public override uint GetNumInstalledApps()
  5540. {
  5541. CheckIfUsable();
  5542. uint result = NativeEntrypoints.SteamAPI_ISteamAppList_GetNumInstalledApps(m_pSteamAppList);
  5543. return result;
  5544. }
  5545. public override uint GetInstalledApps(ref uint pvecAppID,uint unMaxAppIDs)
  5546. {
  5547. CheckIfUsable();
  5548. pvecAppID = 0;
  5549. uint result = NativeEntrypoints.SteamAPI_ISteamAppList_GetInstalledApps(m_pSteamAppList,ref pvecAppID,unMaxAppIDs);
  5550. return result;
  5551. }
  5552. public override int GetAppName(uint nAppID,string pchName,int cchNameMax)
  5553. {
  5554. CheckIfUsable();
  5555. int result = NativeEntrypoints.SteamAPI_ISteamAppList_GetAppName(m_pSteamAppList,nAppID,pchName,cchNameMax);
  5556. return result;
  5557. }
  5558. public override int GetAppInstallDir(uint nAppID,string pchDirectory,int cchNameMax)
  5559. {
  5560. CheckIfUsable();
  5561. int result = NativeEntrypoints.SteamAPI_ISteamAppList_GetAppInstallDir(m_pSteamAppList,nAppID,pchDirectory,cchNameMax);
  5562. return result;
  5563. }
  5564. public override int GetAppBuildId(uint nAppID)
  5565. {
  5566. CheckIfUsable();
  5567. int result = NativeEntrypoints.SteamAPI_ISteamAppList_GetAppBuildId(m_pSteamAppList,nAppID);
  5568. return result;
  5569. }
  5570. }
  5571. public class CSteamHTMLSurface : ISteamHTMLSurface
  5572. {
  5573. public CSteamHTMLSurface(IntPtr SteamHTMLSurface)
  5574. {
  5575. m_pSteamHTMLSurface = SteamHTMLSurface;
  5576. }
  5577. IntPtr m_pSteamHTMLSurface;
  5578. public override IntPtr GetIntPtr() { return m_pSteamHTMLSurface; }
  5579. private void CheckIfUsable()
  5580. {
  5581. if (m_pSteamHTMLSurface == IntPtr.Zero)
  5582. {
  5583. throw new Exception("Steam Pointer not configured");
  5584. }
  5585. }
  5586. public override void DestructISteamHTMLSurface()
  5587. {
  5588. CheckIfUsable();
  5589. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(m_pSteamHTMLSurface);
  5590. }
  5591. public override bool Init()
  5592. {
  5593. CheckIfUsable();
  5594. bool result = NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Init(m_pSteamHTMLSurface);
  5595. return result;
  5596. }
  5597. public override bool Shutdown()
  5598. {
  5599. CheckIfUsable();
  5600. bool result = NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Shutdown(m_pSteamHTMLSurface);
  5601. return result;
  5602. }
  5603. public override ulong CreateBrowser(string pchUserAgent,string pchUserCSS)
  5604. {
  5605. CheckIfUsable();
  5606. ulong result = NativeEntrypoints.SteamAPI_ISteamHTMLSurface_CreateBrowser(m_pSteamHTMLSurface,pchUserAgent,pchUserCSS);
  5607. return result;
  5608. }
  5609. public override void RemoveBrowser(uint unBrowserHandle)
  5610. {
  5611. CheckIfUsable();
  5612. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_RemoveBrowser(m_pSteamHTMLSurface,unBrowserHandle);
  5613. }
  5614. public override void LoadURL(uint unBrowserHandle,string pchURL,string pchPostData)
  5615. {
  5616. CheckIfUsable();
  5617. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_LoadURL(m_pSteamHTMLSurface,unBrowserHandle,pchURL,pchPostData);
  5618. }
  5619. public override void SetSize(uint unBrowserHandle,uint unWidth,uint unHeight)
  5620. {
  5621. CheckIfUsable();
  5622. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetSize(m_pSteamHTMLSurface,unBrowserHandle,unWidth,unHeight);
  5623. }
  5624. public override void StopLoad(uint unBrowserHandle)
  5625. {
  5626. CheckIfUsable();
  5627. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_StopLoad(m_pSteamHTMLSurface,unBrowserHandle);
  5628. }
  5629. public override void Reload(uint unBrowserHandle)
  5630. {
  5631. CheckIfUsable();
  5632. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Reload(m_pSteamHTMLSurface,unBrowserHandle);
  5633. }
  5634. public override void GoBack(uint unBrowserHandle)
  5635. {
  5636. CheckIfUsable();
  5637. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_GoBack(m_pSteamHTMLSurface,unBrowserHandle);
  5638. }
  5639. public override void GoForward(uint unBrowserHandle)
  5640. {
  5641. CheckIfUsable();
  5642. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_GoForward(m_pSteamHTMLSurface,unBrowserHandle);
  5643. }
  5644. public override void AddHeader(uint unBrowserHandle,string pchKey,string pchValue)
  5645. {
  5646. CheckIfUsable();
  5647. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_AddHeader(m_pSteamHTMLSurface,unBrowserHandle,pchKey,pchValue);
  5648. }
  5649. public override void ExecuteJavascript(uint unBrowserHandle,string pchScript)
  5650. {
  5651. CheckIfUsable();
  5652. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_ExecuteJavascript(m_pSteamHTMLSurface,unBrowserHandle,pchScript);
  5653. }
  5654. public override void MouseUp(uint unBrowserHandle,uint eMouseButton)
  5655. {
  5656. CheckIfUsable();
  5657. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseUp(m_pSteamHTMLSurface,unBrowserHandle,eMouseButton);
  5658. }
  5659. public override void MouseDown(uint unBrowserHandle,uint eMouseButton)
  5660. {
  5661. CheckIfUsable();
  5662. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseDown(m_pSteamHTMLSurface,unBrowserHandle,eMouseButton);
  5663. }
  5664. public override void MouseDoubleClick(uint unBrowserHandle,uint eMouseButton)
  5665. {
  5666. CheckIfUsable();
  5667. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseDoubleClick(m_pSteamHTMLSurface,unBrowserHandle,eMouseButton);
  5668. }
  5669. public override void MouseMove(uint unBrowserHandle,int x,int y)
  5670. {
  5671. CheckIfUsable();
  5672. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseMove(m_pSteamHTMLSurface,unBrowserHandle,x,y);
  5673. }
  5674. public override void MouseWheel(uint unBrowserHandle,int nDelta)
  5675. {
  5676. CheckIfUsable();
  5677. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_MouseWheel(m_pSteamHTMLSurface,unBrowserHandle,nDelta);
  5678. }
  5679. public override void KeyDown(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers)
  5680. {
  5681. CheckIfUsable();
  5682. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_KeyDown(m_pSteamHTMLSurface,unBrowserHandle,nNativeKeyCode,eHTMLKeyModifiers);
  5683. }
  5684. public override void KeyUp(uint unBrowserHandle,uint nNativeKeyCode,uint eHTMLKeyModifiers)
  5685. {
  5686. CheckIfUsable();
  5687. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_KeyUp(m_pSteamHTMLSurface,unBrowserHandle,nNativeKeyCode,eHTMLKeyModifiers);
  5688. }
  5689. public override void KeyChar(uint unBrowserHandle,uint cUnicodeChar,uint eHTMLKeyModifiers)
  5690. {
  5691. CheckIfUsable();
  5692. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_KeyChar(m_pSteamHTMLSurface,unBrowserHandle,cUnicodeChar,eHTMLKeyModifiers);
  5693. }
  5694. public override void SetHorizontalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll)
  5695. {
  5696. CheckIfUsable();
  5697. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(m_pSteamHTMLSurface,unBrowserHandle,nAbsolutePixelScroll);
  5698. }
  5699. public override void SetVerticalScroll(uint unBrowserHandle,uint nAbsolutePixelScroll)
  5700. {
  5701. CheckIfUsable();
  5702. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetVerticalScroll(m_pSteamHTMLSurface,unBrowserHandle,nAbsolutePixelScroll);
  5703. }
  5704. public override void SetKeyFocus(uint unBrowserHandle,bool bHasKeyFocus)
  5705. {
  5706. CheckIfUsable();
  5707. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetKeyFocus(m_pSteamHTMLSurface,unBrowserHandle,bHasKeyFocus);
  5708. }
  5709. public override void ViewSource(uint unBrowserHandle)
  5710. {
  5711. CheckIfUsable();
  5712. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_ViewSource(m_pSteamHTMLSurface,unBrowserHandle);
  5713. }
  5714. public override void CopyToClipboard(uint unBrowserHandle)
  5715. {
  5716. CheckIfUsable();
  5717. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_CopyToClipboard(m_pSteamHTMLSurface,unBrowserHandle);
  5718. }
  5719. public override void PasteFromClipboard(uint unBrowserHandle)
  5720. {
  5721. CheckIfUsable();
  5722. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_PasteFromClipboard(m_pSteamHTMLSurface,unBrowserHandle);
  5723. }
  5724. public override void Find(uint unBrowserHandle,string pchSearchStr,bool bCurrentlyInFind,bool bReverse)
  5725. {
  5726. CheckIfUsable();
  5727. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_Find(m_pSteamHTMLSurface,unBrowserHandle,pchSearchStr,bCurrentlyInFind,bReverse);
  5728. }
  5729. public override void StopFind(uint unBrowserHandle)
  5730. {
  5731. CheckIfUsable();
  5732. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_StopFind(m_pSteamHTMLSurface,unBrowserHandle);
  5733. }
  5734. public override void GetLinkAtPosition(uint unBrowserHandle,int x,int y)
  5735. {
  5736. CheckIfUsable();
  5737. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(m_pSteamHTMLSurface,unBrowserHandle,x,y);
  5738. }
  5739. public override void SetCookie(string pchHostname,string pchKey,string pchValue,string pchPath,ulong nExpires,bool bSecure,bool bHTTPOnly)
  5740. {
  5741. CheckIfUsable();
  5742. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetCookie(m_pSteamHTMLSurface,pchHostname,pchKey,pchValue,pchPath,nExpires,bSecure,bHTTPOnly);
  5743. }
  5744. public override void SetPageScaleFactor(uint unBrowserHandle,float flZoom,int nPointX,int nPointY)
  5745. {
  5746. CheckIfUsable();
  5747. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(m_pSteamHTMLSurface,unBrowserHandle,flZoom,nPointX,nPointY);
  5748. }
  5749. public override void SetBackgroundMode(uint unBrowserHandle,bool bBackgroundMode)
  5750. {
  5751. CheckIfUsable();
  5752. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(m_pSteamHTMLSurface,unBrowserHandle,bBackgroundMode);
  5753. }
  5754. public override void AllowStartRequest(uint unBrowserHandle,bool bAllowed)
  5755. {
  5756. CheckIfUsable();
  5757. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_AllowStartRequest(m_pSteamHTMLSurface,unBrowserHandle,bAllowed);
  5758. }
  5759. public override void JSDialogResponse(uint unBrowserHandle,bool bResult)
  5760. {
  5761. CheckIfUsable();
  5762. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_JSDialogResponse(m_pSteamHTMLSurface,unBrowserHandle,bResult);
  5763. }
  5764. public override void FileLoadDialogResponse(uint unBrowserHandle,string pchSelectedFiles)
  5765. {
  5766. CheckIfUsable();
  5767. pchSelectedFiles = "";
  5768. NativeEntrypoints.SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse(m_pSteamHTMLSurface,unBrowserHandle,pchSelectedFiles);
  5769. }
  5770. }
  5771. public class CSteamInventory : ISteamInventory
  5772. {
  5773. public CSteamInventory(IntPtr SteamInventory)
  5774. {
  5775. m_pSteamInventory = SteamInventory;
  5776. }
  5777. IntPtr m_pSteamInventory;
  5778. public override IntPtr GetIntPtr() { return m_pSteamInventory; }
  5779. private void CheckIfUsable()
  5780. {
  5781. if (m_pSteamInventory == IntPtr.Zero)
  5782. {
  5783. throw new Exception("Steam Pointer not configured");
  5784. }
  5785. }
  5786. public override uint GetResultStatus(int resultHandle)
  5787. {
  5788. CheckIfUsable();
  5789. uint result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultStatus(m_pSteamInventory,resultHandle);
  5790. return result;
  5791. }
  5792. public override bool GetResultItems(int resultHandle,out SteamItemDetails_t [] pOutItemsArray)
  5793. {
  5794. CheckIfUsable();
  5795. uint punOutItemsArraySize = 0;
  5796. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultItems(m_pSteamInventory,resultHandle,null,ref punOutItemsArraySize);
  5797. pOutItemsArray= new SteamItemDetails_t[punOutItemsArraySize];
  5798. result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultItems(m_pSteamInventory,resultHandle,pOutItemsArray,ref punOutItemsArraySize);
  5799. return result;
  5800. }
  5801. public override uint GetResultTimestamp(int resultHandle)
  5802. {
  5803. CheckIfUsable();
  5804. uint result = NativeEntrypoints.SteamAPI_ISteamInventory_GetResultTimestamp(m_pSteamInventory,resultHandle);
  5805. return result;
  5806. }
  5807. public override bool CheckResultSteamID(int resultHandle,ulong steamIDExpected)
  5808. {
  5809. CheckIfUsable();
  5810. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_CheckResultSteamID(m_pSteamInventory,resultHandle,steamIDExpected);
  5811. return result;
  5812. }
  5813. public override void DestroyResult(int resultHandle)
  5814. {
  5815. CheckIfUsable();
  5816. NativeEntrypoints.SteamAPI_ISteamInventory_DestroyResult(m_pSteamInventory,resultHandle);
  5817. }
  5818. public override bool GetAllItems(ref int pResultHandle)
  5819. {
  5820. CheckIfUsable();
  5821. pResultHandle = 0;
  5822. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetAllItems(m_pSteamInventory,ref pResultHandle);
  5823. return result;
  5824. }
  5825. public override bool GetItemsByID(ref int pResultHandle,ulong [] pInstanceIDs)
  5826. {
  5827. CheckIfUsable();
  5828. pResultHandle = 0;
  5829. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemsByID(m_pSteamInventory,ref pResultHandle,pInstanceIDs,(uint) pInstanceIDs.Length);
  5830. return result;
  5831. }
  5832. public override bool SerializeResult(int resultHandle,IntPtr pOutBuffer,ref uint punOutBufferSize)
  5833. {
  5834. CheckIfUsable();
  5835. punOutBufferSize = 0;
  5836. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_SerializeResult(m_pSteamInventory,resultHandle,pOutBuffer,ref punOutBufferSize);
  5837. return result;
  5838. }
  5839. public override bool DeserializeResult(ref int pOutResultHandle,IntPtr pBuffer,uint unBufferSize,bool bRESERVED_MUST_BE_FALSE)
  5840. {
  5841. CheckIfUsable();
  5842. pOutResultHandle = 0;
  5843. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_DeserializeResult(m_pSteamInventory,ref pOutResultHandle,pBuffer,unBufferSize,bRESERVED_MUST_BE_FALSE);
  5844. return result;
  5845. }
  5846. public override bool GenerateItems(ref int pResultHandle,int [] pArrayItemDefs,uint [] punArrayQuantity)
  5847. {
  5848. CheckIfUsable();
  5849. pResultHandle = 0;
  5850. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GenerateItems(m_pSteamInventory,ref pResultHandle,pArrayItemDefs,punArrayQuantity,(uint) punArrayQuantity.Length);
  5851. return result;
  5852. }
  5853. public override bool GrantPromoItems(ref int pResultHandle)
  5854. {
  5855. CheckIfUsable();
  5856. pResultHandle = 0;
  5857. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GrantPromoItems(m_pSteamInventory,ref pResultHandle);
  5858. return result;
  5859. }
  5860. public override bool AddPromoItem(ref int pResultHandle,int itemDef)
  5861. {
  5862. CheckIfUsable();
  5863. pResultHandle = 0;
  5864. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_AddPromoItem(m_pSteamInventory,ref pResultHandle,itemDef);
  5865. return result;
  5866. }
  5867. public override bool AddPromoItems(ref int pResultHandle,int [] pArrayItemDefs)
  5868. {
  5869. CheckIfUsable();
  5870. pResultHandle = 0;
  5871. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_AddPromoItems(m_pSteamInventory,ref pResultHandle,pArrayItemDefs,(uint) pArrayItemDefs.Length);
  5872. return result;
  5873. }
  5874. public override bool ConsumeItem(ref int pResultHandle,ulong itemConsume,uint unQuantity)
  5875. {
  5876. CheckIfUsable();
  5877. pResultHandle = 0;
  5878. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_ConsumeItem(m_pSteamInventory,ref pResultHandle,itemConsume,unQuantity);
  5879. return result;
  5880. }
  5881. public override bool ExchangeItems(ref int pResultHandle,int [] pArrayGenerate,uint [] punArrayGenerateQuantity,ulong [] pArrayDestroy,uint [] punArrayDestroyQuantity)
  5882. {
  5883. CheckIfUsable();
  5884. pResultHandle = 0;
  5885. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_ExchangeItems(m_pSteamInventory,ref pResultHandle,pArrayGenerate,punArrayGenerateQuantity,(uint) punArrayGenerateQuantity.Length,pArrayDestroy,punArrayDestroyQuantity,(uint) punArrayDestroyQuantity.Length);
  5886. return result;
  5887. }
  5888. public override bool TransferItemQuantity(ref int pResultHandle,ulong itemIdSource,uint unQuantity,ulong itemIdDest)
  5889. {
  5890. CheckIfUsable();
  5891. pResultHandle = 0;
  5892. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_TransferItemQuantity(m_pSteamInventory,ref pResultHandle,itemIdSource,unQuantity,itemIdDest);
  5893. return result;
  5894. }
  5895. public override void SendItemDropHeartbeat()
  5896. {
  5897. CheckIfUsable();
  5898. NativeEntrypoints.SteamAPI_ISteamInventory_SendItemDropHeartbeat(m_pSteamInventory);
  5899. }
  5900. public override bool TriggerItemDrop(ref int pResultHandle,int dropListDefinition)
  5901. {
  5902. CheckIfUsable();
  5903. pResultHandle = 0;
  5904. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_TriggerItemDrop(m_pSteamInventory,ref pResultHandle,dropListDefinition);
  5905. return result;
  5906. }
  5907. public override bool TradeItems(ref int pResultHandle,ulong steamIDTradePartner,ulong [] pArrayGive,uint [] pArrayGiveQuantity,ulong [] pArrayGet,uint [] pArrayGetQuantity)
  5908. {
  5909. CheckIfUsable();
  5910. pResultHandle = 0;
  5911. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_TradeItems(m_pSteamInventory,ref pResultHandle,steamIDTradePartner,pArrayGive,pArrayGiveQuantity,(uint) pArrayGiveQuantity.Length,pArrayGet,pArrayGetQuantity,(uint) pArrayGetQuantity.Length);
  5912. return result;
  5913. }
  5914. public override bool LoadItemDefinitions()
  5915. {
  5916. CheckIfUsable();
  5917. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_LoadItemDefinitions(m_pSteamInventory);
  5918. return result;
  5919. }
  5920. public override bool GetItemDefinitionIDs(out int [] pItemDefIDs)
  5921. {
  5922. CheckIfUsable();
  5923. uint punItemDefIDsArraySize = 0;
  5924. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionIDs(m_pSteamInventory,null,ref punItemDefIDsArraySize);
  5925. pItemDefIDs= new int[punItemDefIDsArraySize];
  5926. result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionIDs(m_pSteamInventory,pItemDefIDs,ref punItemDefIDsArraySize);
  5927. return result;
  5928. }
  5929. public override bool GetItemDefinitionProperty(int iDefinition,string pchPropertyName,out string pchValueBuffer)
  5930. {
  5931. CheckIfUsable();
  5932. uint punValueBufferSize = 0;
  5933. bool result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionProperty(m_pSteamInventory,iDefinition,pchPropertyName,null,ref punValueBufferSize);
  5934. System.Text.StringBuilder pStrBuffer = new System.Text.StringBuilder((int)punValueBufferSize);
  5935. result = NativeEntrypoints.SteamAPI_ISteamInventory_GetItemDefinitionProperty(m_pSteamInventory,iDefinition,pchPropertyName,pStrBuffer,ref punValueBufferSize);
  5936. pchValueBuffer = pStrBuffer.ToString();
  5937. return result;
  5938. }
  5939. }
  5940. public class CSteamVideo : ISteamVideo
  5941. {
  5942. public CSteamVideo(IntPtr SteamVideo)
  5943. {
  5944. m_pSteamVideo = SteamVideo;
  5945. }
  5946. IntPtr m_pSteamVideo;
  5947. public override IntPtr GetIntPtr() { return m_pSteamVideo; }
  5948. private void CheckIfUsable()
  5949. {
  5950. if (m_pSteamVideo == IntPtr.Zero)
  5951. {
  5952. throw new Exception("Steam Pointer not configured");
  5953. }
  5954. }
  5955. public override void GetVideoURL(uint unVideoAppID)
  5956. {
  5957. CheckIfUsable();
  5958. NativeEntrypoints.SteamAPI_ISteamVideo_GetVideoURL(m_pSteamVideo,unVideoAppID);
  5959. }
  5960. public override bool IsBroadcasting(ref int pnNumViewers)
  5961. {
  5962. CheckIfUsable();
  5963. pnNumViewers = 0;
  5964. bool result = NativeEntrypoints.SteamAPI_ISteamVideo_IsBroadcasting(m_pSteamVideo,ref pnNumViewers);
  5965. return result;
  5966. }
  5967. }
  5968. public class CSteamGameServer : ISteamGameServer
  5969. {
  5970. public CSteamGameServer(IntPtr SteamGameServer)
  5971. {
  5972. m_pSteamGameServer = SteamGameServer;
  5973. }
  5974. IntPtr m_pSteamGameServer;
  5975. public override IntPtr GetIntPtr() { return m_pSteamGameServer; }
  5976. private void CheckIfUsable()
  5977. {
  5978. if (m_pSteamGameServer == IntPtr.Zero)
  5979. {
  5980. throw new Exception("Steam Pointer not configured");
  5981. }
  5982. }
  5983. public override bool InitGameServer(uint unIP,char usGamePort,char usQueryPort,uint unFlags,uint nGameAppId,string pchVersionString)
  5984. {
  5985. CheckIfUsable();
  5986. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_InitGameServer(m_pSteamGameServer,unIP,usGamePort,usQueryPort,unFlags,nGameAppId,pchVersionString);
  5987. return result;
  5988. }
  5989. public override void SetProduct(string pszProduct)
  5990. {
  5991. CheckIfUsable();
  5992. NativeEntrypoints.SteamAPI_ISteamGameServer_SetProduct(m_pSteamGameServer,pszProduct);
  5993. }
  5994. public override void SetGameDescription(string pszGameDescription)
  5995. {
  5996. CheckIfUsable();
  5997. NativeEntrypoints.SteamAPI_ISteamGameServer_SetGameDescription(m_pSteamGameServer,pszGameDescription);
  5998. }
  5999. public override void SetModDir(string pszModDir)
  6000. {
  6001. CheckIfUsable();
  6002. NativeEntrypoints.SteamAPI_ISteamGameServer_SetModDir(m_pSteamGameServer,pszModDir);
  6003. }
  6004. public override void SetDedicatedServer(bool bDedicated)
  6005. {
  6006. CheckIfUsable();
  6007. NativeEntrypoints.SteamAPI_ISteamGameServer_SetDedicatedServer(m_pSteamGameServer,bDedicated);
  6008. }
  6009. public override void LogOn(string pszToken)
  6010. {
  6011. CheckIfUsable();
  6012. NativeEntrypoints.SteamAPI_ISteamGameServer_LogOn(m_pSteamGameServer,pszToken);
  6013. }
  6014. public override void LogOnAnonymous()
  6015. {
  6016. CheckIfUsable();
  6017. NativeEntrypoints.SteamAPI_ISteamGameServer_LogOnAnonymous(m_pSteamGameServer);
  6018. }
  6019. public override void LogOff()
  6020. {
  6021. CheckIfUsable();
  6022. NativeEntrypoints.SteamAPI_ISteamGameServer_LogOff(m_pSteamGameServer);
  6023. }
  6024. public override bool BLoggedOn()
  6025. {
  6026. CheckIfUsable();
  6027. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_BLoggedOn(m_pSteamGameServer);
  6028. return result;
  6029. }
  6030. public override bool BSecure()
  6031. {
  6032. CheckIfUsable();
  6033. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_BSecure(m_pSteamGameServer);
  6034. return result;
  6035. }
  6036. public override ulong GetSteamID()
  6037. {
  6038. CheckIfUsable();
  6039. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetSteamID(m_pSteamGameServer);
  6040. return result;
  6041. }
  6042. public override bool WasRestartRequested()
  6043. {
  6044. CheckIfUsable();
  6045. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_WasRestartRequested(m_pSteamGameServer);
  6046. return result;
  6047. }
  6048. public override void SetMaxPlayerCount(int cPlayersMax)
  6049. {
  6050. CheckIfUsable();
  6051. NativeEntrypoints.SteamAPI_ISteamGameServer_SetMaxPlayerCount(m_pSteamGameServer,cPlayersMax);
  6052. }
  6053. public override void SetBotPlayerCount(int cBotplayers)
  6054. {
  6055. CheckIfUsable();
  6056. NativeEntrypoints.SteamAPI_ISteamGameServer_SetBotPlayerCount(m_pSteamGameServer,cBotplayers);
  6057. }
  6058. public override void SetServerName(string pszServerName)
  6059. {
  6060. CheckIfUsable();
  6061. NativeEntrypoints.SteamAPI_ISteamGameServer_SetServerName(m_pSteamGameServer,pszServerName);
  6062. }
  6063. public override void SetMapName(string pszMapName)
  6064. {
  6065. CheckIfUsable();
  6066. NativeEntrypoints.SteamAPI_ISteamGameServer_SetMapName(m_pSteamGameServer,pszMapName);
  6067. }
  6068. public override void SetPasswordProtected(bool bPasswordProtected)
  6069. {
  6070. CheckIfUsable();
  6071. NativeEntrypoints.SteamAPI_ISteamGameServer_SetPasswordProtected(m_pSteamGameServer,bPasswordProtected);
  6072. }
  6073. public override void SetSpectatorPort(char unSpectatorPort)
  6074. {
  6075. CheckIfUsable();
  6076. NativeEntrypoints.SteamAPI_ISteamGameServer_SetSpectatorPort(m_pSteamGameServer,unSpectatorPort);
  6077. }
  6078. public override void SetSpectatorServerName(string pszSpectatorServerName)
  6079. {
  6080. CheckIfUsable();
  6081. NativeEntrypoints.SteamAPI_ISteamGameServer_SetSpectatorServerName(m_pSteamGameServer,pszSpectatorServerName);
  6082. }
  6083. public override void ClearAllKeyValues()
  6084. {
  6085. CheckIfUsable();
  6086. NativeEntrypoints.SteamAPI_ISteamGameServer_ClearAllKeyValues(m_pSteamGameServer);
  6087. }
  6088. public override void SetKeyValue(string pKey,string pValue)
  6089. {
  6090. CheckIfUsable();
  6091. NativeEntrypoints.SteamAPI_ISteamGameServer_SetKeyValue(m_pSteamGameServer,pKey,pValue);
  6092. }
  6093. public override void SetGameTags(string pchGameTags)
  6094. {
  6095. CheckIfUsable();
  6096. NativeEntrypoints.SteamAPI_ISteamGameServer_SetGameTags(m_pSteamGameServer,pchGameTags);
  6097. }
  6098. public override void SetGameData(string pchGameData)
  6099. {
  6100. CheckIfUsable();
  6101. NativeEntrypoints.SteamAPI_ISteamGameServer_SetGameData(m_pSteamGameServer,pchGameData);
  6102. }
  6103. public override void SetRegion(string pszRegion)
  6104. {
  6105. CheckIfUsable();
  6106. NativeEntrypoints.SteamAPI_ISteamGameServer_SetRegion(m_pSteamGameServer,pszRegion);
  6107. }
  6108. public override bool SendUserConnectAndAuthenticate(uint unIPClient,IntPtr pvAuthBlob,uint cubAuthBlobSize,ref CSteamID pSteamIDUser)
  6109. {
  6110. CheckIfUsable();
  6111. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(m_pSteamGameServer,unIPClient,pvAuthBlob,cubAuthBlobSize,ref pSteamIDUser);
  6112. return result;
  6113. }
  6114. public override ulong CreateUnauthenticatedUserConnection()
  6115. {
  6116. CheckIfUsable();
  6117. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(m_pSteamGameServer);
  6118. return result;
  6119. }
  6120. public override void SendUserDisconnect(ulong steamIDUser)
  6121. {
  6122. CheckIfUsable();
  6123. NativeEntrypoints.SteamAPI_ISteamGameServer_SendUserDisconnect(m_pSteamGameServer,steamIDUser);
  6124. }
  6125. public override bool BUpdateUserData(ulong steamIDUser,string pchPlayerName,uint uScore)
  6126. {
  6127. CheckIfUsable();
  6128. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_BUpdateUserData(m_pSteamGameServer,steamIDUser,pchPlayerName,uScore);
  6129. return result;
  6130. }
  6131. public override uint GetAuthSessionTicket(IntPtr pTicket,int cbMaxTicket,ref uint pcbTicket)
  6132. {
  6133. CheckIfUsable();
  6134. pcbTicket = 0;
  6135. uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetAuthSessionTicket(m_pSteamGameServer,pTicket,cbMaxTicket,ref pcbTicket);
  6136. return result;
  6137. }
  6138. public override uint BeginAuthSession(IntPtr pAuthTicket,int cbAuthTicket,ulong steamID)
  6139. {
  6140. CheckIfUsable();
  6141. uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_BeginAuthSession(m_pSteamGameServer,pAuthTicket,cbAuthTicket,steamID);
  6142. return result;
  6143. }
  6144. public override void EndAuthSession(ulong steamID)
  6145. {
  6146. CheckIfUsable();
  6147. NativeEntrypoints.SteamAPI_ISteamGameServer_EndAuthSession(m_pSteamGameServer,steamID);
  6148. }
  6149. public override void CancelAuthTicket(uint hAuthTicket)
  6150. {
  6151. CheckIfUsable();
  6152. NativeEntrypoints.SteamAPI_ISteamGameServer_CancelAuthTicket(m_pSteamGameServer,hAuthTicket);
  6153. }
  6154. public override uint UserHasLicenseForApp(ulong steamID,uint appID)
  6155. {
  6156. CheckIfUsable();
  6157. uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_UserHasLicenseForApp(m_pSteamGameServer,steamID,appID);
  6158. return result;
  6159. }
  6160. public override bool RequestUserGroupStatus(ulong steamIDUser,ulong steamIDGroup)
  6161. {
  6162. CheckIfUsable();
  6163. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_RequestUserGroupStatus(m_pSteamGameServer,steamIDUser,steamIDGroup);
  6164. return result;
  6165. }
  6166. public override void GetGameplayStats()
  6167. {
  6168. CheckIfUsable();
  6169. NativeEntrypoints.SteamAPI_ISteamGameServer_GetGameplayStats(m_pSteamGameServer);
  6170. }
  6171. public override ulong GetServerReputation()
  6172. {
  6173. CheckIfUsable();
  6174. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetServerReputation(m_pSteamGameServer);
  6175. return result;
  6176. }
  6177. public override uint GetPublicIP()
  6178. {
  6179. CheckIfUsable();
  6180. uint result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetPublicIP(m_pSteamGameServer);
  6181. return result;
  6182. }
  6183. public override bool HandleIncomingPacket(IntPtr pData,int cbData,uint srcIP,char srcPort)
  6184. {
  6185. CheckIfUsable();
  6186. bool result = NativeEntrypoints.SteamAPI_ISteamGameServer_HandleIncomingPacket(m_pSteamGameServer,pData,cbData,srcIP,srcPort);
  6187. return result;
  6188. }
  6189. public override int GetNextOutgoingPacket(IntPtr pOut,int cbMaxOut,ref uint pNetAdr,ref char pPort)
  6190. {
  6191. CheckIfUsable();
  6192. pNetAdr = 0;
  6193. pPort = (char) 0;
  6194. int result = NativeEntrypoints.SteamAPI_ISteamGameServer_GetNextOutgoingPacket(m_pSteamGameServer,pOut,cbMaxOut,ref pNetAdr,ref pPort);
  6195. return result;
  6196. }
  6197. public override void EnableHeartbeats(bool bActive)
  6198. {
  6199. CheckIfUsable();
  6200. NativeEntrypoints.SteamAPI_ISteamGameServer_EnableHeartbeats(m_pSteamGameServer,bActive);
  6201. }
  6202. public override void SetHeartbeatInterval(int iHeartbeatInterval)
  6203. {
  6204. CheckIfUsable();
  6205. NativeEntrypoints.SteamAPI_ISteamGameServer_SetHeartbeatInterval(m_pSteamGameServer,iHeartbeatInterval);
  6206. }
  6207. public override void ForceHeartbeat()
  6208. {
  6209. CheckIfUsable();
  6210. NativeEntrypoints.SteamAPI_ISteamGameServer_ForceHeartbeat(m_pSteamGameServer);
  6211. }
  6212. public override ulong AssociateWithClan(ulong steamIDClan)
  6213. {
  6214. CheckIfUsable();
  6215. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_AssociateWithClan(m_pSteamGameServer,steamIDClan);
  6216. return result;
  6217. }
  6218. public override ulong ComputeNewPlayerCompatibility(ulong steamIDNewPlayer)
  6219. {
  6220. CheckIfUsable();
  6221. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(m_pSteamGameServer,steamIDNewPlayer);
  6222. return result;
  6223. }
  6224. }
  6225. public class CSteamGameServerStats : ISteamGameServerStats
  6226. {
  6227. public CSteamGameServerStats(IntPtr SteamGameServerStats)
  6228. {
  6229. m_pSteamGameServerStats = SteamGameServerStats;
  6230. }
  6231. IntPtr m_pSteamGameServerStats;
  6232. public override IntPtr GetIntPtr() { return m_pSteamGameServerStats; }
  6233. private void CheckIfUsable()
  6234. {
  6235. if (m_pSteamGameServerStats == IntPtr.Zero)
  6236. {
  6237. throw new Exception("Steam Pointer not configured");
  6238. }
  6239. }
  6240. public override ulong RequestUserStats(ulong steamIDUser)
  6241. {
  6242. CheckIfUsable();
  6243. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_RequestUserStats(m_pSteamGameServerStats,steamIDUser);
  6244. return result;
  6245. }
  6246. public override bool GetUserStat(ulong steamIDUser,string pchName,ref int pData)
  6247. {
  6248. CheckIfUsable();
  6249. pData = 0;
  6250. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_GetUserStat(m_pSteamGameServerStats,steamIDUser,pchName,ref pData);
  6251. return result;
  6252. }
  6253. public override bool GetUserStat0(ulong steamIDUser,string pchName,ref float pData)
  6254. {
  6255. CheckIfUsable();
  6256. pData = 0;
  6257. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_GetUserStat0(m_pSteamGameServerStats,steamIDUser,pchName,ref pData);
  6258. return result;
  6259. }
  6260. public override bool GetUserAchievement(ulong steamIDUser,string pchName,ref bool pbAchieved)
  6261. {
  6262. CheckIfUsable();
  6263. pbAchieved = false;
  6264. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_GetUserAchievement(m_pSteamGameServerStats,steamIDUser,pchName,ref pbAchieved);
  6265. return result;
  6266. }
  6267. public override bool SetUserStat(ulong steamIDUser,string pchName,int nData)
  6268. {
  6269. CheckIfUsable();
  6270. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_SetUserStat(m_pSteamGameServerStats,steamIDUser,pchName,nData);
  6271. return result;
  6272. }
  6273. public override bool SetUserStat0(ulong steamIDUser,string pchName,float fData)
  6274. {
  6275. CheckIfUsable();
  6276. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_SetUserStat0(m_pSteamGameServerStats,steamIDUser,pchName,fData);
  6277. return result;
  6278. }
  6279. public override bool UpdateUserAvgRateStat(ulong steamIDUser,string pchName,float flCountThisSession,double dSessionLength)
  6280. {
  6281. CheckIfUsable();
  6282. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(m_pSteamGameServerStats,steamIDUser,pchName,flCountThisSession,dSessionLength);
  6283. return result;
  6284. }
  6285. public override bool SetUserAchievement(ulong steamIDUser,string pchName)
  6286. {
  6287. CheckIfUsable();
  6288. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_SetUserAchievement(m_pSteamGameServerStats,steamIDUser,pchName);
  6289. return result;
  6290. }
  6291. public override bool ClearUserAchievement(ulong steamIDUser,string pchName)
  6292. {
  6293. CheckIfUsable();
  6294. bool result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_ClearUserAchievement(m_pSteamGameServerStats,steamIDUser,pchName);
  6295. return result;
  6296. }
  6297. public override ulong StoreUserStats(ulong steamIDUser)
  6298. {
  6299. CheckIfUsable();
  6300. ulong result = NativeEntrypoints.SteamAPI_ISteamGameServerStats_StoreUserStats(m_pSteamGameServerStats,steamIDUser);
  6301. return result;
  6302. }
  6303. }
  6304. public class SteamAPIInterop
  6305. {
  6306. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_RestartAppIfNecessary")]
  6307. internal static extern void SteamAPI_RestartAppIfNecessary(uint unOwnAppID );
  6308. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_Init")]
  6309. internal static extern void SteamAPI_Init();
  6310. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_RunCallbacks")]
  6311. internal static extern void SteamAPI_RunCallbacks();
  6312. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_RegisterCallback")]
  6313. internal static extern void SteamAPI_RegisterCallback(IntPtr pCallback, int iCallback);
  6314. [DllImportAttribute("Steam_api", EntryPoint = "SteamAPI_UnregisterCallback")]
  6315. internal static extern void SteamAPI_UnregisterCallback(IntPtr pCallback);
  6316. [DllImportAttribute("Steam_api", EntryPoint = "SteamClient")]
  6317. internal static extern IntPtr SteamClient();
  6318. [DllImportAttribute("Steam_api", EntryPoint = "SteamUser")]
  6319. internal static extern IntPtr SteamUser();
  6320. [DllImportAttribute("Steam_api", EntryPoint = "SteamFriends")]
  6321. internal static extern IntPtr SteamFriends();
  6322. [DllImportAttribute("Steam_api", EntryPoint = "SteamUtils")]
  6323. internal static extern IntPtr SteamUtils();
  6324. [DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmaking")]
  6325. internal static extern IntPtr SteamMatchmaking();
  6326. [DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingServerListResponse")]
  6327. internal static extern IntPtr SteamMatchmakingServerListResponse();
  6328. [DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingPingResponse")]
  6329. internal static extern IntPtr SteamMatchmakingPingResponse();
  6330. [DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingPlayersResponse")]
  6331. internal static extern IntPtr SteamMatchmakingPlayersResponse();
  6332. [DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingRulesResponse")]
  6333. internal static extern IntPtr SteamMatchmakingRulesResponse();
  6334. [DllImportAttribute("Steam_api", EntryPoint = "SteamMatchmakingServers")]
  6335. internal static extern IntPtr SteamMatchmakingServers();
  6336. [DllImportAttribute("Steam_api", EntryPoint = "SteamRemoteStorage")]
  6337. internal static extern IntPtr SteamRemoteStorage();
  6338. [DllImportAttribute("Steam_api", EntryPoint = "SteamUserStats")]
  6339. internal static extern IntPtr SteamUserStats();
  6340. [DllImportAttribute("Steam_api", EntryPoint = "SteamApps")]
  6341. internal static extern IntPtr SteamApps();
  6342. [DllImportAttribute("Steam_api", EntryPoint = "SteamNetworking")]
  6343. internal static extern IntPtr SteamNetworking();
  6344. [DllImportAttribute("Steam_api", EntryPoint = "SteamScreenshots")]
  6345. internal static extern IntPtr SteamScreenshots();
  6346. [DllImportAttribute("Steam_api", EntryPoint = "SteamMusic")]
  6347. internal static extern IntPtr SteamMusic();
  6348. [DllImportAttribute("Steam_api", EntryPoint = "SteamMusicRemote")]
  6349. internal static extern IntPtr SteamMusicRemote();
  6350. [DllImportAttribute("Steam_api", EntryPoint = "SteamHTTP")]
  6351. internal static extern IntPtr SteamHTTP();
  6352. [DllImportAttribute("Steam_api", EntryPoint = "SteamUnifiedMessages")]
  6353. internal static extern IntPtr SteamUnifiedMessages();
  6354. [DllImportAttribute("Steam_api", EntryPoint = "SteamController")]
  6355. internal static extern IntPtr SteamController();
  6356. [DllImportAttribute("Steam_api", EntryPoint = "SteamUGC")]
  6357. internal static extern IntPtr SteamUGC();
  6358. [DllImportAttribute("Steam_api", EntryPoint = "SteamAppList")]
  6359. internal static extern IntPtr SteamAppList();
  6360. [DllImportAttribute("Steam_api", EntryPoint = "SteamHTMLSurface")]
  6361. internal static extern IntPtr SteamHTMLSurface();
  6362. [DllImportAttribute("Steam_api", EntryPoint = "SteamInventory")]
  6363. internal static extern IntPtr SteamInventory();
  6364. [DllImportAttribute("Steam_api", EntryPoint = "SteamVideo")]
  6365. internal static extern IntPtr SteamVideo();
  6366. [DllImportAttribute("Steam_api", EntryPoint = "SteamGameServer")]
  6367. internal static extern IntPtr SteamGameServer();
  6368. [DllImportAttribute("Steam_api", EntryPoint = "SteamGameServerStats")]
  6369. internal static extern IntPtr SteamGameServerStats();
  6370. }
  6371. public enum EUniverse
  6372. {
  6373. k_EUniverseInvalid = 0,
  6374. k_EUniversePublic = 1,
  6375. k_EUniverseBeta = 2,
  6376. k_EUniverseInternal = 3,
  6377. k_EUniverseDev = 4,
  6378. k_EUniverseMax = 5,
  6379. }
  6380. public enum EResult
  6381. {
  6382. k_EResultOK = 1,
  6383. k_EResultFail = 2,
  6384. k_EResultNoConnection = 3,
  6385. k_EResultInvalidPassword = 5,
  6386. k_EResultLoggedInElsewhere = 6,
  6387. k_EResultInvalidProtocolVer = 7,
  6388. k_EResultInvalidParam = 8,
  6389. k_EResultFileNotFound = 9,
  6390. k_EResultBusy = 10,
  6391. k_EResultInvalidState = 11,
  6392. k_EResultInvalidName = 12,
  6393. k_EResultInvalidEmail = 13,
  6394. k_EResultDuplicateName = 14,
  6395. k_EResultAccessDenied = 15,
  6396. k_EResultTimeout = 16,
  6397. k_EResultBanned = 17,
  6398. k_EResultAccountNotFound = 18,
  6399. k_EResultInvalidSteamID = 19,
  6400. k_EResultServiceUnavailable = 20,
  6401. k_EResultNotLoggedOn = 21,
  6402. k_EResultPending = 22,
  6403. k_EResultEncryptionFailure = 23,
  6404. k_EResultInsufficientPrivilege = 24,
  6405. k_EResultLimitExceeded = 25,
  6406. k_EResultRevoked = 26,
  6407. k_EResultExpired = 27,
  6408. k_EResultAlreadyRedeemed = 28,
  6409. k_EResultDuplicateRequest = 29,
  6410. k_EResultAlreadyOwned = 30,
  6411. k_EResultIPNotFound = 31,
  6412. k_EResultPersistFailed = 32,
  6413. k_EResultLockingFailed = 33,
  6414. k_EResultLogonSessionReplaced = 34,
  6415. k_EResultConnectFailed = 35,
  6416. k_EResultHandshakeFailed = 36,
  6417. k_EResultIOFailure = 37,
  6418. k_EResultRemoteDisconnect = 38,
  6419. k_EResultShoppingCartNotFound = 39,
  6420. k_EResultBlocked = 40,
  6421. k_EResultIgnored = 41,
  6422. k_EResultNoMatch = 42,
  6423. k_EResultAccountDisabled = 43,
  6424. k_EResultServiceReadOnly = 44,
  6425. k_EResultAccountNotFeatured = 45,
  6426. k_EResultAdministratorOK = 46,
  6427. k_EResultContentVersion = 47,
  6428. k_EResultTryAnotherCM = 48,
  6429. k_EResultPasswordRequiredToKickSession = 49,
  6430. k_EResultAlreadyLoggedInElsewhere = 50,
  6431. k_EResultSuspended = 51,
  6432. k_EResultCancelled = 52,
  6433. k_EResultDataCorruption = 53,
  6434. k_EResultDiskFull = 54,
  6435. k_EResultRemoteCallFailed = 55,
  6436. k_EResultPasswordUnset = 56,
  6437. k_EResultExternalAccountUnlinked = 57,
  6438. k_EResultPSNTicketInvalid = 58,
  6439. k_EResultExternalAccountAlreadyLinked = 59,
  6440. k_EResultRemoteFileConflict = 60,
  6441. k_EResultIllegalPassword = 61,
  6442. k_EResultSameAsPreviousValue = 62,
  6443. k_EResultAccountLogonDenied = 63,
  6444. k_EResultCannotUseOldPassword = 64,
  6445. k_EResultInvalidLoginAuthCode = 65,
  6446. k_EResultAccountLogonDeniedNoMail = 66,
  6447. k_EResultHardwareNotCapableOfIPT = 67,
  6448. k_EResultIPTInitError = 68,
  6449. k_EResultParentalControlRestricted = 69,
  6450. k_EResultFacebookQueryError = 70,
  6451. k_EResultExpiredLoginAuthCode = 71,
  6452. k_EResultIPLoginRestrictionFailed = 72,
  6453. k_EResultAccountLockedDown = 73,
  6454. k_EResultAccountLogonDeniedVerifiedEmailRequired = 74,
  6455. k_EResultNoMatchingURL = 75,
  6456. k_EResultBadResponse = 76,
  6457. k_EResultRequirePasswordReEntry = 77,
  6458. k_EResultValueOutOfRange = 78,
  6459. k_EResultUnexpectedError = 79,
  6460. k_EResultDisabled = 80,
  6461. k_EResultInvalidCEGSubmission = 81,
  6462. k_EResultRestrictedDevice = 82,
  6463. k_EResultRegionLocked = 83,
  6464. k_EResultRateLimitExceeded = 84,
  6465. k_EResultAccountLoginDeniedNeedTwoFactor = 85,
  6466. k_EResultItemDeleted = 86,
  6467. k_EResultAccountLoginDeniedThrottle = 87,
  6468. k_EResultTwoFactorCodeMismatch = 88,
  6469. k_EResultTwoFactorActivationCodeMismatch = 89,
  6470. k_EResultAccountAssociatedToMultiplePartners = 90,
  6471. k_EResultNotModified = 91,
  6472. k_EResultNoMobileDevice = 92,
  6473. k_EResultTimeNotSynced = 93,
  6474. k_EResultSmsCodeFailed = 94,
  6475. k_EResultAccountLimitExceeded = 95,
  6476. k_EResultAccountActivityLimitExceeded = 96,
  6477. k_EResultPhoneActivityLimitExceeded = 97,
  6478. k_EResultRefundToWallet = 98,
  6479. k_EResultEmailSendFailure = 99,
  6480. k_EResultNotSettled = 100,
  6481. k_EResultNeedCaptcha = 101,
  6482. }
  6483. public enum EVoiceResult
  6484. {
  6485. k_EVoiceResultOK = 0,
  6486. k_EVoiceResultNotInitialized = 1,
  6487. k_EVoiceResultNotRecording = 2,
  6488. k_EVoiceResultNoData = 3,
  6489. k_EVoiceResultBufferTooSmall = 4,
  6490. k_EVoiceResultDataCorrupted = 5,
  6491. k_EVoiceResultRestricted = 6,
  6492. k_EVoiceResultUnsupportedCodec = 7,
  6493. k_EVoiceResultReceiverOutOfDate = 8,
  6494. k_EVoiceResultReceiverDidNotAnswer = 9,
  6495. }
  6496. public enum EDenyReason
  6497. {
  6498. k_EDenyInvalid = 0,
  6499. k_EDenyInvalidVersion = 1,
  6500. k_EDenyGeneric = 2,
  6501. k_EDenyNotLoggedOn = 3,
  6502. k_EDenyNoLicense = 4,
  6503. k_EDenyCheater = 5,
  6504. k_EDenyLoggedInElseWhere = 6,
  6505. k_EDenyUnknownText = 7,
  6506. k_EDenyIncompatibleAnticheat = 8,
  6507. k_EDenyMemoryCorruption = 9,
  6508. k_EDenyIncompatibleSoftware = 10,
  6509. k_EDenySteamConnectionLost = 11,
  6510. k_EDenySteamConnectionError = 12,
  6511. k_EDenySteamResponseTimedOut = 13,
  6512. k_EDenySteamValidationStalled = 14,
  6513. k_EDenySteamOwnerLeftGuestUser = 15,
  6514. }
  6515. public enum EBeginAuthSessionResult
  6516. {
  6517. k_EBeginAuthSessionResultOK = 0,
  6518. k_EBeginAuthSessionResultInvalidTicket = 1,
  6519. k_EBeginAuthSessionResultDuplicateRequest = 2,
  6520. k_EBeginAuthSessionResultInvalidVersion = 3,
  6521. k_EBeginAuthSessionResultGameMismatch = 4,
  6522. k_EBeginAuthSessionResultExpiredTicket = 5,
  6523. }
  6524. public enum EAuthSessionResponse
  6525. {
  6526. k_EAuthSessionResponseOK = 0,
  6527. k_EAuthSessionResponseUserNotConnectedToSteam = 1,
  6528. k_EAuthSessionResponseNoLicenseOrExpired = 2,
  6529. k_EAuthSessionResponseVACBanned = 3,
  6530. k_EAuthSessionResponseLoggedInElseWhere = 4,
  6531. k_EAuthSessionResponseVACCheckTimedOut = 5,
  6532. k_EAuthSessionResponseAuthTicketCanceled = 6,
  6533. k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7,
  6534. k_EAuthSessionResponseAuthTicketInvalid = 8,
  6535. k_EAuthSessionResponsePublisherIssuedBan = 9,
  6536. }
  6537. public enum EUserHasLicenseForAppResult
  6538. {
  6539. k_EUserHasLicenseResultHasLicense = 0,
  6540. k_EUserHasLicenseResultDoesNotHaveLicense = 1,
  6541. k_EUserHasLicenseResultNoAuth = 2,
  6542. }
  6543. public enum EAccountType
  6544. {
  6545. k_EAccountTypeInvalid = 0,
  6546. k_EAccountTypeIndividual = 1,
  6547. k_EAccountTypeMultiseat = 2,
  6548. k_EAccountTypeGameServer = 3,
  6549. k_EAccountTypeAnonGameServer = 4,
  6550. k_EAccountTypePending = 5,
  6551. k_EAccountTypeContentServer = 6,
  6552. k_EAccountTypeClan = 7,
  6553. k_EAccountTypeChat = 8,
  6554. k_EAccountTypeConsoleUser = 9,
  6555. k_EAccountTypeAnonUser = 10,
  6556. k_EAccountTypeMax = 11,
  6557. }
  6558. public enum EAppReleaseState
  6559. {
  6560. k_EAppReleaseState_Unknown = 0,
  6561. k_EAppReleaseState_Unavailable = 1,
  6562. k_EAppReleaseState_Prerelease = 2,
  6563. k_EAppReleaseState_PreloadOnly = 3,
  6564. k_EAppReleaseState_Released = 4,
  6565. }
  6566. public enum EAppOwnershipFlags
  6567. {
  6568. k_EAppOwnershipFlags_None = 0,
  6569. k_EAppOwnershipFlags_OwnsLicense = 1,
  6570. k_EAppOwnershipFlags_FreeLicense = 2,
  6571. k_EAppOwnershipFlags_RegionRestricted = 4,
  6572. k_EAppOwnershipFlags_LowViolence = 8,
  6573. k_EAppOwnershipFlags_InvalidPlatform = 16,
  6574. k_EAppOwnershipFlags_SharedLicense = 32,
  6575. k_EAppOwnershipFlags_FreeWeekend = 64,
  6576. k_EAppOwnershipFlags_RetailLicense = 128,
  6577. k_EAppOwnershipFlags_LicenseLocked = 256,
  6578. k_EAppOwnershipFlags_LicensePending = 512,
  6579. k_EAppOwnershipFlags_LicenseExpired = 1024,
  6580. k_EAppOwnershipFlags_LicensePermanent = 2048,
  6581. k_EAppOwnershipFlags_LicenseRecurring = 4096,
  6582. k_EAppOwnershipFlags_LicenseCanceled = 8192,
  6583. k_EAppOwnershipFlags_AutoGrant = 16384,
  6584. k_EAppOwnershipFlags_PendingGift = 32768,
  6585. }
  6586. public enum EAppType
  6587. {
  6588. k_EAppType_Invalid = 0,
  6589. k_EAppType_Game = 1,
  6590. k_EAppType_Application = 2,
  6591. k_EAppType_Tool = 4,
  6592. k_EAppType_Demo = 8,
  6593. k_EAppType_Media_DEPRECATED = 16,
  6594. k_EAppType_DLC = 32,
  6595. k_EAppType_Guide = 64,
  6596. k_EAppType_Driver = 128,
  6597. k_EAppType_Config = 256,
  6598. k_EAppType_Hardware = 512,
  6599. k_EAppType_Video = 2048,
  6600. k_EAppType_Plugin = 4096,
  6601. k_EAppType_Music = 8192,
  6602. k_EAppType_Shortcut = 1073741824,
  6603. k_EAppType_DepotOnly = -2147483648,
  6604. }
  6605. public enum ESteamUserStatType
  6606. {
  6607. k_ESteamUserStatTypeINVALID = 0,
  6608. k_ESteamUserStatTypeINT = 1,
  6609. k_ESteamUserStatTypeFLOAT = 2,
  6610. k_ESteamUserStatTypeAVGRATE = 3,
  6611. k_ESteamUserStatTypeACHIEVEMENTS = 4,
  6612. k_ESteamUserStatTypeGROUPACHIEVEMENTS = 5,
  6613. k_ESteamUserStatTypeMAX = 6,
  6614. }
  6615. public enum EChatEntryType
  6616. {
  6617. k_EChatEntryTypeInvalid = 0,
  6618. k_EChatEntryTypeChatMsg = 1,
  6619. k_EChatEntryTypeTyping = 2,
  6620. k_EChatEntryTypeInviteGame = 3,
  6621. k_EChatEntryTypeEmote = 4,
  6622. k_EChatEntryTypeLeftConversation = 6,
  6623. k_EChatEntryTypeEntered = 7,
  6624. k_EChatEntryTypeWasKicked = 8,
  6625. k_EChatEntryTypeWasBanned = 9,
  6626. k_EChatEntryTypeDisconnected = 10,
  6627. k_EChatEntryTypeHistoricalChat = 11,
  6628. k_EChatEntryTypeReserved1 = 12,
  6629. k_EChatEntryTypeReserved2 = 13,
  6630. k_EChatEntryTypeLinkBlocked = 14,
  6631. }
  6632. public enum EChatRoomEnterResponse
  6633. {
  6634. k_EChatRoomEnterResponseSuccess = 1,
  6635. k_EChatRoomEnterResponseDoesntExist = 2,
  6636. k_EChatRoomEnterResponseNotAllowed = 3,
  6637. k_EChatRoomEnterResponseFull = 4,
  6638. k_EChatRoomEnterResponseError = 5,
  6639. k_EChatRoomEnterResponseBanned = 6,
  6640. k_EChatRoomEnterResponseLimited = 7,
  6641. k_EChatRoomEnterResponseClanDisabled = 8,
  6642. k_EChatRoomEnterResponseCommunityBan = 9,
  6643. k_EChatRoomEnterResponseMemberBlockedYou = 10,
  6644. k_EChatRoomEnterResponseYouBlockedMember = 11,
  6645. }
  6646. public enum EChatSteamIDInstanceFlags
  6647. {
  6648. k_EChatAccountInstanceMask = 4095,
  6649. k_EChatInstanceFlagClan = 524288,
  6650. k_EChatInstanceFlagLobby = 262144,
  6651. k_EChatInstanceFlagMMSLobby = 131072,
  6652. }
  6653. public enum EMarketingMessageFlags
  6654. {
  6655. k_EMarketingMessageFlagsNone = 0,
  6656. k_EMarketingMessageFlagsHighPriority = 1,
  6657. k_EMarketingMessageFlagsPlatformWindows = 2,
  6658. k_EMarketingMessageFlagsPlatformMac = 4,
  6659. k_EMarketingMessageFlagsPlatformLinux = 8,
  6660. k_EMarketingMessageFlagsPlatformRestrictions = 14,
  6661. }
  6662. public enum ENotificationPosition
  6663. {
  6664. k_EPositionTopLeft = 0,
  6665. k_EPositionTopRight = 1,
  6666. k_EPositionBottomLeft = 2,
  6667. k_EPositionBottomRight = 3,
  6668. }
  6669. public enum EBroadcastUploadResult
  6670. {
  6671. k_EBroadcastUploadResultNone = 0,
  6672. k_EBroadcastUploadResultOK = 1,
  6673. k_EBroadcastUploadResultInitFailed = 2,
  6674. k_EBroadcastUploadResultFrameFailed = 3,
  6675. k_EBroadcastUploadResultTimeout = 4,
  6676. k_EBroadcastUploadResultBandwidthExceeded = 5,
  6677. k_EBroadcastUploadResultLowFPS = 6,
  6678. k_EBroadcastUploadResultMissingKeyFrames = 7,
  6679. k_EBroadcastUploadResultNoConnection = 8,
  6680. k_EBroadcastUploadResultRelayFailed = 9,
  6681. k_EBroadcastUploadResultSettingsChanged = 10,
  6682. k_EBroadcastUploadResultMissingAudio = 11,
  6683. k_EBroadcastUploadResultTooFarBehind = 12,
  6684. k_EBroadcastUploadResultTranscodeBehind = 13,
  6685. }
  6686. public enum ELaunchOptionType
  6687. {
  6688. k_ELaunchOptionType_None = 0,
  6689. k_ELaunchOptionType_Default = 1,
  6690. k_ELaunchOptionType_SafeMode = 2,
  6691. k_ELaunchOptionType_Multiplayer = 3,
  6692. k_ELaunchOptionType_Config = 4,
  6693. k_ELaunchOptionType_VR = 5,
  6694. k_ELaunchOptionType_Server = 6,
  6695. k_ELaunchOptionType_Editor = 7,
  6696. k_ELaunchOptionType_Manual = 8,
  6697. k_ELaunchOptionType_Benchmark = 9,
  6698. k_ELaunchOptionType_Option1 = 10,
  6699. k_ELaunchOptionType_Option2 = 11,
  6700. k_ELaunchOptionType_Option3 = 12,
  6701. k_ELaunchOptionType_Dialog = 1000,
  6702. }
  6703. public enum EFailureType
  6704. {
  6705. k_EFailureFlushedCallbackQueue = 0,
  6706. k_EFailurePipeFail = 1,
  6707. }
  6708. public enum EFriendRelationship
  6709. {
  6710. k_EFriendRelationshipNone = 0,
  6711. k_EFriendRelationshipBlocked = 1,
  6712. k_EFriendRelationshipRequestRecipient = 2,
  6713. k_EFriendRelationshipFriend = 3,
  6714. k_EFriendRelationshipRequestInitiator = 4,
  6715. k_EFriendRelationshipIgnored = 5,
  6716. k_EFriendRelationshipIgnoredFriend = 6,
  6717. k_EFriendRelationshipSuggested = 7,
  6718. k_EFriendRelationshipMax = 8,
  6719. }
  6720. public enum EPersonaState
  6721. {
  6722. k_EPersonaStateOffline = 0,
  6723. k_EPersonaStateOnline = 1,
  6724. k_EPersonaStateBusy = 2,
  6725. k_EPersonaStateAway = 3,
  6726. k_EPersonaStateSnooze = 4,
  6727. k_EPersonaStateLookingToTrade = 5,
  6728. k_EPersonaStateLookingToPlay = 6,
  6729. k_EPersonaStateMax = 7,
  6730. }
  6731. public enum EFriendFlags
  6732. {
  6733. k_EFriendFlagNone = 0,
  6734. k_EFriendFlagBlocked = 1,
  6735. k_EFriendFlagFriendshipRequested = 2,
  6736. k_EFriendFlagImmediate = 4,
  6737. k_EFriendFlagClanMember = 8,
  6738. k_EFriendFlagOnGameServer = 16,
  6739. k_EFriendFlagRequestingFriendship = 128,
  6740. k_EFriendFlagRequestingInfo = 256,
  6741. k_EFriendFlagIgnored = 512,
  6742. k_EFriendFlagIgnoredFriend = 1024,
  6743. k_EFriendFlagSuggested = 2048,
  6744. k_EFriendFlagAll = 65535,
  6745. }
  6746. public enum EUserRestriction
  6747. {
  6748. k_nUserRestrictionNone = 0,
  6749. k_nUserRestrictionUnknown = 1,
  6750. k_nUserRestrictionAnyChat = 2,
  6751. k_nUserRestrictionVoiceChat = 4,
  6752. k_nUserRestrictionGroupChat = 8,
  6753. k_nUserRestrictionRating = 16,
  6754. k_nUserRestrictionGameInvites = 32,
  6755. k_nUserRestrictionTrading = 64,
  6756. }
  6757. public enum EOverlayToStoreFlag
  6758. {
  6759. k_EOverlayToStoreFlag_None = 0,
  6760. k_EOverlayToStoreFlag_AddToCart = 1,
  6761. k_EOverlayToStoreFlag_AddToCartAndShow = 2,
  6762. }
  6763. public enum EPersonaChange
  6764. {
  6765. k_EPersonaChangeName = 1,
  6766. k_EPersonaChangeStatus = 2,
  6767. k_EPersonaChangeComeOnline = 4,
  6768. k_EPersonaChangeGoneOffline = 8,
  6769. k_EPersonaChangeGamePlayed = 16,
  6770. k_EPersonaChangeGameServer = 32,
  6771. k_EPersonaChangeAvatar = 64,
  6772. k_EPersonaChangeJoinedSource = 128,
  6773. k_EPersonaChangeLeftSource = 256,
  6774. k_EPersonaChangeRelationshipChanged = 512,
  6775. k_EPersonaChangeNameFirstSet = 1024,
  6776. k_EPersonaChangeFacebookInfo = 2048,
  6777. k_EPersonaChangeNickname = 4096,
  6778. k_EPersonaChangeSteamLevel = 8192,
  6779. }
  6780. public enum ESteamAPICallFailure
  6781. {
  6782. k_ESteamAPICallFailureNone = -1,
  6783. k_ESteamAPICallFailureSteamGone = 0,
  6784. k_ESteamAPICallFailureNetworkFailure = 1,
  6785. k_ESteamAPICallFailureInvalidHandle = 2,
  6786. k_ESteamAPICallFailureMismatchedCallback = 3,
  6787. }
  6788. public enum EGamepadTextInputMode
  6789. {
  6790. k_EGamepadTextInputModeNormal = 0,
  6791. k_EGamepadTextInputModePassword = 1,
  6792. }
  6793. public enum EGamepadTextInputLineMode
  6794. {
  6795. k_EGamepadTextInputLineModeSingleLine = 0,
  6796. k_EGamepadTextInputLineModeMultipleLines = 1,
  6797. }
  6798. public enum ECheckFileSignature
  6799. {
  6800. k_ECheckFileSignatureInvalidSignature = 0,
  6801. k_ECheckFileSignatureValidSignature = 1,
  6802. k_ECheckFileSignatureFileNotFound = 2,
  6803. k_ECheckFileSignatureNoSignaturesFoundForThisApp = 3,
  6804. k_ECheckFileSignatureNoSignaturesFoundForThisFile = 4,
  6805. }
  6806. public enum EMatchMakingServerResponse
  6807. {
  6808. eServerResponded = 0,
  6809. eServerFailedToRespond = 1,
  6810. eNoServersListedOnMasterServer = 2,
  6811. }
  6812. public enum ELobbyType
  6813. {
  6814. k_ELobbyTypePrivate = 0,
  6815. k_ELobbyTypeFriendsOnly = 1,
  6816. k_ELobbyTypePublic = 2,
  6817. k_ELobbyTypeInvisible = 3,
  6818. }
  6819. public enum ELobbyComparison
  6820. {
  6821. k_ELobbyComparisonEqualToOrLessThan = -2,
  6822. k_ELobbyComparisonLessThan = -1,
  6823. k_ELobbyComparisonEqual = 0,
  6824. k_ELobbyComparisonGreaterThan = 1,
  6825. k_ELobbyComparisonEqualToOrGreaterThan = 2,
  6826. k_ELobbyComparisonNotEqual = 3,
  6827. }
  6828. public enum ELobbyDistanceFilter
  6829. {
  6830. k_ELobbyDistanceFilterClose = 0,
  6831. k_ELobbyDistanceFilterDefault = 1,
  6832. k_ELobbyDistanceFilterFar = 2,
  6833. k_ELobbyDistanceFilterWorldwide = 3,
  6834. }
  6835. public enum EChatMemberStateChange
  6836. {
  6837. k_EChatMemberStateChangeEntered = 1,
  6838. k_EChatMemberStateChangeLeft = 2,
  6839. k_EChatMemberStateChangeDisconnected = 4,
  6840. k_EChatMemberStateChangeKicked = 8,
  6841. k_EChatMemberStateChangeBanned = 16,
  6842. }
  6843. public enum EResolveConflict
  6844. {
  6845. k_EResolveConflictKeepClient = 1,
  6846. k_EResolveConflictKeepServer = 2,
  6847. }
  6848. public enum ERemoteStoragePlatform
  6849. {
  6850. k_ERemoteStoragePlatformNone = 0,
  6851. k_ERemoteStoragePlatformWindows = 1,
  6852. k_ERemoteStoragePlatformOSX = 2,
  6853. k_ERemoteStoragePlatformPS3 = 4,
  6854. k_ERemoteStoragePlatformLinux = 8,
  6855. k_ERemoteStoragePlatformReserved2 = 16,
  6856. k_ERemoteStoragePlatformAll = -1,
  6857. }
  6858. public enum ERemoteStoragePublishedFileVisibility
  6859. {
  6860. k_ERemoteStoragePublishedFileVisibilityPublic = 0,
  6861. k_ERemoteStoragePublishedFileVisibilityFriendsOnly = 1,
  6862. k_ERemoteStoragePublishedFileVisibilityPrivate = 2,
  6863. }
  6864. public enum EWorkshopFileType
  6865. {
  6866. k_EWorkshopFileTypeFirst = 0,
  6867. k_EWorkshopFileTypeCommunity = 0,
  6868. k_EWorkshopFileTypeMicrotransaction = 1,
  6869. k_EWorkshopFileTypeCollection = 2,
  6870. k_EWorkshopFileTypeArt = 3,
  6871. k_EWorkshopFileTypeVideo = 4,
  6872. k_EWorkshopFileTypeScreenshot = 5,
  6873. k_EWorkshopFileTypeGame = 6,
  6874. k_EWorkshopFileTypeSoftware = 7,
  6875. k_EWorkshopFileTypeConcept = 8,
  6876. k_EWorkshopFileTypeWebGuide = 9,
  6877. k_EWorkshopFileTypeIntegratedGuide = 10,
  6878. k_EWorkshopFileTypeMerch = 11,
  6879. k_EWorkshopFileTypeControllerBinding = 12,
  6880. k_EWorkshopFileTypeSteamworksAccessInvite = 13,
  6881. k_EWorkshopFileTypeSteamVideo = 14,
  6882. k_EWorkshopFileTypeGameManagedItem = 15,
  6883. k_EWorkshopFileTypeMax = 16,
  6884. }
  6885. public enum EWorkshopVote
  6886. {
  6887. k_EWorkshopVoteUnvoted = 0,
  6888. k_EWorkshopVoteFor = 1,
  6889. k_EWorkshopVoteAgainst = 2,
  6890. k_EWorkshopVoteLater = 3,
  6891. }
  6892. public enum EWorkshopFileAction
  6893. {
  6894. k_EWorkshopFileActionPlayed = 0,
  6895. k_EWorkshopFileActionCompleted = 1,
  6896. }
  6897. public enum EWorkshopEnumerationType
  6898. {
  6899. k_EWorkshopEnumerationTypeRankedByVote = 0,
  6900. k_EWorkshopEnumerationTypeRecent = 1,
  6901. k_EWorkshopEnumerationTypeTrending = 2,
  6902. k_EWorkshopEnumerationTypeFavoritesOfFriends = 3,
  6903. k_EWorkshopEnumerationTypeVotedByFriends = 4,
  6904. k_EWorkshopEnumerationTypeContentByFriends = 5,
  6905. k_EWorkshopEnumerationTypeRecentFromFollowedUsers = 6,
  6906. }
  6907. public enum EWorkshopVideoProvider
  6908. {
  6909. k_EWorkshopVideoProviderNone = 0,
  6910. k_EWorkshopVideoProviderYoutube = 1,
  6911. }
  6912. public enum EUGCReadAction
  6913. {
  6914. k_EUGCRead_ContinueReadingUntilFinished = 0,
  6915. k_EUGCRead_ContinueReading = 1,
  6916. k_EUGCRead_Close = 2,
  6917. }
  6918. public enum ELeaderboardDataRequest
  6919. {
  6920. k_ELeaderboardDataRequestGlobal = 0,
  6921. k_ELeaderboardDataRequestGlobalAroundUser = 1,
  6922. k_ELeaderboardDataRequestFriends = 2,
  6923. k_ELeaderboardDataRequestUsers = 3,
  6924. }
  6925. public enum ELeaderboardSortMethod
  6926. {
  6927. k_ELeaderboardSortMethodNone = 0,
  6928. k_ELeaderboardSortMethodAscending = 1,
  6929. k_ELeaderboardSortMethodDescending = 2,
  6930. }
  6931. public enum ELeaderboardDisplayType
  6932. {
  6933. k_ELeaderboardDisplayTypeNone = 0,
  6934. k_ELeaderboardDisplayTypeNumeric = 1,
  6935. k_ELeaderboardDisplayTypeTimeSeconds = 2,
  6936. k_ELeaderboardDisplayTypeTimeMilliSeconds = 3,
  6937. }
  6938. public enum ELeaderboardUploadScoreMethod
  6939. {
  6940. k_ELeaderboardUploadScoreMethodNone = 0,
  6941. k_ELeaderboardUploadScoreMethodKeepBest = 1,
  6942. k_ELeaderboardUploadScoreMethodForceUpdate = 2,
  6943. }
  6944. public enum ERegisterActivationCodeResult
  6945. {
  6946. k_ERegisterActivationCodeResultOK = 0,
  6947. k_ERegisterActivationCodeResultFail = 1,
  6948. k_ERegisterActivationCodeResultAlreadyRegistered = 2,
  6949. k_ERegisterActivationCodeResultTimeout = 3,
  6950. k_ERegisterActivationCodeAlreadyOwned = 4,
  6951. }
  6952. public enum EP2PSessionError
  6953. {
  6954. k_EP2PSessionErrorNone = 0,
  6955. k_EP2PSessionErrorNotRunningApp = 1,
  6956. k_EP2PSessionErrorNoRightsToApp = 2,
  6957. k_EP2PSessionErrorDestinationNotLoggedIn = 3,
  6958. k_EP2PSessionErrorTimeout = 4,
  6959. k_EP2PSessionErrorMax = 5,
  6960. }
  6961. public enum EP2PSend
  6962. {
  6963. k_EP2PSendUnreliable = 0,
  6964. k_EP2PSendUnreliableNoDelay = 1,
  6965. k_EP2PSendReliable = 2,
  6966. k_EP2PSendReliableWithBuffering = 3,
  6967. }
  6968. public enum ESNetSocketState
  6969. {
  6970. k_ESNetSocketStateInvalid = 0,
  6971. k_ESNetSocketStateConnected = 1,
  6972. k_ESNetSocketStateInitiated = 10,
  6973. k_ESNetSocketStateLocalCandidatesFound = 11,
  6974. k_ESNetSocketStateReceivedRemoteCandidates = 12,
  6975. k_ESNetSocketStateChallengeHandshake = 15,
  6976. k_ESNetSocketStateDisconnecting = 21,
  6977. k_ESNetSocketStateLocalDisconnect = 22,
  6978. k_ESNetSocketStateTimeoutDuringConnect = 23,
  6979. k_ESNetSocketStateRemoteEndDisconnected = 24,
  6980. k_ESNetSocketStateConnectionBroken = 25,
  6981. }
  6982. public enum ESNetSocketConnectionType
  6983. {
  6984. k_ESNetSocketConnectionTypeNotConnected = 0,
  6985. k_ESNetSocketConnectionTypeUDP = 1,
  6986. k_ESNetSocketConnectionTypeUDPRelay = 2,
  6987. }
  6988. public enum AudioPlayback_Status
  6989. {
  6990. AudioPlayback_Undefined = 0,
  6991. AudioPlayback_Playing = 1,
  6992. AudioPlayback_Paused = 2,
  6993. AudioPlayback_Idle = 3,
  6994. }
  6995. public enum EHTTPMethod
  6996. {
  6997. k_EHTTPMethodInvalid = 0,
  6998. k_EHTTPMethodGET = 1,
  6999. k_EHTTPMethodHEAD = 2,
  7000. k_EHTTPMethodPOST = 3,
  7001. k_EHTTPMethodPUT = 4,
  7002. k_EHTTPMethodDELETE = 5,
  7003. k_EHTTPMethodOPTIONS = 6,
  7004. }
  7005. public enum EHTTPStatusCode
  7006. {
  7007. k_EHTTPStatusCodeInvalid = 0,
  7008. k_EHTTPStatusCode100Continue = 100,
  7009. k_EHTTPStatusCode101SwitchingProtocols = 101,
  7010. k_EHTTPStatusCode200OK = 200,
  7011. k_EHTTPStatusCode201Created = 201,
  7012. k_EHTTPStatusCode202Accepted = 202,
  7013. k_EHTTPStatusCode203NonAuthoritative = 203,
  7014. k_EHTTPStatusCode204NoContent = 204,
  7015. k_EHTTPStatusCode205ResetContent = 205,
  7016. k_EHTTPStatusCode206PartialContent = 206,
  7017. k_EHTTPStatusCode300MultipleChoices = 300,
  7018. k_EHTTPStatusCode301MovedPermanently = 301,
  7019. k_EHTTPStatusCode302Found = 302,
  7020. k_EHTTPStatusCode303SeeOther = 303,
  7021. k_EHTTPStatusCode304NotModified = 304,
  7022. k_EHTTPStatusCode305UseProxy = 305,
  7023. k_EHTTPStatusCode307TemporaryRedirect = 307,
  7024. k_EHTTPStatusCode400BadRequest = 400,
  7025. k_EHTTPStatusCode401Unauthorized = 401,
  7026. k_EHTTPStatusCode402PaymentRequired = 402,
  7027. k_EHTTPStatusCode403Forbidden = 403,
  7028. k_EHTTPStatusCode404NotFound = 404,
  7029. k_EHTTPStatusCode405MethodNotAllowed = 405,
  7030. k_EHTTPStatusCode406NotAcceptable = 406,
  7031. k_EHTTPStatusCode407ProxyAuthRequired = 407,
  7032. k_EHTTPStatusCode408RequestTimeout = 408,
  7033. k_EHTTPStatusCode409Conflict = 409,
  7034. k_EHTTPStatusCode410Gone = 410,
  7035. k_EHTTPStatusCode411LengthRequired = 411,
  7036. k_EHTTPStatusCode412PreconditionFailed = 412,
  7037. k_EHTTPStatusCode413RequestEntityTooLarge = 413,
  7038. k_EHTTPStatusCode414RequestURITooLong = 414,
  7039. k_EHTTPStatusCode415UnsupportedMediaType = 415,
  7040. k_EHTTPStatusCode416RequestedRangeNotSatisfiable = 416,
  7041. k_EHTTPStatusCode417ExpectationFailed = 417,
  7042. k_EHTTPStatusCode4xxUnknown = 418,
  7043. k_EHTTPStatusCode429TooManyRequests = 429,
  7044. k_EHTTPStatusCode500InternalServerError = 500,
  7045. k_EHTTPStatusCode501NotImplemented = 501,
  7046. k_EHTTPStatusCode502BadGateway = 502,
  7047. k_EHTTPStatusCode503ServiceUnavailable = 503,
  7048. k_EHTTPStatusCode504GatewayTimeout = 504,
  7049. k_EHTTPStatusCode505HTTPVersionNotSupported = 505,
  7050. k_EHTTPStatusCode5xxUnknown = 599,
  7051. }
  7052. public enum ESteamControllerPad
  7053. {
  7054. k_ESteamControllerPad_Left = 0,
  7055. k_ESteamControllerPad_Right = 1,
  7056. }
  7057. public enum EControllerSource
  7058. {
  7059. k_EControllerSource_None = 0,
  7060. k_EControllerSource_LeftTrackpad = 1,
  7061. k_EControllerSource_RightTrackpad = 2,
  7062. k_EControllerSource_Joystick = 3,
  7063. k_EControllerSource_ABXY = 4,
  7064. k_EControllerSource_Switch = 5,
  7065. k_EControllerSource_LeftTrigger = 6,
  7066. k_EControllerSource_RightTrigger = 7,
  7067. k_EControllerSource_Gyro = 8,
  7068. }
  7069. public enum EControllerSourceMode
  7070. {
  7071. k_EControllerSourceMode_None = 0,
  7072. k_EControllerSourceMode_Dpad = 1,
  7073. k_EControllerSourceMode_Buttons = 2,
  7074. k_EControllerSourceMode_FourButtons = 3,
  7075. k_EControllerSourceMode_AbsoluteMouse = 4,
  7076. k_EControllerSourceMode_RelativeMouse = 5,
  7077. k_EControllerSourceMode_JoystickMove = 6,
  7078. k_EControllerSourceMode_JoystickCamera = 7,
  7079. k_EControllerSourceMode_ScrollWheel = 8,
  7080. k_EControllerSourceMode_Trigger = 9,
  7081. k_EControllerSourceMode_TouchMenu = 10,
  7082. }
  7083. public enum EControllerActionOrigin
  7084. {
  7085. k_EControllerActionOrigin_None = 0,
  7086. k_EControllerActionOrigin_A = 1,
  7087. k_EControllerActionOrigin_B = 2,
  7088. k_EControllerActionOrigin_X = 3,
  7089. k_EControllerActionOrigin_Y = 4,
  7090. k_EControllerActionOrigin_LeftBumper = 5,
  7091. k_EControllerActionOrigin_RightBumper = 6,
  7092. k_EControllerActionOrigin_LeftGrip = 7,
  7093. k_EControllerActionOrigin_RightGrip = 8,
  7094. k_EControllerActionOrigin_Start = 9,
  7095. k_EControllerActionOrigin_Back = 10,
  7096. k_EControllerActionOrigin_LeftPad_Touch = 11,
  7097. k_EControllerActionOrigin_LeftPad_Swipe = 12,
  7098. k_EControllerActionOrigin_LeftPad_Click = 13,
  7099. k_EControllerActionOrigin_LeftPad_DPadNorth = 14,
  7100. k_EControllerActionOrigin_LeftPad_DPadSouth = 15,
  7101. k_EControllerActionOrigin_LeftPad_DPadWest = 16,
  7102. k_EControllerActionOrigin_LeftPad_DPadEast = 17,
  7103. k_EControllerActionOrigin_RightPad_Touch = 18,
  7104. k_EControllerActionOrigin_RightPad_Swipe = 19,
  7105. k_EControllerActionOrigin_RightPad_Click = 20,
  7106. k_EControllerActionOrigin_RightPad_DPadNorth = 21,
  7107. k_EControllerActionOrigin_RightPad_DPadSouth = 22,
  7108. k_EControllerActionOrigin_RightPad_DPadWest = 23,
  7109. k_EControllerActionOrigin_RightPad_DPadEast = 24,
  7110. k_EControllerActionOrigin_LeftTrigger_Pull = 25,
  7111. k_EControllerActionOrigin_LeftTrigger_Click = 26,
  7112. k_EControllerActionOrigin_RightTrigger_Pull = 27,
  7113. k_EControllerActionOrigin_RightTrigger_Click = 28,
  7114. k_EControllerActionOrigin_LeftStick_Move = 29,
  7115. k_EControllerActionOrigin_LeftStick_Click = 30,
  7116. k_EControllerActionOrigin_LeftStick_DPadNorth = 31,
  7117. k_EControllerActionOrigin_LeftStick_DPadSouth = 32,
  7118. k_EControllerActionOrigin_LeftStick_DPadWest = 33,
  7119. k_EControllerActionOrigin_LeftStick_DPadEast = 34,
  7120. k_EControllerActionOrigin_Gyro_Move = 35,
  7121. k_EControllerActionOrigin_Gyro_Pitch = 36,
  7122. k_EControllerActionOrigin_Gyro_Yaw = 37,
  7123. k_EControllerActionOrigin_Gyro_Roll = 38,
  7124. k_EControllerActionOrigin_Count = 39,
  7125. }
  7126. public enum EUGCMatchingUGCType
  7127. {
  7128. k_EUGCMatchingUGCType_Items = 0,
  7129. k_EUGCMatchingUGCType_Items_Mtx = 1,
  7130. k_EUGCMatchingUGCType_Items_ReadyToUse = 2,
  7131. k_EUGCMatchingUGCType_Collections = 3,
  7132. k_EUGCMatchingUGCType_Artwork = 4,
  7133. k_EUGCMatchingUGCType_Videos = 5,
  7134. k_EUGCMatchingUGCType_Screenshots = 6,
  7135. k_EUGCMatchingUGCType_AllGuides = 7,
  7136. k_EUGCMatchingUGCType_WebGuides = 8,
  7137. k_EUGCMatchingUGCType_IntegratedGuides = 9,
  7138. k_EUGCMatchingUGCType_UsableInGame = 10,
  7139. k_EUGCMatchingUGCType_ControllerBindings = 11,
  7140. k_EUGCMatchingUGCType_GameManagedItems = 12,
  7141. k_EUGCMatchingUGCType_All = -1,
  7142. }
  7143. public enum EUserUGCList
  7144. {
  7145. k_EUserUGCList_Published = 0,
  7146. k_EUserUGCList_VotedOn = 1,
  7147. k_EUserUGCList_VotedUp = 2,
  7148. k_EUserUGCList_VotedDown = 3,
  7149. k_EUserUGCList_WillVoteLater = 4,
  7150. k_EUserUGCList_Favorited = 5,
  7151. k_EUserUGCList_Subscribed = 6,
  7152. k_EUserUGCList_UsedOrPlayed = 7,
  7153. k_EUserUGCList_Followed = 8,
  7154. }
  7155. public enum EUserUGCListSortOrder
  7156. {
  7157. k_EUserUGCListSortOrder_CreationOrderDesc = 0,
  7158. k_EUserUGCListSortOrder_CreationOrderAsc = 1,
  7159. k_EUserUGCListSortOrder_TitleAsc = 2,
  7160. k_EUserUGCListSortOrder_LastUpdatedDesc = 3,
  7161. k_EUserUGCListSortOrder_SubscriptionDateDesc = 4,
  7162. k_EUserUGCListSortOrder_VoteScoreDesc = 5,
  7163. k_EUserUGCListSortOrder_ForModeration = 6,
  7164. }
  7165. public enum EUGCQuery
  7166. {
  7167. k_EUGCQuery_RankedByVote = 0,
  7168. k_EUGCQuery_RankedByPublicationDate = 1,
  7169. k_EUGCQuery_AcceptedForGameRankedByAcceptanceDate = 2,
  7170. k_EUGCQuery_RankedByTrend = 3,
  7171. k_EUGCQuery_FavoritedByFriendsRankedByPublicationDate = 4,
  7172. k_EUGCQuery_CreatedByFriendsRankedByPublicationDate = 5,
  7173. k_EUGCQuery_RankedByNumTimesReported = 6,
  7174. k_EUGCQuery_CreatedByFollowedUsersRankedByPublicationDate = 7,
  7175. k_EUGCQuery_NotYetRated = 8,
  7176. k_EUGCQuery_RankedByTotalVotesAsc = 9,
  7177. k_EUGCQuery_RankedByVotesUp = 10,
  7178. k_EUGCQuery_RankedByTextSearch = 11,
  7179. k_EUGCQuery_RankedByTotalUniqueSubscriptions = 12,
  7180. }
  7181. public enum EItemUpdateStatus
  7182. {
  7183. k_EItemUpdateStatusInvalid = 0,
  7184. k_EItemUpdateStatusPreparingConfig = 1,
  7185. k_EItemUpdateStatusPreparingContent = 2,
  7186. k_EItemUpdateStatusUploadingContent = 3,
  7187. k_EItemUpdateStatusUploadingPreviewFile = 4,
  7188. k_EItemUpdateStatusCommittingChanges = 5,
  7189. }
  7190. public enum EItemState
  7191. {
  7192. k_EItemStateNone = 0,
  7193. k_EItemStateSubscribed = 1,
  7194. k_EItemStateLegacyItem = 2,
  7195. k_EItemStateInstalled = 4,
  7196. k_EItemStateNeedsUpdate = 8,
  7197. k_EItemStateDownloading = 16,
  7198. k_EItemStateDownloadPending = 32,
  7199. }
  7200. public enum EItemStatistic
  7201. {
  7202. k_EItemStatistic_NumSubscriptions = 0,
  7203. k_EItemStatistic_NumFavorites = 1,
  7204. k_EItemStatistic_NumFollowers = 2,
  7205. k_EItemStatistic_NumUniqueSubscriptions = 3,
  7206. k_EItemStatistic_NumUniqueFavorites = 4,
  7207. k_EItemStatistic_NumUniqueFollowers = 5,
  7208. k_EItemStatistic_NumUniqueWebsiteViews = 6,
  7209. k_EItemStatistic_ReportScore = 7,
  7210. }
  7211. public enum EHTMLMouseButton
  7212. {
  7213. eHTMLMouseButton_Left = 0,
  7214. eHTMLMouseButton_Right = 1,
  7215. eHTMLMouseButton_Middle = 2,
  7216. }
  7217. public enum EMouseCursor
  7218. {
  7219. dc_user = 0,
  7220. dc_none = 1,
  7221. dc_arrow = 2,
  7222. dc_ibeam = 3,
  7223. dc_hourglass = 4,
  7224. dc_waitarrow = 5,
  7225. dc_crosshair = 6,
  7226. dc_up = 7,
  7227. dc_sizenw = 8,
  7228. dc_sizese = 9,
  7229. dc_sizene = 10,
  7230. dc_sizesw = 11,
  7231. dc_sizew = 12,
  7232. dc_sizee = 13,
  7233. dc_sizen = 14,
  7234. dc_sizes = 15,
  7235. dc_sizewe = 16,
  7236. dc_sizens = 17,
  7237. dc_sizeall = 18,
  7238. dc_no = 19,
  7239. dc_hand = 20,
  7240. dc_blank = 21,
  7241. dc_middle_pan = 22,
  7242. dc_north_pan = 23,
  7243. dc_north_east_pan = 24,
  7244. dc_east_pan = 25,
  7245. dc_south_east_pan = 26,
  7246. dc_south_pan = 27,
  7247. dc_south_west_pan = 28,
  7248. dc_west_pan = 29,
  7249. dc_north_west_pan = 30,
  7250. dc_alias = 31,
  7251. dc_cell = 32,
  7252. dc_colresize = 33,
  7253. dc_copycur = 34,
  7254. dc_verticaltext = 35,
  7255. dc_rowresize = 36,
  7256. dc_zoomin = 37,
  7257. dc_zoomout = 38,
  7258. dc_help = 39,
  7259. dc_custom = 40,
  7260. dc_last = 41,
  7261. }
  7262. public enum EHTMLKeyModifiers
  7263. {
  7264. k_eHTMLKeyModifier_None = 0,
  7265. k_eHTMLKeyModifier_AltDown = 1,
  7266. k_eHTMLKeyModifier_CtrlDown = 2,
  7267. k_eHTMLKeyModifier_ShiftDown = 4,
  7268. }
  7269. public enum ESteamItemFlags
  7270. {
  7271. k_ESteamItemNoTrade = 1,
  7272. k_ESteamItemRemoved = 256,
  7273. k_ESteamItemConsumed = 512,
  7274. }
  7275. [StructLayout(LayoutKind.Sequential)] public struct CSteamID
  7276. {
  7277. public SteamID_t m_steamid;
  7278. }
  7279. [StructLayout(LayoutKind.Sequential)] public struct SteamID_t
  7280. {
  7281. public SteamIDComponent_t m_comp;
  7282. public ulong m_unAll64Bits;
  7283. }
  7284. [StructLayout(LayoutKind.Sequential)] public struct SteamIDComponent_t
  7285. {
  7286. public uint m_unAccountID;
  7287. public uint m_unAccountInstance;
  7288. public uint m_EAccountType;
  7289. public EUniverse m_EUniverse;
  7290. }
  7291. [StructLayout(LayoutKind.Sequential)] public struct GameID_t
  7292. {
  7293. public uint m_nAppID;
  7294. public uint m_nType;
  7295. public uint m_nModID;
  7296. }
  7297. [StructLayout(LayoutKind.Sequential)] public struct ValvePackingSentinel_t
  7298. {
  7299. public uint m_u32;
  7300. public ulong m_u64;
  7301. public char m_u16;
  7302. public double m_d;
  7303. }
  7304. [StructLayout(LayoutKind.Sequential)] public struct CallbackMsg_t
  7305. {
  7306. public uint m_hSteamUser;
  7307. public int m_iCallback;
  7308. public IntPtr m_pubParam;
  7309. public int m_cubParam;
  7310. }
  7311. [StructLayout(LayoutKind.Sequential)] public struct SteamServerConnectFailure_t
  7312. {
  7313. public EResult m_eResult;
  7314. public bool m_bStillRetrying;
  7315. }
  7316. [StructLayout(LayoutKind.Sequential)] public struct SteamServersDisconnected_t
  7317. {
  7318. public EResult m_eResult;
  7319. }
  7320. [StructLayout(LayoutKind.Sequential)] public struct ClientGameServerDeny_t
  7321. {
  7322. public uint m_uAppID;
  7323. public uint m_unGameServerIP;
  7324. public char m_usGameServerPort;
  7325. public char m_bSecure;
  7326. public uint m_uReason;
  7327. }
  7328. [StructLayout(LayoutKind.Sequential)] public struct ValidateAuthTicketResponse_t
  7329. {
  7330. public ulong m_SteamID;
  7331. public EAuthSessionResponse m_eAuthSessionResponse;
  7332. public ulong m_OwnerSteamID;
  7333. }
  7334. [StructLayout(LayoutKind.Sequential)] public struct MicroTxnAuthorizationResponse_t
  7335. {
  7336. public uint m_unAppID;
  7337. public ulong m_ulOrderID;
  7338. public byte m_bAuthorized;
  7339. }
  7340. [StructLayout(LayoutKind.Sequential)] public struct EncryptedAppTicketResponse_t
  7341. {
  7342. public EResult m_eResult;
  7343. }
  7344. [StructLayout(LayoutKind.Sequential)] public struct GetAuthSessionTicketResponse_t
  7345. {
  7346. public uint m_hAuthTicket;
  7347. public EResult m_eResult;
  7348. }
  7349. [StructLayout(LayoutKind.Sequential)] public struct GameWebCallback_t
  7350. {
  7351. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  7352. public char[] m_szURL; //char[256]
  7353. }
  7354. [StructLayout(LayoutKind.Sequential)] public struct StoreAuthURLResponse_t
  7355. {
  7356. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 512, ArraySubType = UnmanagedType.I1)]
  7357. public char[] m_szURL; //char[512]
  7358. }
  7359. [StructLayout(LayoutKind.Sequential)] public struct FriendGameInfo_t
  7360. {
  7361. public ulong m_gameID;
  7362. public uint m_unGameIP;
  7363. public char m_usGamePort;
  7364. public char m_usQueryPort;
  7365. public ulong m_steamIDLobby;
  7366. }
  7367. [StructLayout(LayoutKind.Sequential)] public struct FriendSessionStateInfo_t
  7368. {
  7369. public uint m_uiOnlineSessionInstances;
  7370. public byte m_uiPublishedToFriendsSessionInstance;
  7371. }
  7372. [StructLayout(LayoutKind.Sequential)] public struct PersonaStateChange_t
  7373. {
  7374. public ulong m_ulSteamID;
  7375. public int m_nChangeFlags;
  7376. }
  7377. [StructLayout(LayoutKind.Sequential)] public struct GameOverlayActivated_t
  7378. {
  7379. public byte m_bActive;
  7380. }
  7381. [StructLayout(LayoutKind.Sequential)] public struct GameServerChangeRequested_t
  7382. {
  7383. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)]
  7384. public char[] m_rgchServer; //char[64]
  7385. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)]
  7386. public char[] m_rgchPassword; //char[64]
  7387. }
  7388. [StructLayout(LayoutKind.Sequential)] public struct GameLobbyJoinRequested_t
  7389. {
  7390. public ulong m_steamIDLobby;
  7391. public ulong m_steamIDFriend;
  7392. }
  7393. [StructLayout(LayoutKind.Sequential)] public struct AvatarImageLoaded_t
  7394. {
  7395. public ulong m_steamID;
  7396. public int m_iImage;
  7397. public int m_iWide;
  7398. public int m_iTall;
  7399. }
  7400. [StructLayout(LayoutKind.Sequential)] public struct ClanOfficerListResponse_t
  7401. {
  7402. public ulong m_steamIDClan;
  7403. public int m_cOfficers;
  7404. public byte m_bSuccess;
  7405. }
  7406. [StructLayout(LayoutKind.Sequential)] public struct FriendRichPresenceUpdate_t
  7407. {
  7408. public ulong m_steamIDFriend;
  7409. public uint m_nAppID;
  7410. }
  7411. [StructLayout(LayoutKind.Sequential)] public struct GameRichPresenceJoinRequested_t
  7412. {
  7413. public ulong m_steamIDFriend;
  7414. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  7415. public char[] m_rgchConnect; //char[256]
  7416. }
  7417. [StructLayout(LayoutKind.Sequential)] public struct GameConnectedClanChatMsg_t
  7418. {
  7419. public ulong m_steamIDClanChat;
  7420. public ulong m_steamIDUser;
  7421. public int m_iMessageID;
  7422. }
  7423. [StructLayout(LayoutKind.Sequential)] public struct GameConnectedChatJoin_t
  7424. {
  7425. public ulong m_steamIDClanChat;
  7426. public ulong m_steamIDUser;
  7427. }
  7428. [StructLayout(LayoutKind.Sequential)] public struct GameConnectedChatLeave_t
  7429. {
  7430. public ulong m_steamIDClanChat;
  7431. public ulong m_steamIDUser;
  7432. public bool m_bKicked;
  7433. public bool m_bDropped;
  7434. }
  7435. [StructLayout(LayoutKind.Sequential)] public struct DownloadClanActivityCountsResult_t
  7436. {
  7437. public bool m_bSuccess;
  7438. }
  7439. [StructLayout(LayoutKind.Sequential)] public struct JoinClanChatRoomCompletionResult_t
  7440. {
  7441. public ulong m_steamIDClanChat;
  7442. public EChatRoomEnterResponse m_eChatRoomEnterResponse;
  7443. }
  7444. [StructLayout(LayoutKind.Sequential)] public struct GameConnectedFriendChatMsg_t
  7445. {
  7446. public ulong m_steamIDUser;
  7447. public int m_iMessageID;
  7448. }
  7449. [StructLayout(LayoutKind.Sequential)] public struct FriendsGetFollowerCount_t
  7450. {
  7451. public EResult m_eResult;
  7452. public ulong m_steamID;
  7453. public int m_nCount;
  7454. }
  7455. [StructLayout(LayoutKind.Sequential)] public struct FriendsIsFollowing_t
  7456. {
  7457. public EResult m_eResult;
  7458. public ulong m_steamID;
  7459. public bool m_bIsFollowing;
  7460. }
  7461. [StructLayout(LayoutKind.Sequential)] public struct FriendsEnumerateFollowingList_t
  7462. {
  7463. public EResult m_eResult;
  7464. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
  7465. public CSteamID[] m_rgSteamID; //CSteamID[50]
  7466. public int m_nResultsReturned;
  7467. public int m_nTotalResultCount;
  7468. }
  7469. [StructLayout(LayoutKind.Sequential)] public struct SetPersonaNameResponse_t
  7470. {
  7471. public bool m_bSuccess;
  7472. public bool m_bLocalSuccess;
  7473. public EResult m_result;
  7474. }
  7475. [StructLayout(LayoutKind.Sequential)] public struct LowBatteryPower_t
  7476. {
  7477. public byte m_nMinutesBatteryLeft;
  7478. }
  7479. [StructLayout(LayoutKind.Sequential)] public struct SteamAPICallCompleted_t
  7480. {
  7481. public ulong m_hAsyncCall;
  7482. }
  7483. [StructLayout(LayoutKind.Sequential)] public struct CheckFileSignature_t
  7484. {
  7485. public ECheckFileSignature m_eCheckFileSignature;
  7486. }
  7487. [StructLayout(LayoutKind.Sequential)] public struct GamepadTextInputDismissed_t
  7488. {
  7489. public bool m_bSubmitted;
  7490. public uint m_unSubmittedText;
  7491. }
  7492. [StructLayout(LayoutKind.Sequential)] public struct MatchMakingKeyValuePair_t
  7493. {
  7494. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  7495. public char[] m_szKey; //char[256]
  7496. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  7497. public char[] m_szValue; //char[256]
  7498. }
  7499. [StructLayout(LayoutKind.Sequential)] public struct servernetadr_t
  7500. {
  7501. public char m_usConnectionPort;
  7502. public char m_usQueryPort;
  7503. public uint m_unIP;
  7504. }
  7505. [StructLayout(LayoutKind.Sequential)] public struct gameserveritem_t
  7506. {
  7507. public servernetadr_t m_NetAdr;
  7508. public int m_nPing;
  7509. public bool m_bHadSuccessfulResponse;
  7510. public bool m_bDoNotRefresh;
  7511. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.I1)]
  7512. public char[] m_szGameDir; //char[32]
  7513. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32, ArraySubType = UnmanagedType.I1)]
  7514. public char[] m_szMap; //char[32]
  7515. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)]
  7516. public char[] m_szGameDescription; //char[64]
  7517. public uint m_nAppID;
  7518. public int m_nPlayers;
  7519. public int m_nMaxPlayers;
  7520. public int m_nBotPlayers;
  7521. public bool m_bPassword;
  7522. public bool m_bSecure;
  7523. public uint m_ulTimeLastPlayed;
  7524. public int m_nServerVersion;
  7525. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)]
  7526. public char[] m_szServerName; //char[64]
  7527. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)]
  7528. public char[] m_szGameTags; //char[128]
  7529. public ulong m_steamID;
  7530. }
  7531. [StructLayout(LayoutKind.Sequential)] public struct FavoritesListChanged_t
  7532. {
  7533. public uint m_nIP;
  7534. public uint m_nQueryPort;
  7535. public uint m_nConnPort;
  7536. public uint m_nAppID;
  7537. public uint m_nFlags;
  7538. public bool m_bAdd;
  7539. public uint m_unAccountId;
  7540. }
  7541. [StructLayout(LayoutKind.Sequential)] public struct LobbyInvite_t
  7542. {
  7543. public ulong m_ulSteamIDUser;
  7544. public ulong m_ulSteamIDLobby;
  7545. public ulong m_ulGameID;
  7546. }
  7547. [StructLayout(LayoutKind.Sequential)] public struct LobbyEnter_t
  7548. {
  7549. public ulong m_ulSteamIDLobby;
  7550. public uint m_rgfChatPermissions;
  7551. public bool m_bLocked;
  7552. public uint m_EChatRoomEnterResponse;
  7553. }
  7554. [StructLayout(LayoutKind.Sequential)] public struct LobbyDataUpdate_t
  7555. {
  7556. public ulong m_ulSteamIDLobby;
  7557. public ulong m_ulSteamIDMember;
  7558. public byte m_bSuccess;
  7559. }
  7560. [StructLayout(LayoutKind.Sequential)] public struct LobbyChatUpdate_t
  7561. {
  7562. public ulong m_ulSteamIDLobby;
  7563. public ulong m_ulSteamIDUserChanged;
  7564. public ulong m_ulSteamIDMakingChange;
  7565. public uint m_rgfChatMemberStateChange;
  7566. }
  7567. [StructLayout(LayoutKind.Sequential)] public struct LobbyChatMsg_t
  7568. {
  7569. public ulong m_ulSteamIDLobby;
  7570. public ulong m_ulSteamIDUser;
  7571. public byte m_eChatEntryType;
  7572. public uint m_iChatID;
  7573. }
  7574. [StructLayout(LayoutKind.Sequential)] public struct LobbyGameCreated_t
  7575. {
  7576. public ulong m_ulSteamIDLobby;
  7577. public ulong m_ulSteamIDGameServer;
  7578. public uint m_unIP;
  7579. public char m_usPort;
  7580. }
  7581. [StructLayout(LayoutKind.Sequential)] public struct LobbyMatchList_t
  7582. {
  7583. public uint m_nLobbiesMatching;
  7584. }
  7585. [StructLayout(LayoutKind.Sequential)] public struct LobbyKicked_t
  7586. {
  7587. public ulong m_ulSteamIDLobby;
  7588. public ulong m_ulSteamIDAdmin;
  7589. public byte m_bKickedDueToDisconnect;
  7590. }
  7591. [StructLayout(LayoutKind.Sequential)] public struct LobbyCreated_t
  7592. {
  7593. public EResult m_eResult;
  7594. public ulong m_ulSteamIDLobby;
  7595. }
  7596. [StructLayout(LayoutKind.Sequential)] public struct PSNGameBootInviteResult_t
  7597. {
  7598. public bool m_bGameBootInviteExists;
  7599. public ulong m_steamIDLobby;
  7600. }
  7601. [StructLayout(LayoutKind.Sequential)] public struct FavoritesListAccountsUpdated_t
  7602. {
  7603. public EResult m_eResult;
  7604. }
  7605. [StructLayout(LayoutKind.Sequential)] public struct SteamParamStringArray_t
  7606. {
  7607. public string m_ppStrings;
  7608. public int m_nNumStrings;
  7609. }
  7610. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncedClient_t
  7611. {
  7612. public uint m_nAppID;
  7613. public EResult m_eResult;
  7614. public int m_unNumDownloads;
  7615. }
  7616. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncedServer_t
  7617. {
  7618. public uint m_nAppID;
  7619. public EResult m_eResult;
  7620. public int m_unNumUploads;
  7621. }
  7622. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncProgress_t
  7623. {
  7624. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)]
  7625. public char[] m_rgchCurrentFile; //char[260]
  7626. public uint m_nAppID;
  7627. public uint m_uBytesTransferredThisChunk;
  7628. public double m_dAppPercentComplete;
  7629. public bool m_bUploading;
  7630. }
  7631. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageAppSyncStatusCheck_t
  7632. {
  7633. public uint m_nAppID;
  7634. public EResult m_eResult;
  7635. }
  7636. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageConflictResolution_t
  7637. {
  7638. public uint m_nAppID;
  7639. public EResult m_eResult;
  7640. }
  7641. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageFileShareResult_t
  7642. {
  7643. public EResult m_eResult;
  7644. public ulong m_hFile;
  7645. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)]
  7646. public char[] m_rgchFilename; //char[260]
  7647. }
  7648. [StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishFileResult_t
  7649. {
  7650. public EResult m_eResult;
  7651. public ulong m_nPublishedFileId;
  7652. public bool m_bUserNeedsToAcceptWorkshopLegalAgreement;
  7653. }
  7654. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageDeletePublishedFileResult_t
  7655. {
  7656. public EResult m_eResult;
  7657. public ulong m_nPublishedFileId;
  7658. }
  7659. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateUserPublishedFilesResult_t
  7660. {
  7661. public EResult m_eResult;
  7662. public int m_nResultsReturned;
  7663. public int m_nTotalResultCount;
  7664. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
  7665. public ulong[] m_rgPublishedFileId; //ulong[50]
  7666. }
  7667. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageSubscribePublishedFileResult_t
  7668. {
  7669. public EResult m_eResult;
  7670. public ulong m_nPublishedFileId;
  7671. }
  7672. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateUserSubscribedFilesResult_t
  7673. {
  7674. public EResult m_eResult;
  7675. public int m_nResultsReturned;
  7676. public int m_nTotalResultCount;
  7677. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
  7678. public ulong[] m_rgPublishedFileId; //ulong[50]
  7679. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U4)]
  7680. public uint[] m_rgRTimeSubscribed; //uint[50]
  7681. }
  7682. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUnsubscribePublishedFileResult_t
  7683. {
  7684. public EResult m_eResult;
  7685. public ulong m_nPublishedFileId;
  7686. }
  7687. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUpdatePublishedFileResult_t
  7688. {
  7689. public EResult m_eResult;
  7690. public ulong m_nPublishedFileId;
  7691. public bool m_bUserNeedsToAcceptWorkshopLegalAgreement;
  7692. }
  7693. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageDownloadUGCResult_t
  7694. {
  7695. public EResult m_eResult;
  7696. public ulong m_hFile;
  7697. public uint m_nAppID;
  7698. public int m_nSizeInBytes;
  7699. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)]
  7700. public char[] m_pchFileName; //char[260]
  7701. public ulong m_ulSteamIDOwner;
  7702. }
  7703. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageGetPublishedFileDetailsResult_t
  7704. {
  7705. public EResult m_eResult;
  7706. public ulong m_nPublishedFileId;
  7707. public uint m_nCreatorAppID;
  7708. public uint m_nConsumerAppID;
  7709. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 129, ArraySubType = UnmanagedType.I1)]
  7710. public char[] m_rgchTitle; //char[129]
  7711. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8000, ArraySubType = UnmanagedType.I1)]
  7712. public char[] m_rgchDescription; //char[8000]
  7713. public ulong m_hFile;
  7714. public ulong m_hPreviewFile;
  7715. public ulong m_ulSteamIDOwner;
  7716. public uint m_rtimeCreated;
  7717. public uint m_rtimeUpdated;
  7718. public ERemoteStoragePublishedFileVisibility m_eVisibility;
  7719. public bool m_bBanned;
  7720. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1025, ArraySubType = UnmanagedType.I1)]
  7721. public char[] m_rgchTags; //char[1025]
  7722. public bool m_bTagsTruncated;
  7723. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)]
  7724. public char[] m_pchFileName; //char[260]
  7725. public int m_nFileSize;
  7726. public int m_nPreviewFileSize;
  7727. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  7728. public char[] m_rgchURL; //char[256]
  7729. public EWorkshopFileType m_eFileType;
  7730. public bool m_bAcceptedForUse;
  7731. }
  7732. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateWorkshopFilesResult_t
  7733. {
  7734. public EResult m_eResult;
  7735. public int m_nResultsReturned;
  7736. public int m_nTotalResultCount;
  7737. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
  7738. public ulong[] m_rgPublishedFileId; //ulong[50]
  7739. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.R4)]
  7740. public float[] m_rgScore; //float[50]
  7741. public uint m_nAppId;
  7742. public uint m_unStartIndex;
  7743. }
  7744. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageGetPublishedItemVoteDetailsResult_t
  7745. {
  7746. public EResult m_eResult;
  7747. public ulong m_unPublishedFileId;
  7748. public int m_nVotesFor;
  7749. public int m_nVotesAgainst;
  7750. public int m_nReports;
  7751. public float m_fScore;
  7752. }
  7753. [StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileSubscribed_t
  7754. {
  7755. public ulong m_nPublishedFileId;
  7756. public uint m_nAppID;
  7757. }
  7758. [StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileUnsubscribed_t
  7759. {
  7760. public ulong m_nPublishedFileId;
  7761. public uint m_nAppID;
  7762. }
  7763. [StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileDeleted_t
  7764. {
  7765. public ulong m_nPublishedFileId;
  7766. public uint m_nAppID;
  7767. }
  7768. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUpdateUserPublishedItemVoteResult_t
  7769. {
  7770. public EResult m_eResult;
  7771. public ulong m_nPublishedFileId;
  7772. }
  7773. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageUserVoteDetails_t
  7774. {
  7775. public EResult m_eResult;
  7776. public ulong m_nPublishedFileId;
  7777. public EWorkshopVote m_eVote;
  7778. }
  7779. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumerateUserSharedWorkshopFilesResult_t
  7780. {
  7781. public EResult m_eResult;
  7782. public int m_nResultsReturned;
  7783. public int m_nTotalResultCount;
  7784. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
  7785. public ulong[] m_rgPublishedFileId; //ulong[50]
  7786. }
  7787. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageSetUserPublishedFileActionResult_t
  7788. {
  7789. public EResult m_eResult;
  7790. public ulong m_nPublishedFileId;
  7791. public EWorkshopFileAction m_eAction;
  7792. }
  7793. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageEnumeratePublishedFilesByUserActionResult_t
  7794. {
  7795. public EResult m_eResult;
  7796. public EWorkshopFileAction m_eAction;
  7797. public int m_nResultsReturned;
  7798. public int m_nTotalResultCount;
  7799. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
  7800. public ulong[] m_rgPublishedFileId; //ulong[50]
  7801. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U4)]
  7802. public uint[] m_rgRTimeUpdated; //uint[50]
  7803. }
  7804. [StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishFileProgress_t
  7805. {
  7806. public double m_dPercentFile;
  7807. public bool m_bPreview;
  7808. }
  7809. [StructLayout(LayoutKind.Sequential)] public struct RemoteStoragePublishedFileUpdated_t
  7810. {
  7811. public ulong m_nPublishedFileId;
  7812. public uint m_nAppID;
  7813. public ulong m_hFile;
  7814. }
  7815. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageFileWriteAsyncComplete_t
  7816. {
  7817. public EResult m_eResult;
  7818. }
  7819. [StructLayout(LayoutKind.Sequential)] public struct RemoteStorageFileReadAsyncComplete_t
  7820. {
  7821. public ulong m_hFileReadAsync;
  7822. public EResult m_eResult;
  7823. public uint m_nOffset;
  7824. public uint m_cubRead;
  7825. }
  7826. [StructLayout(LayoutKind.Sequential)] public struct LeaderboardEntry_t
  7827. {
  7828. public ulong m_steamIDUser;
  7829. public int m_nGlobalRank;
  7830. public int m_nScore;
  7831. public int m_cDetails;
  7832. public ulong m_hUGC;
  7833. }
  7834. [StructLayout(LayoutKind.Sequential)] public struct UserStatsReceived_t
  7835. {
  7836. public ulong m_nGameID;
  7837. public EResult m_eResult;
  7838. public ulong m_steamIDUser;
  7839. }
  7840. [StructLayout(LayoutKind.Sequential)] public struct UserStatsStored_t
  7841. {
  7842. public ulong m_nGameID;
  7843. public EResult m_eResult;
  7844. }
  7845. [StructLayout(LayoutKind.Sequential)] public struct UserAchievementStored_t
  7846. {
  7847. public ulong m_nGameID;
  7848. public bool m_bGroupAchievement;
  7849. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)]
  7850. public char[] m_rgchAchievementName; //char[128]
  7851. public uint m_nCurProgress;
  7852. public uint m_nMaxProgress;
  7853. }
  7854. [StructLayout(LayoutKind.Sequential)] public struct LeaderboardFindResult_t
  7855. {
  7856. public ulong m_hSteamLeaderboard;
  7857. public byte m_bLeaderboardFound;
  7858. }
  7859. [StructLayout(LayoutKind.Sequential)] public struct LeaderboardScoresDownloaded_t
  7860. {
  7861. public ulong m_hSteamLeaderboard;
  7862. public ulong m_hSteamLeaderboardEntries;
  7863. public int m_cEntryCount;
  7864. }
  7865. [StructLayout(LayoutKind.Sequential)] public struct LeaderboardScoreUploaded_t
  7866. {
  7867. public byte m_bSuccess;
  7868. public ulong m_hSteamLeaderboard;
  7869. public int m_nScore;
  7870. public byte m_bScoreChanged;
  7871. public int m_nGlobalRankNew;
  7872. public int m_nGlobalRankPrevious;
  7873. }
  7874. [StructLayout(LayoutKind.Sequential)] public struct NumberOfCurrentPlayers_t
  7875. {
  7876. public byte m_bSuccess;
  7877. public int m_cPlayers;
  7878. }
  7879. [StructLayout(LayoutKind.Sequential)] public struct UserStatsUnloaded_t
  7880. {
  7881. public ulong m_steamIDUser;
  7882. }
  7883. [StructLayout(LayoutKind.Sequential)] public struct UserAchievementIconFetched_t
  7884. {
  7885. public ulong m_nGameID;
  7886. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)]
  7887. public char[] m_rgchAchievementName; //char[128]
  7888. public bool m_bAchieved;
  7889. public int m_nIconHandle;
  7890. }
  7891. [StructLayout(LayoutKind.Sequential)] public struct GlobalAchievementPercentagesReady_t
  7892. {
  7893. public ulong m_nGameID;
  7894. public EResult m_eResult;
  7895. }
  7896. [StructLayout(LayoutKind.Sequential)] public struct LeaderboardUGCSet_t
  7897. {
  7898. public EResult m_eResult;
  7899. public ulong m_hSteamLeaderboard;
  7900. }
  7901. [StructLayout(LayoutKind.Sequential)] public struct PS3TrophiesInstalled_t
  7902. {
  7903. public ulong m_nGameID;
  7904. public EResult m_eResult;
  7905. public ulong m_ulRequiredDiskSpace;
  7906. }
  7907. [StructLayout(LayoutKind.Sequential)] public struct GlobalStatsReceived_t
  7908. {
  7909. public ulong m_nGameID;
  7910. public EResult m_eResult;
  7911. }
  7912. [StructLayout(LayoutKind.Sequential)] public struct DlcInstalled_t
  7913. {
  7914. public uint m_nAppID;
  7915. }
  7916. [StructLayout(LayoutKind.Sequential)] public struct RegisterActivationCodeResponse_t
  7917. {
  7918. public ERegisterActivationCodeResult m_eResult;
  7919. public uint m_unPackageRegistered;
  7920. }
  7921. [StructLayout(LayoutKind.Sequential)] public struct AppProofOfPurchaseKeyResponse_t
  7922. {
  7923. public EResult m_eResult;
  7924. public uint m_nAppID;
  7925. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.I1)]
  7926. public char[] m_rgchKey; //char[64]
  7927. }
  7928. [StructLayout(LayoutKind.Sequential)] public struct P2PSessionState_t
  7929. {
  7930. public byte m_bConnectionActive;
  7931. public byte m_bConnecting;
  7932. public byte m_eP2PSessionError;
  7933. public byte m_bUsingRelay;
  7934. public int m_nBytesQueuedForSend;
  7935. public int m_nPacketsQueuedForSend;
  7936. public uint m_nRemoteIP;
  7937. public char m_nRemotePort;
  7938. }
  7939. [StructLayout(LayoutKind.Sequential)] public struct P2PSessionRequest_t
  7940. {
  7941. public ulong m_steamIDRemote;
  7942. }
  7943. [StructLayout(LayoutKind.Sequential)] public struct P2PSessionConnectFail_t
  7944. {
  7945. public ulong m_steamIDRemote;
  7946. public byte m_eP2PSessionError;
  7947. }
  7948. [StructLayout(LayoutKind.Sequential)] public struct SocketStatusCallback_t
  7949. {
  7950. public uint m_hSocket;
  7951. public uint m_hListenSocket;
  7952. public ulong m_steamIDRemote;
  7953. public int m_eSNetSocketState;
  7954. }
  7955. [StructLayout(LayoutKind.Sequential)] public struct ScreenshotReady_t
  7956. {
  7957. public uint m_hLocal;
  7958. public EResult m_eResult;
  7959. }
  7960. [StructLayout(LayoutKind.Sequential)] public struct VolumeHasChanged_t
  7961. {
  7962. public float m_flNewVolume;
  7963. }
  7964. [StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsShuffled_t
  7965. {
  7966. public bool m_bShuffled;
  7967. }
  7968. [StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsLooped_t
  7969. {
  7970. public bool m_bLooped;
  7971. }
  7972. [StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsVolume_t
  7973. {
  7974. public float m_flNewVolume;
  7975. }
  7976. [StructLayout(LayoutKind.Sequential)] public struct MusicPlayerSelectsQueueEntry_t
  7977. {
  7978. public int nID;
  7979. }
  7980. [StructLayout(LayoutKind.Sequential)] public struct MusicPlayerSelectsPlaylistEntry_t
  7981. {
  7982. public int nID;
  7983. }
  7984. [StructLayout(LayoutKind.Sequential)] public struct MusicPlayerWantsPlayingRepeatStatus_t
  7985. {
  7986. public int m_nPlayingRepeatStatus;
  7987. }
  7988. [StructLayout(LayoutKind.Sequential)] public struct HTTPRequestCompleted_t
  7989. {
  7990. public uint m_hRequest;
  7991. public ulong m_ulContextValue;
  7992. public bool m_bRequestSuccessful;
  7993. public EHTTPStatusCode m_eStatusCode;
  7994. public uint m_unBodySize;
  7995. }
  7996. [StructLayout(LayoutKind.Sequential)] public struct HTTPRequestHeadersReceived_t
  7997. {
  7998. public uint m_hRequest;
  7999. public ulong m_ulContextValue;
  8000. }
  8001. [StructLayout(LayoutKind.Sequential)] public struct HTTPRequestDataReceived_t
  8002. {
  8003. public uint m_hRequest;
  8004. public ulong m_ulContextValue;
  8005. public uint m_cOffset;
  8006. public uint m_cBytesReceived;
  8007. }
  8008. [StructLayout(LayoutKind.Sequential)] public struct SteamUnifiedMessagesSendMethodResult_t
  8009. {
  8010. public ulong m_hHandle;
  8011. public ulong m_unContext;
  8012. public EResult m_eResult;
  8013. public uint m_unResponseSize;
  8014. }
  8015. [StructLayout(LayoutKind.Sequential)] public struct ControllerAnalogActionData_t
  8016. {
  8017. public EControllerSourceMode eMode;
  8018. public float x;
  8019. public float y;
  8020. public bool bActive;
  8021. }
  8022. [StructLayout(LayoutKind.Sequential)] public struct ControllerDigitalActionData_t
  8023. {
  8024. public bool bState;
  8025. public bool bActive;
  8026. }
  8027. [StructLayout(LayoutKind.Sequential)] public struct SteamUGCDetails_t
  8028. {
  8029. public ulong m_nPublishedFileId;
  8030. public EResult m_eResult;
  8031. public EWorkshopFileType m_eFileType;
  8032. public uint m_nCreatorAppID;
  8033. public uint m_nConsumerAppID;
  8034. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 129, ArraySubType = UnmanagedType.I1)]
  8035. public char[] m_rgchTitle; //char[129]
  8036. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8000, ArraySubType = UnmanagedType.I1)]
  8037. public char[] m_rgchDescription; //char[8000]
  8038. public ulong m_ulSteamIDOwner;
  8039. public uint m_rtimeCreated;
  8040. public uint m_rtimeUpdated;
  8041. public uint m_rtimeAddedToUserList;
  8042. public ERemoteStoragePublishedFileVisibility m_eVisibility;
  8043. public bool m_bBanned;
  8044. public bool m_bAcceptedForUse;
  8045. public bool m_bTagsTruncated;
  8046. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1025, ArraySubType = UnmanagedType.I1)]
  8047. public char[] m_rgchTags; //char[1025]
  8048. public ulong m_hFile;
  8049. public ulong m_hPreviewFile;
  8050. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 260, ArraySubType = UnmanagedType.I1)]
  8051. public char[] m_pchFileName; //char[260]
  8052. public int m_nFileSize;
  8053. public int m_nPreviewFileSize;
  8054. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  8055. public char[] m_rgchURL; //char[256]
  8056. public uint m_unVotesUp;
  8057. public uint m_unVotesDown;
  8058. public float m_flScore;
  8059. public uint m_unNumChildren;
  8060. }
  8061. [StructLayout(LayoutKind.Sequential)] public struct SteamUGCQueryCompleted_t
  8062. {
  8063. public ulong m_handle;
  8064. public EResult m_eResult;
  8065. public uint m_unNumResultsReturned;
  8066. public uint m_unTotalMatchingResults;
  8067. public bool m_bCachedData;
  8068. }
  8069. [StructLayout(LayoutKind.Sequential)] public struct SteamUGCRequestUGCDetailsResult_t
  8070. {
  8071. public SteamUGCDetails_t m_details;
  8072. public bool m_bCachedData;
  8073. }
  8074. [StructLayout(LayoutKind.Sequential)] public struct CreateItemResult_t
  8075. {
  8076. public EResult m_eResult;
  8077. public ulong m_nPublishedFileId;
  8078. public bool m_bUserNeedsToAcceptWorkshopLegalAgreement;
  8079. }
  8080. [StructLayout(LayoutKind.Sequential)] public struct SubmitItemUpdateResult_t
  8081. {
  8082. public EResult m_eResult;
  8083. public bool m_bUserNeedsToAcceptWorkshopLegalAgreement;
  8084. }
  8085. [StructLayout(LayoutKind.Sequential)] public struct DownloadItemResult_t
  8086. {
  8087. public uint m_unAppID;
  8088. public ulong m_nPublishedFileId;
  8089. public EResult m_eResult;
  8090. }
  8091. [StructLayout(LayoutKind.Sequential)] public struct UserFavoriteItemsListChanged_t
  8092. {
  8093. public ulong m_nPublishedFileId;
  8094. public EResult m_eResult;
  8095. public bool m_bWasAddRequest;
  8096. }
  8097. [StructLayout(LayoutKind.Sequential)] public struct SetUserItemVoteResult_t
  8098. {
  8099. public ulong m_nPublishedFileId;
  8100. public EResult m_eResult;
  8101. public bool m_bVoteUp;
  8102. }
  8103. [StructLayout(LayoutKind.Sequential)] public struct GetUserItemVoteResult_t
  8104. {
  8105. public ulong m_nPublishedFileId;
  8106. public EResult m_eResult;
  8107. public bool m_bVotedUp;
  8108. public bool m_bVotedDown;
  8109. public bool m_bVoteSkipped;
  8110. }
  8111. [StructLayout(LayoutKind.Sequential)] public struct SteamAppInstalled_t
  8112. {
  8113. public uint m_nAppID;
  8114. }
  8115. [StructLayout(LayoutKind.Sequential)] public struct SteamAppUninstalled_t
  8116. {
  8117. public uint m_nAppID;
  8118. }
  8119. [StructLayout(LayoutKind.Sequential)] public struct HTML_BrowserReady_t
  8120. {
  8121. public uint unBrowserHandle;
  8122. }
  8123. [StructLayout(LayoutKind.Sequential)] public struct HTML_NeedsPaint_t
  8124. {
  8125. public uint unBrowserHandle;
  8126. public string pBGRA;
  8127. public uint unWide;
  8128. public uint unTall;
  8129. public uint unUpdateX;
  8130. public uint unUpdateY;
  8131. public uint unUpdateWide;
  8132. public uint unUpdateTall;
  8133. public uint unScrollX;
  8134. public uint unScrollY;
  8135. public float flPageScale;
  8136. public uint unPageSerial;
  8137. }
  8138. [StructLayout(LayoutKind.Sequential)] public struct HTML_StartRequest_t
  8139. {
  8140. public uint unBrowserHandle;
  8141. public string pchURL;
  8142. public string pchTarget;
  8143. public string pchPostData;
  8144. public bool bIsRedirect;
  8145. }
  8146. [StructLayout(LayoutKind.Sequential)] public struct HTML_CloseBrowser_t
  8147. {
  8148. public uint unBrowserHandle;
  8149. }
  8150. [StructLayout(LayoutKind.Sequential)] public struct HTML_URLChanged_t
  8151. {
  8152. public uint unBrowserHandle;
  8153. public string pchURL;
  8154. public string pchPostData;
  8155. public bool bIsRedirect;
  8156. public string pchPageTitle;
  8157. public bool bNewNavigation;
  8158. }
  8159. [StructLayout(LayoutKind.Sequential)] public struct HTML_FinishedRequest_t
  8160. {
  8161. public uint unBrowserHandle;
  8162. public string pchURL;
  8163. public string pchPageTitle;
  8164. }
  8165. [StructLayout(LayoutKind.Sequential)] public struct HTML_OpenLinkInNewTab_t
  8166. {
  8167. public uint unBrowserHandle;
  8168. public string pchURL;
  8169. }
  8170. [StructLayout(LayoutKind.Sequential)] public struct HTML_ChangedTitle_t
  8171. {
  8172. public uint unBrowserHandle;
  8173. public string pchTitle;
  8174. }
  8175. [StructLayout(LayoutKind.Sequential)] public struct HTML_SearchResults_t
  8176. {
  8177. public uint unBrowserHandle;
  8178. public uint unResults;
  8179. public uint unCurrentMatch;
  8180. }
  8181. [StructLayout(LayoutKind.Sequential)] public struct HTML_CanGoBackAndForward_t
  8182. {
  8183. public uint unBrowserHandle;
  8184. public bool bCanGoBack;
  8185. public bool bCanGoForward;
  8186. }
  8187. [StructLayout(LayoutKind.Sequential)] public struct HTML_HorizontalScroll_t
  8188. {
  8189. public uint unBrowserHandle;
  8190. public uint unScrollMax;
  8191. public uint unScrollCurrent;
  8192. public float flPageScale;
  8193. public bool bVisible;
  8194. public uint unPageSize;
  8195. }
  8196. [StructLayout(LayoutKind.Sequential)] public struct HTML_VerticalScroll_t
  8197. {
  8198. public uint unBrowserHandle;
  8199. public uint unScrollMax;
  8200. public uint unScrollCurrent;
  8201. public float flPageScale;
  8202. public bool bVisible;
  8203. public uint unPageSize;
  8204. }
  8205. [StructLayout(LayoutKind.Sequential)] public struct HTML_LinkAtPosition_t
  8206. {
  8207. public uint unBrowserHandle;
  8208. public uint x;
  8209. public uint y;
  8210. public string pchURL;
  8211. public bool bInput;
  8212. public bool bLiveLink;
  8213. }
  8214. [StructLayout(LayoutKind.Sequential)] public struct HTML_JSAlert_t
  8215. {
  8216. public uint unBrowserHandle;
  8217. public string pchMessage;
  8218. }
  8219. [StructLayout(LayoutKind.Sequential)] public struct HTML_JSConfirm_t
  8220. {
  8221. public uint unBrowserHandle;
  8222. public string pchMessage;
  8223. }
  8224. [StructLayout(LayoutKind.Sequential)] public struct HTML_FileOpenDialog_t
  8225. {
  8226. public uint unBrowserHandle;
  8227. public string pchTitle;
  8228. public string pchInitialFile;
  8229. }
  8230. [StructLayout(LayoutKind.Sequential)] public struct HTML_NewWindow_t
  8231. {
  8232. public uint unBrowserHandle;
  8233. public string pchURL;
  8234. public uint unX;
  8235. public uint unY;
  8236. public uint unWide;
  8237. public uint unTall;
  8238. public uint unNewWindow_BrowserHandle;
  8239. }
  8240. [StructLayout(LayoutKind.Sequential)] public struct HTML_SetCursor_t
  8241. {
  8242. public uint unBrowserHandle;
  8243. public uint eMouseCursor;
  8244. }
  8245. [StructLayout(LayoutKind.Sequential)] public struct HTML_StatusText_t
  8246. {
  8247. public uint unBrowserHandle;
  8248. public string pchMsg;
  8249. }
  8250. [StructLayout(LayoutKind.Sequential)] public struct HTML_ShowToolTip_t
  8251. {
  8252. public uint unBrowserHandle;
  8253. public string pchMsg;
  8254. }
  8255. [StructLayout(LayoutKind.Sequential)] public struct HTML_UpdateToolTip_t
  8256. {
  8257. public uint unBrowserHandle;
  8258. public string pchMsg;
  8259. }
  8260. [StructLayout(LayoutKind.Sequential)] public struct HTML_HideToolTip_t
  8261. {
  8262. public uint unBrowserHandle;
  8263. }
  8264. [StructLayout(LayoutKind.Sequential)] public struct SteamItemDetails_t
  8265. {
  8266. public ulong m_itemId;
  8267. public int m_iDefinition;
  8268. public char m_unQuantity;
  8269. public char m_unFlags;
  8270. }
  8271. [StructLayout(LayoutKind.Sequential)] public struct SteamInventoryResultReady_t
  8272. {
  8273. public int m_handle;
  8274. public EResult m_result;
  8275. }
  8276. [StructLayout(LayoutKind.Sequential)] public struct SteamInventoryFullUpdate_t
  8277. {
  8278. public int m_handle;
  8279. }
  8280. [StructLayout(LayoutKind.Sequential)] public struct BroadcastUploadStop_t
  8281. {
  8282. public EBroadcastUploadResult m_eResult;
  8283. }
  8284. [StructLayout(LayoutKind.Sequential)] public struct GetVideoURLResult_t
  8285. {
  8286. public EResult m_eResult;
  8287. public uint m_unVideoAppID;
  8288. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256, ArraySubType = UnmanagedType.I1)]
  8289. public char[] m_rgchURL; //char[256]
  8290. }
  8291. [StructLayout(LayoutKind.Sequential)] public struct CCallbackBase
  8292. {
  8293. public byte m_nCallbackFlags;
  8294. public int m_iCallback;
  8295. }
  8296. [StructLayout(LayoutKind.Sequential)] public struct CCallResult
  8297. {
  8298. public ulong m_hAPICall;
  8299. public IntPtr m_pObj;
  8300. public IntPtr m_Func;
  8301. }
  8302. [StructLayout(LayoutKind.Sequential)] public struct CCallback
  8303. {
  8304. public IntPtr m_pObj;
  8305. public IntPtr m_Func;
  8306. }
  8307. [StructLayout(LayoutKind.Sequential)] public struct CSteamAPIContext
  8308. {
  8309. public ISteamUser m_pSteamUser;
  8310. public ISteamFriends m_pSteamFriends;
  8311. public ISteamUtils m_pSteamUtils;
  8312. public ISteamMatchmaking m_pSteamMatchmaking;
  8313. public ISteamUserStats m_pSteamUserStats;
  8314. public ISteamApps m_pSteamApps;
  8315. public ISteamMatchmakingServers m_pSteamMatchmakingServers;
  8316. public ISteamNetworking m_pSteamNetworking;
  8317. public ISteamRemoteStorage m_pSteamRemoteStorage;
  8318. public ISteamScreenshots m_pSteamScreenshots;
  8319. public ISteamHTTP m_pSteamHTTP;
  8320. public ISteamUnifiedMessages m_pSteamUnifiedMessages;
  8321. public ISteamController m_pController;
  8322. public ISteamUGC m_pSteamUGC;
  8323. public ISteamAppList m_pSteamAppList;
  8324. public ISteamMusic m_pSteamMusic;
  8325. public ISteamMusicRemote m_pSteamMusicRemote;
  8326. public ISteamHTMLSurface m_pSteamHTMLSurface;
  8327. public ISteamInventory m_pSteamInventory;
  8328. public ISteamVideo m_pSteamVideo;
  8329. }
  8330. [StructLayout(LayoutKind.Sequential)] public struct GSClientApprove_t
  8331. {
  8332. public ulong m_SteamID;
  8333. public ulong m_OwnerSteamID;
  8334. }
  8335. [StructLayout(LayoutKind.Sequential)] public struct GSClientDeny_t
  8336. {
  8337. public ulong m_SteamID;
  8338. public EDenyReason m_eDenyReason;
  8339. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)]
  8340. public char[] m_rgchOptionalText; //char[128]
  8341. }
  8342. [StructLayout(LayoutKind.Sequential)] public struct GSClientKick_t
  8343. {
  8344. public ulong m_SteamID;
  8345. public EDenyReason m_eDenyReason;
  8346. }
  8347. [StructLayout(LayoutKind.Sequential)] public struct GSClientAchievementStatus_t
  8348. {
  8349. public ulong m_SteamID;
  8350. [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128, ArraySubType = UnmanagedType.I1)]
  8351. public char[] m_pchAchievement; //char[128]
  8352. public bool m_bUnlocked;
  8353. }
  8354. [StructLayout(LayoutKind.Sequential)] public struct GSPolicyResponse_t
  8355. {
  8356. public byte m_bSecure;
  8357. }
  8358. [StructLayout(LayoutKind.Sequential)] public struct GSGameplayStats_t
  8359. {
  8360. public EResult m_eResult;
  8361. public int m_nRank;
  8362. public uint m_unTotalConnects;
  8363. public uint m_unTotalMinutesPlayed;
  8364. }
  8365. [StructLayout(LayoutKind.Sequential)] public struct GSClientGroupStatus_t
  8366. {
  8367. public ulong m_SteamIDUser;
  8368. public ulong m_SteamIDGroup;
  8369. public bool m_bMember;
  8370. public bool m_bOfficer;
  8371. }
  8372. [StructLayout(LayoutKind.Sequential)] public struct GSReputation_t
  8373. {
  8374. public EResult m_eResult;
  8375. public uint m_unReputationScore;
  8376. public bool m_bBanned;
  8377. public uint m_unBannedIP;
  8378. public char m_usBannedPort;
  8379. public ulong m_ulBannedGameID;
  8380. public uint m_unBanExpires;
  8381. }
  8382. [StructLayout(LayoutKind.Sequential)] public struct AssociateWithClanResult_t
  8383. {
  8384. public EResult m_eResult;
  8385. }
  8386. [StructLayout(LayoutKind.Sequential)] public struct ComputeNewPlayerCompatibilityResult_t
  8387. {
  8388. public EResult m_eResult;
  8389. public int m_cPlayersThatDontLikeCandidate;
  8390. public int m_cPlayersThatCandidateDoesntLike;
  8391. public int m_cClanPlayersThatDontLikeCandidate;
  8392. public ulong m_SteamIDCandidate;
  8393. }
  8394. [StructLayout(LayoutKind.Sequential)] public struct GSStatsReceived_t
  8395. {
  8396. public EResult m_eResult;
  8397. public ulong m_steamIDUser;
  8398. }
  8399. [StructLayout(LayoutKind.Sequential)] public struct GSStatsStored_t
  8400. {
  8401. public EResult m_eResult;
  8402. public ulong m_steamIDUser;
  8403. }
  8404. [StructLayout(LayoutKind.Sequential)] public struct GSStatsUnloaded_t
  8405. {
  8406. public ulong m_steamIDUser;
  8407. }
  8408. public class SteamAPI
  8409. {
  8410. public static void Init(uint appId)
  8411. {
  8412. SteamAPIInterop.SteamAPI_RestartAppIfNecessary (appId);
  8413. SteamAPIInterop.SteamAPI_Init ();
  8414. }
  8415. public static void RunCallbacks()
  8416. {
  8417. SteamAPIInterop.SteamAPI_RunCallbacks ();
  8418. }
  8419. public static void RegisterCallback(IntPtr pCallback, int iCallback)
  8420. {
  8421. SteamAPIInterop.SteamAPI_RegisterCallback (pCallback, iCallback);
  8422. }
  8423. public static void UnregisterCallback(IntPtr pCallback)
  8424. {
  8425. SteamAPIInterop.SteamAPI_UnregisterCallback (pCallback);
  8426. }
  8427. public const int k_iSteamUserCallbacks = 100;
  8428. public const int k_iSteamGameServerCallbacks = 200;
  8429. public const int k_iSteamFriendsCallbacks = 300;
  8430. public const int k_iSteamBillingCallbacks = 400;
  8431. public const int k_iSteamMatchmakingCallbacks = 500;
  8432. public const int k_iSteamContentServerCallbacks = 600;
  8433. public const int k_iSteamUtilsCallbacks = 700;
  8434. public const int k_iClientFriendsCallbacks = 800;
  8435. public const int k_iClientUserCallbacks = 900;
  8436. public const int k_iSteamAppsCallbacks = 1000;
  8437. public const int k_iSteamUserStatsCallbacks = 1100;
  8438. public const int k_iSteamNetworkingCallbacks = 1200;
  8439. public const int k_iClientRemoteStorageCallbacks = 1300;
  8440. public const int k_iClientDepotBuilderCallbacks = 1400;
  8441. public const int k_iSteamGameServerItemsCallbacks = 1500;
  8442. public const int k_iClientUtilsCallbacks = 1600;
  8443. public const int k_iSteamGameCoordinatorCallbacks = 1700;
  8444. public const int k_iSteamGameServerStatsCallbacks = 1800;
  8445. public const int k_iSteam2AsyncCallbacks = 1900;
  8446. public const int k_iSteamGameStatsCallbacks = 2000;
  8447. public const int k_iClientHTTPCallbacks = 2100;
  8448. public const int k_iClientScreenshotsCallbacks = 2200;
  8449. public const int k_iSteamScreenshotsCallbacks = 2300;
  8450. public const int k_iClientAudioCallbacks = 2400;
  8451. public const int k_iClientUnifiedMessagesCallbacks = 2500;
  8452. public const int k_iSteamStreamLauncherCallbacks = 2600;
  8453. public const int k_iClientControllerCallbacks = 2700;
  8454. public const int k_iSteamControllerCallbacks = 2800;
  8455. public const int k_iClientParentalSettingsCallbacks = 2900;
  8456. public const int k_iClientDeviceAuthCallbacks = 3000;
  8457. public const int k_iClientNetworkDeviceManagerCallbacks = 3100;
  8458. public const int k_iClientMusicCallbacks = 3200;
  8459. public const int k_iClientRemoteClientManagerCallbacks = 3300;
  8460. public const int k_iClientUGCCallbacks = 3400;
  8461. public const int k_iSteamStreamClientCallbacks = 3500;
  8462. public const int k_IClientProductBuilderCallbacks = 3600;
  8463. public const int k_iClientShortcutsCallbacks = 3700;
  8464. public const int k_iClientRemoteControlManagerCallbacks = 3800;
  8465. public const int k_iSteamAppListCallbacks = 3900;
  8466. public const int k_iSteamMusicCallbacks = 4000;
  8467. public const int k_iSteamMusicRemoteCallbacks = 4100;
  8468. public const int k_iClientVRCallbacks = 4200;
  8469. public const int k_iClientReservedCallbacks = 4300;
  8470. public const int k_iSteamReservedCallbacks = 4400;
  8471. public const int k_iSteamHTMLSurfaceCallbacks = 4500;
  8472. public const int k_iClientVideoCallbacks = 4600;
  8473. public const int k_iClientInventoryCallbacks = 4700;
  8474. public const int k_cchPersonaNameMax = 128;
  8475. public const int k_cwchPersonaNameMax = 32;
  8476. public const int k_cchMaxRichPresenceKeys = 20;
  8477. public const int k_cchMaxRichPresenceKeyLength = 64;
  8478. public const int k_cchMaxRichPresenceValueLength = 256;
  8479. public const int k_cchStatNameMax = 128;
  8480. public const int k_cchLeaderboardNameMax = 128;
  8481. public const int k_cLeaderboardDetailsMax = 64;
  8482. public const const ClientUnifiedMessageHandle k_InvalidUnifiedMessageHandle = 0;
  8483. public const const SteamItemInstanceID_t k_SteamItemInstanceIDInvalid = 18446744073709551615;
  8484. public const const SteamInventoryResult_t k_SteamInventoryResultInvalid = -1;
  8485. public static ISteamClient SteamClient()
  8486. {
  8487. return new CSteamClient(SteamAPIInterop.SteamClient());
  8488. }
  8489. public static ISteamUser SteamUser()
  8490. {
  8491. return new CSteamUser(SteamAPIInterop.SteamUser());
  8492. }
  8493. public static ISteamFriends SteamFriends()
  8494. {
  8495. return new CSteamFriends(SteamAPIInterop.SteamFriends());
  8496. }
  8497. public static ISteamUtils SteamUtils()
  8498. {
  8499. return new CSteamUtils(SteamAPIInterop.SteamUtils());
  8500. }
  8501. public static ISteamMatchmaking SteamMatchmaking()
  8502. {
  8503. return new CSteamMatchmaking(SteamAPIInterop.SteamMatchmaking());
  8504. }
  8505. public static ISteamMatchmakingServerListResponse SteamMatchmakingServerListResponse()
  8506. {
  8507. return new CSteamMatchmakingServerListResponse(SteamAPIInterop.SteamMatchmakingServerListResponse());
  8508. }
  8509. public static ISteamMatchmakingPingResponse SteamMatchmakingPingResponse()
  8510. {
  8511. return new CSteamMatchmakingPingResponse(SteamAPIInterop.SteamMatchmakingPingResponse());
  8512. }
  8513. public static ISteamMatchmakingPlayersResponse SteamMatchmakingPlayersResponse()
  8514. {
  8515. return new CSteamMatchmakingPlayersResponse(SteamAPIInterop.SteamMatchmakingPlayersResponse());
  8516. }
  8517. public static ISteamMatchmakingRulesResponse SteamMatchmakingRulesResponse()
  8518. {
  8519. return new CSteamMatchmakingRulesResponse(SteamAPIInterop.SteamMatchmakingRulesResponse());
  8520. }
  8521. public static ISteamMatchmakingServers SteamMatchmakingServers()
  8522. {
  8523. return new CSteamMatchmakingServers(SteamAPIInterop.SteamMatchmakingServers());
  8524. }
  8525. public static ISteamRemoteStorage SteamRemoteStorage()
  8526. {
  8527. return new CSteamRemoteStorage(SteamAPIInterop.SteamRemoteStorage());
  8528. }
  8529. public static ISteamUserStats SteamUserStats()
  8530. {
  8531. return new CSteamUserStats(SteamAPIInterop.SteamUserStats());
  8532. }
  8533. public static ISteamApps SteamApps()
  8534. {
  8535. return new CSteamApps(SteamAPIInterop.SteamApps());
  8536. }
  8537. public static ISteamNetworking SteamNetworking()
  8538. {
  8539. return new CSteamNetworking(SteamAPIInterop.SteamNetworking());
  8540. }
  8541. public static ISteamScreenshots SteamScreenshots()
  8542. {
  8543. return new CSteamScreenshots(SteamAPIInterop.SteamScreenshots());
  8544. }
  8545. public static ISteamMusic SteamMusic()
  8546. {
  8547. return new CSteamMusic(SteamAPIInterop.SteamMusic());
  8548. }
  8549. public static ISteamMusicRemote SteamMusicRemote()
  8550. {
  8551. return new CSteamMusicRemote(SteamAPIInterop.SteamMusicRemote());
  8552. }
  8553. public static ISteamHTTP SteamHTTP()
  8554. {
  8555. return new CSteamHTTP(SteamAPIInterop.SteamHTTP());
  8556. }
  8557. public static ISteamUnifiedMessages SteamUnifiedMessages()
  8558. {
  8559. return new CSteamUnifiedMessages(SteamAPIInterop.SteamUnifiedMessages());
  8560. }
  8561. public static ISteamController SteamController()
  8562. {
  8563. return new CSteamController(SteamAPIInterop.SteamController());
  8564. }
  8565. public static ISteamUGC SteamUGC()
  8566. {
  8567. return new CSteamUGC(SteamAPIInterop.SteamUGC());
  8568. }
  8569. public static ISteamAppList SteamAppList()
  8570. {
  8571. return new CSteamAppList(SteamAPIInterop.SteamAppList());
  8572. }
  8573. public static ISteamHTMLSurface SteamHTMLSurface()
  8574. {
  8575. return new CSteamHTMLSurface(SteamAPIInterop.SteamHTMLSurface());
  8576. }
  8577. public static ISteamInventory SteamInventory()
  8578. {
  8579. return new CSteamInventory(SteamAPIInterop.SteamInventory());
  8580. }
  8581. public static ISteamVideo SteamVideo()
  8582. {
  8583. return new CSteamVideo(SteamAPIInterop.SteamVideo());
  8584. }
  8585. public static ISteamGameServer SteamGameServer()
  8586. {
  8587. return new CSteamGameServer(SteamAPIInterop.SteamGameServer());
  8588. }
  8589. public static ISteamGameServerStats SteamGameServerStats()
  8590. {
  8591. return new CSteamGameServerStats(SteamAPIInterop.SteamGameServerStats());
  8592. }
  8593. }
  8594. }