// Token: 0x0600060F RID: 1551 RVA: 0x0000457B File Offset: 0x0000277B public static void ReleaseUser(HSteamPipe hSteamPipe, HSteamUser hUser) { InteropHelp.TestIfAvailableGameServer(); NativeMethods.ISteamClient_ReleaseUser(CSteamGameServerAPIContext.GetSteamClient(), hSteamPipe, hUser); }
// Token: 0x06000096 RID: 150 RVA: 0x0000A784 File Offset: 0x00008984 internal static bool Init() { HSteamUser hsteamUser = SteamAPI.GetHSteamUser(); HSteamPipe hsteamPipe = SteamAPI.GetHSteamPipe(); if (hsteamPipe == (HSteamPipe)0) { return(false); } using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle("SteamClient017")) { CSteamAPIContext.m_pSteamClient = NativeMethods.SteamInternal_CreateInterface(utf8StringHandle); } if (CSteamAPIContext.m_pSteamClient == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamUser = SteamClient.GetISteamUser(hsteamUser, hsteamPipe, "SteamUser019"); if (CSteamAPIContext.m_pSteamUser == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamFriends = SteamClient.GetISteamFriends(hsteamUser, hsteamPipe, "SteamFriends015"); if (CSteamAPIContext.m_pSteamFriends == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamUtils = SteamClient.GetISteamUtils(hsteamPipe, "SteamUtils009"); if (CSteamAPIContext.m_pSteamUtils == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamMatchmaking = SteamClient.GetISteamMatchmaking(hsteamUser, hsteamPipe, "SteamMatchMaking009"); if (CSteamAPIContext.m_pSteamMatchmaking == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamMatchmakingServers = SteamClient.GetISteamMatchmakingServers(hsteamUser, hsteamPipe, "SteamMatchMakingServers002"); if (CSteamAPIContext.m_pSteamMatchmakingServers == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamUserStats = SteamClient.GetISteamUserStats(hsteamUser, hsteamPipe, "STEAMUSERSTATS_INTERFACE_VERSION011"); if (CSteamAPIContext.m_pSteamUserStats == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamApps = SteamClient.GetISteamApps(hsteamUser, hsteamPipe, "STEAMAPPS_INTERFACE_VERSION008"); if (CSteamAPIContext.m_pSteamApps == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamNetworking = SteamClient.GetISteamNetworking(hsteamUser, hsteamPipe, "SteamNetworking005"); if (CSteamAPIContext.m_pSteamNetworking == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamRemoteStorage = SteamClient.GetISteamRemoteStorage(hsteamUser, hsteamPipe, "STEAMREMOTESTORAGE_INTERFACE_VERSION014"); if (CSteamAPIContext.m_pSteamRemoteStorage == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamScreenshots = SteamClient.GetISteamScreenshots(hsteamUser, hsteamPipe, "STEAMSCREENSHOTS_INTERFACE_VERSION003"); if (CSteamAPIContext.m_pSteamScreenshots == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamHTTP = SteamClient.GetISteamHTTP(hsteamUser, hsteamPipe, "STEAMHTTP_INTERFACE_VERSION002"); if (CSteamAPIContext.m_pSteamHTTP == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pController = SteamClient.GetISteamController(hsteamUser, hsteamPipe, "SteamController006"); if (CSteamAPIContext.m_pController == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamUGC = SteamClient.GetISteamUGC(hsteamUser, hsteamPipe, "STEAMUGC_INTERFACE_VERSION010"); if (CSteamAPIContext.m_pSteamUGC == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamAppList = SteamClient.GetISteamAppList(hsteamUser, hsteamPipe, "STEAMAPPLIST_INTERFACE_VERSION001"); if (CSteamAPIContext.m_pSteamAppList == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamMusic = SteamClient.GetISteamMusic(hsteamUser, hsteamPipe, "STEAMMUSIC_INTERFACE_VERSION001"); if (CSteamAPIContext.m_pSteamMusic == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamMusicRemote = SteamClient.GetISteamMusicRemote(hsteamUser, hsteamPipe, "STEAMMUSICREMOTE_INTERFACE_VERSION001"); if (CSteamAPIContext.m_pSteamMusicRemote == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamHTMLSurface = SteamClient.GetISteamHTMLSurface(hsteamUser, hsteamPipe, "STEAMHTMLSURFACE_INTERFACE_VERSION_004"); if (CSteamAPIContext.m_pSteamHTMLSurface == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamInventory = SteamClient.GetISteamInventory(hsteamUser, hsteamPipe, "STEAMINVENTORY_INTERFACE_V002"); if (CSteamAPIContext.m_pSteamInventory == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamVideo = SteamClient.GetISteamVideo(hsteamUser, hsteamPipe, "STEAMVIDEO_INTERFACE_V002"); if (CSteamAPIContext.m_pSteamVideo == IntPtr.Zero) { return(false); } CSteamAPIContext.m_pSteamParentalSettings = SteamClient.GetISteamParentalSettings(hsteamUser, hsteamPipe, "STEAMPARENTALSETTINGS_INTERFACE_VERSION001"); return(!(CSteamAPIContext.m_pSteamParentalSettings == IntPtr.Zero)); }