static void InitSteam2() { DebugLog.AppendText("Initializing Steam2..."); if (!Steamworks.LoadSteam()) { throw new InvalidOperationException("Unable to load steam.dll"); } DebugLog.AppendText("Getting Steam2 interface: ISteam006... "); Steam = Steamworks.CreateSteamInterface <ISteam006>(); DebugLog.AppendText(string.Format("ISteam006 = 0x{0:8X}", Steam.Interface)); if (Steam == null) { throw new InvalidOperationException("Unable to get ISteam006."); } TSteamError error = new TSteamError(); DebugLog.AppendText("ISteam006::Startup()..."); if (Steam.Startup(0, ref error) == 0) { throw new InvalidOperationException("Unable to startup steam interface: " + error.szDesc); } DebugLog.AppendText("Steam2 startup success." + Environment.NewLine); }