Counter Strike : Global Offensive Source Code
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.

10177 lines
486 KiB

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