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.

43 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IADMINSERVER_H
  8. #define IADMINSERVER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "interface.h"
  13. // handle to a game window
  14. typedef unsigned int ManageServerUIHandle_t;
  15. class IManageServer;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: Interface to server administration functions
  18. //-----------------------------------------------------------------------------
  19. abstract_class IAdminServer : public IBaseInterface
  20. {
  21. public:
  22. // opens a manage server dialog for a local server
  23. virtual ManageServerUIHandle_t OpenManageServerDialog(const char *serverName, const char *gameDir) = 0;
  24. // opens a manage server dialog to a remote server
  25. virtual ManageServerUIHandle_t OpenManageServerDialog(unsigned int gameIP, unsigned int gamePort, const char *password) = 0;
  26. // forces the game info dialog closed
  27. virtual void CloseManageServerDialog(ManageServerUIHandle_t gameDialog) = 0;
  28. // Gets a handle to the interface
  29. virtual IManageServer *GetManageServerInterface(ManageServerUIHandle_t handle) = 0;
  30. };
  31. #define ADMINSERVER_INTERFACE_VERSION "AdminServer002"
  32. #endif // IAdminServer_H