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

28 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: a private, but well versioned, interface to get at critical bits
  4. // of a steam3 appticket - consumed by the simple drm wrapper to let it
  5. // ask about ownership with greater confidence.
  6. //
  7. //=============================================================================
  8. #ifndef ISTEAMAPPTICKET_H
  9. #define ISTEAMAPPTICKET_H
  10. #pragma once
  11. //-----------------------------------------------------------------------------
  12. // Purpose: hand out a reasonable "future proof" view of an app ownership ticket
  13. // the raw (signed) buffer, and indices into that buffer where the appid and
  14. // steamid are located. the sizes of the appid and steamid are implicit in
  15. // (each version of) the interface - currently uin32 appid and uint64 steamid
  16. //-----------------------------------------------------------------------------
  17. class ISteamAppTicket
  18. {
  19. public:
  20. virtual uint32 GetAppOwnershipTicketData( uint32 nAppID, void *pvBuffer, uint32 cbBufferLength, uint32 *piAppId, uint32 *piSteamId, uint32 *piSignature, uint32 *pcbSignature ) = 0;
  21. };
  22. #define STEAMAPPTICKET_INTERFACE_VERSION "STEAMAPPTICKET_INTERFACE_VERSION001"
  23. #endif // ISTEAMAPPTICKET_H