Rise
The Vieneo Province
Loading...
Searching...
No Matches
steamclientpublic.h
Go to the documentation of this file.
1//========= Copyright � 1996-2008, Valve LLC, All rights reserved. ============
2//
3// Declare common types used by the Steamworks SDK.
4//
5//=============================================================================
6
7#ifndef STEAMCLIENTPUBLIC_H
8#define STEAMCLIENTPUBLIC_H
9
10#include "steamtypes.h"
11#include "steamuniverse.h"
12
13// General result codes
15{
16 k_EResultNone = 0, // no result
17 k_EResultOK = 1, // success
18 k_EResultFail = 2, // generic failure
19 k_EResultNoConnection = 3, // no/failed network connection
20// k_EResultNoConnectionRetry = 4, // OBSOLETE - removed
21 k_EResultInvalidPassword = 5, // password/ticket is invalid
22 k_EResultLoggedInElsewhere = 6, // same user logged in elsewhere
23 k_EResultInvalidProtocolVer = 7, // protocol version is incorrect
24 k_EResultInvalidParam = 8, // a parameter is incorrect
25 k_EResultFileNotFound = 9, // file was not found
26 k_EResultBusy = 10, // called method busy - action not taken
27 k_EResultInvalidState = 11, // called object was in an invalid state
28 k_EResultInvalidName = 12, // name is invalid
29 k_EResultInvalidEmail = 13, // email is invalid
30 k_EResultDuplicateName = 14, // name is not unique
31 k_EResultAccessDenied = 15, // access is denied
32 k_EResultTimeout = 16, // operation timed out
33 k_EResultBanned = 17, // VAC2 banned
34 k_EResultAccountNotFound = 18, // account not found
35 k_EResultInvalidSteamID = 19, // steamID is invalid
36 k_EResultServiceUnavailable = 20, // The requested service is currently unavailable
37 k_EResultNotLoggedOn = 21, // The user is not logged on
38 k_EResultPending = 22, // Request is pending (may be in process, or waiting on third party)
39 k_EResultEncryptionFailure = 23, // Encryption or Decryption failed
40 k_EResultInsufficientPrivilege = 24, // Insufficient privilege
41 k_EResultLimitExceeded = 25, // Too much of a good thing
42 k_EResultRevoked = 26, // Access has been revoked (used for revoked guest passes)
43 k_EResultExpired = 27, // License/Guest pass the user is trying to access is expired
44 k_EResultAlreadyRedeemed = 28, // Guest pass has already been redeemed by account, cannot be acked again
45 k_EResultDuplicateRequest = 29, // The request is a duplicate and the action has already occurred in the past, ignored this time
46 k_EResultAlreadyOwned = 30, // All the games in this guest pass redemption request are already owned by the user
47 k_EResultIPNotFound = 31, // IP address not found
48 k_EResultPersistFailed = 32, // failed to write change to the data store
49 k_EResultLockingFailed = 33, // failed to acquire access lock for this operation
55 k_EResultShoppingCartNotFound = 39, // failed to find the shopping cart requested
56 k_EResultBlocked = 40, // a user didn't allow it
57 k_EResultIgnored = 41, // target is ignoring sender
58 k_EResultNoMatch = 42, // nothing matching the request found
60 k_EResultServiceReadOnly = 44, // this service is not accepting content changes right now
61 k_EResultAccountNotFeatured = 45, // account doesn't have value, so this feature isn't available
62 k_EResultAdministratorOK = 46, // allowed to take this action, but only because requester is admin
63 k_EResultContentVersion = 47, // A Version mismatch in content transmitted within the Steam protocol.
64 k_EResultTryAnotherCM = 48, // The current CM can't service the user making a request, user should try another.
65 k_EResultPasswordRequiredToKickSession = 49,// You are already logged in elsewhere, this cached credential login has failed.
66 k_EResultAlreadyLoggedInElsewhere = 50, // You are already logged in elsewhere, you must wait
67 k_EResultSuspended = 51, // Long running operation (content download) suspended/paused
68 k_EResultCancelled = 52, // Operation canceled (typically by user: content download)
69 k_EResultDataCorruption = 53, // Operation canceled because data is ill formed or unrecoverable
70 k_EResultDiskFull = 54, // Operation canceled - not enough disk space.
71 k_EResultRemoteCallFailed = 55, // an remote call or IPC call failed
72 k_EResultPasswordUnset = 56, // Password could not be verified as it's unset server side
73 k_EResultExternalAccountUnlinked = 57, // External account (PSN, Facebook...) is not linked to a Steam account
74 k_EResultPSNTicketInvalid = 58, // PSN ticket was invalid
75 k_EResultExternalAccountAlreadyLinked = 59, // External account (PSN, Facebook...) is already linked to some other account, must explicitly request to replace/delete the link first
76 k_EResultRemoteFileConflict = 60, // The sync cannot resume due to a conflict between the local and remote files
77 k_EResultIllegalPassword = 61, // The requested new password is not legal
78 k_EResultSameAsPreviousValue = 62, // new value is the same as the old one ( secret question and answer )
79 k_EResultAccountLogonDenied = 63, // account login denied due to 2nd factor authentication failure
80 k_EResultCannotUseOldPassword = 64, // The requested new password is not legal
81 k_EResultInvalidLoginAuthCode = 65, // account login denied due to auth code invalid
82 k_EResultAccountLogonDeniedNoMail = 66, // account login denied due to 2nd factor auth failure - and no mail has been sent - partner site specific
85 k_EResultParentalControlRestricted = 69, // operation failed due to parental control restrictions for current user
86 k_EResultFacebookQueryError = 70, // Facebook query returned an error
87 k_EResultExpiredLoginAuthCode = 71, // account login denied due to auth code expired
92 k_EResultBadResponse = 76, // parse failure, missing field, etc.
93 k_EResultRequirePasswordReEntry = 77, // The user cannot complete the action until they re-enter their password
94 k_EResultValueOutOfRange = 78, // the value entered is outside the acceptable range
95 k_EResultUnexpectedError = 79, // something happened that we didn't expect to ever happen
96 k_EResultDisabled = 80, // The requested service has been configured to be unavailable
97 k_EResultInvalidCEGSubmission = 81, // The set of files submitted to the CEG server are not valid !
98 k_EResultRestrictedDevice = 82, // The device being used is not allowed to perform this action
99 k_EResultRegionLocked = 83, // The action could not be complete because it is region restricted
100 k_EResultRateLimitExceeded = 84, // Temporary rate limit exceeded, try again later, different from k_EResultLimitExceeded which may be permanent
101 k_EResultAccountLoginDeniedNeedTwoFactor = 85, // Need two-factor code to login
102 k_EResultItemDeleted = 86, // The thing we're trying to access has been deleted
103 k_EResultAccountLoginDeniedThrottle = 87, // login attempt failed, try to throttle response to possible attacker
104 k_EResultTwoFactorCodeMismatch = 88, // two factor code mismatch
105 k_EResultTwoFactorActivationCodeMismatch = 89, // activation code for two-factor didn't match
106 k_EResultAccountAssociatedToMultiplePartners = 90, // account has been associated with multiple partners
107 k_EResultNotModified = 91, // data not modified
108 k_EResultNoMobileDevice = 92, // the account does not have a mobile device associated with it
109 k_EResultTimeNotSynced = 93, // the time presented is out of range or tolerance
110 k_EResultSmsCodeFailed = 94, // SMS code failure (no match, none pending, etc.)
111 k_EResultAccountLimitExceeded = 95, // Too many accounts access this resource
112 k_EResultAccountActivityLimitExceeded = 96, // Too many changes to this account
113 k_EResultPhoneActivityLimitExceeded = 97, // Too many changes to this phone
114 k_EResultRefundToWallet = 98, // Cannot refund to payment method, must use wallet
115 k_EResultEmailSendFailure = 99, // Cannot send an email
116 k_EResultNotSettled = 100, // Can't perform operation till payment has settled
117 k_EResultNeedCaptcha = 101, // Needs to provide a valid captcha
118 k_EResultGSLTDenied = 102, // a game server login token owned by this token's owner has been banned
119 k_EResultGSOwnerDenied = 103, // game server owner is denied for other reason (account lock, community ban, vac ban, missing phone)
120 k_EResultInvalidItemType = 104, // the type of thing we were requested to act on is invalid
121 k_EResultIPBanned = 105, // the ip address has been banned from taking this action
122 k_EResultGSLTExpired = 106, // this token has expired from disuse; can be reset for use
123 k_EResultInsufficientFunds = 107, // user doesn't have enough wallet funds to complete the action
124 k_EResultTooManyPending = 108, // There are too many of this thing pending already
125 k_EResultNoSiteLicensesFound = 109, // No site licenses found
126 k_EResultWGNetworkSendExceeded = 110, // the WG couldn't send a response because we exceeded max network send size
127 k_EResultAccountNotFriends = 111, // the user is not mutually friends
128 k_EResultLimitedUserAccount = 112, // the user is limited
129 k_EResultCantRemoveItem = 113, // item can't be removed
130 k_EResultAccountDeleted = 114, // account has been deleted
131 k_EResultExistingUserCancelledLicense = 115, // A license for this already exists, but cancelled
132 k_EResultCommunityCooldown = 116, // access is denied because of a community cooldown (probably from support profile data resets)
133 k_EResultNoLauncherSpecified = 117, // No launcher was specified, but a launcher was needed to choose correct realm for operation.
134 k_EResultMustAgreeToSSA = 118, // User must agree to china SSA or global SSA before login
135 k_EResultLauncherMigrated = 119, // The specified launcher type is no longer supported; the user should be directed elsewhere
136 k_EResultSteamRealmMismatch = 120, // The user's realm does not match the realm of the requested resource
137 k_EResultInvalidSignature = 121, // signature check did not match
138 k_EResultParseFailure = 122, // Failed to parse input
139 k_EResultNoVerifiedPhone = 123, // account does not have a verified phone number
140 k_EResultInsufficientBattery = 124, // user device doesn't have enough battery charge currently to complete the action
141 k_EResultChargerRequired = 125, // The operation requires a charger to be plugged in, which wasn't present
142 k_EResultCachedCredentialInvalid = 126, // Cached credential was invalid - user must reauthenticate
143 K_EResultPhoneNumberIsVOIP = 127, // The phone number provided is a Voice Over IP number
144 k_EResultNotSupported = 128, // The data being accessed is not supported by this API
145 k_EResultFamilySizeLimitExceeded = 129, // Reached the maximum size of the family
146 k_EResultOfflineAppCacheInvalid = 130, // The local data for the offline mode cache is insufficient to login
147 k_EResultTryLater = 131, // retry the operation later
148};
149
150// Error codes for use with the voice functions
165
166// Result codes to GSHandleClientDeny/Kick
186
187// return type of GetAuthSessionTicket
190
191// results from BeginAuthSession
193{
194 k_EBeginAuthSessionResultOK = 0, // Ticket is valid for this game and this steamID.
195 k_EBeginAuthSessionResultInvalidTicket = 1, // Ticket is not valid.
196 k_EBeginAuthSessionResultDuplicateRequest = 2, // A ticket has already been submitted for this steamID
197 k_EBeginAuthSessionResultInvalidVersion = 3, // Ticket is from an incompatible interface version
198 k_EBeginAuthSessionResultGameMismatch = 4, // Ticket is not for this game
199 k_EBeginAuthSessionResultExpiredTicket = 5, // Ticket has expired
200};
201
202// Callback values for callback ValidateAuthTicketResponse_t which is a response to BeginAuthSession
204{
205 k_EAuthSessionResponseOK = 0, // Steam has verified the user is online, the ticket is valid and ticket has not been reused.
206 k_EAuthSessionResponseUserNotConnectedToSteam = 1, // The user in question is not connected to steam
207 k_EAuthSessionResponseNoLicenseOrExpired = 2, // The license has expired.
208 k_EAuthSessionResponseVACBanned = 3, // The user is VAC banned for this game.
209 k_EAuthSessionResponseLoggedInElseWhere = 4, // The user account has logged in elsewhere and the session containing the game instance has been disconnected.
210 k_EAuthSessionResponseVACCheckTimedOut = 5, // VAC has been unable to perform anti-cheat checks on this user
211 k_EAuthSessionResponseAuthTicketCanceled = 6, // The ticket has been canceled by the issuer
212 k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7, // This ticket has already been used, it is not valid.
213 k_EAuthSessionResponseAuthTicketInvalid = 8, // This ticket is not from a user instance currently connected to steam.
214 k_EAuthSessionResponsePublisherIssuedBan = 9, // The user is banned for this game. The ban came via the web api and not VAC
215 k_EAuthSessionResponseAuthTicketNetworkIdentityFailure = 10, // The network identity in the ticket does not match the server authenticating the ticket
216};
217
218// results from UserHasLicenseForApp
220{
221 k_EUserHasLicenseResultHasLicense = 0, // User has a license for specified app
222 k_EUserHasLicenseResultDoesNotHaveLicense = 1, // User does not have a license for the specified app
223 k_EUserHasLicenseResultNoAuth = 2, // User has not been authenticated
224};
225
226
227// Steam account types
229{
231 k_EAccountTypeIndividual = 1, // single user account
232 k_EAccountTypeMultiseat = 2, // multiseat (e.g. cybercafe) account
233 k_EAccountTypeGameServer = 3, // game server account
234 k_EAccountTypeAnonGameServer = 4, // anonymous game server account
235 k_EAccountTypePending = 5, // pending
236 k_EAccountTypeContentServer = 6, // content server
239 k_EAccountTypeConsoleUser = 9, // Fake SteamID for local PSN account on PS3 or Live account on 360, etc.
241
242 // Max of 16 items in this field
244};
245
246
247
248//-----------------------------------------------------------------------------
249// Purpose: Chat Entry Types (previously was only friend-to-friend message types)
250//-----------------------------------------------------------------------------
252{
254 k_EChatEntryTypeChatMsg = 1, // Normal text message from another user
255 k_EChatEntryTypeTyping = 2, // Another user is typing (not used in multi-user chat)
256 k_EChatEntryTypeInviteGame = 3, // Invite from other user into that users current game
257 k_EChatEntryTypeEmote = 4, // text emote message (deprecated, should be treated as ChatMsg)
258 //k_EChatEntryTypeLobbyGameStart = 5, // lobby game is starting (dead - listen for LobbyGameCreated_t callback instead)
259 k_EChatEntryTypeLeftConversation = 6, // user has left the conversation ( closed chat window )
260 // Above are previous FriendMsgType entries, now merged into more generic chat entry types
261 k_EChatEntryTypeEntered = 7, // user has entered the conversation (used in multi-user chat and group chat)
262 k_EChatEntryTypeWasKicked = 8, // user was kicked (data: 64-bit steamid of actor performing the kick)
263 k_EChatEntryTypeWasBanned = 9, // user was banned (data: 64-bit steamid of actor performing the ban)
264 k_EChatEntryTypeDisconnected = 10, // user disconnected
265 k_EChatEntryTypeHistoricalChat = 11, // a chat message from user's chat history or offilne message
266 //k_EChatEntryTypeReserved1 = 12, // No longer used
267 //k_EChatEntryTypeReserved2 = 13, // No longer used
268 k_EChatEntryTypeLinkBlocked = 14, // a link was removed by the chat filter.
269};
270
271
272//-----------------------------------------------------------------------------
273// Purpose: Chat Room Enter Responses
274//-----------------------------------------------------------------------------
276{
278 k_EChatRoomEnterResponseDoesntExist = 2, // Chat doesn't exist (probably closed)
279 k_EChatRoomEnterResponseNotAllowed = 3, // General Denied - You don't have the permissions needed to join the chat
280 k_EChatRoomEnterResponseFull = 4, // Chat room has reached its maximum size
281 k_EChatRoomEnterResponseError = 5, // Unexpected Error
282 k_EChatRoomEnterResponseBanned = 6, // You are banned from this chat room and may not join
283 k_EChatRoomEnterResponseLimited = 7, // Joining this chat is not allowed because you are a limited user (no value on account)
284 k_EChatRoomEnterResponseClanDisabled = 8, // Attempt to join a clan chat when the clan is locked or disabled
285 k_EChatRoomEnterResponseCommunityBan = 9, // Attempt to join a chat when the user has a community lock on their account
286 k_EChatRoomEnterResponseMemberBlockedYou = 10, // Join failed - some member in the chat has blocked you from joining
287 k_EChatRoomEnterResponseYouBlockedMember = 11, // Join failed - you have blocked some member already in the chat
288 // k_EChatRoomEnterResponseNoRankingDataLobby = 12, // No longer used
289 // k_EChatRoomEnterResponseNoRankingDataUser = 13, // No longer used
290 // k_EChatRoomEnterResponseRankOutOfRange = 14, // No longer used
291 k_EChatRoomEnterResponseRatelimitExceeded = 15, // Join failed - to many join attempts in a very short period of time
292};
293
294
295const unsigned int k_unSteamAccountIDMask = 0xFFFFFFFF;
296const unsigned int k_unSteamAccountInstanceMask = 0x000FFFFF;
297const unsigned int k_unSteamUserDefaultInstance = 1; // fixed instance for all individual users
298
299// Special flags for Chat accounts - they go in the top 8 bits
300// of the steam ID's "instance", leaving 12 for the actual instances
302{
303 k_EChatAccountInstanceMask = 0x00000FFF, // top 8 bits are flags
304
306 k_EChatInstanceFlagLobby = ( k_unSteamAccountInstanceMask + 1 ) >> 2, // next one down, etc
307 k_EChatInstanceFlagMMSLobby = ( k_unSteamAccountInstanceMask + 1 ) >> 3, // next one down, etc
308
309 // Max of 8 flags
310};
311
312
313//-----------------------------------------------------------------------------
314// Purpose: Possible positions to tell the overlay to show notifications in
315//-----------------------------------------------------------------------------
324
325
326//-----------------------------------------------------------------------------
327// Purpose: Broadcast upload result details
328//-----------------------------------------------------------------------------
330{
331 k_EBroadcastUploadResultNone = 0, // broadcast state unknown
332 k_EBroadcastUploadResultOK = 1, // broadcast was good, no problems
333 k_EBroadcastUploadResultInitFailed = 2, // broadcast init failed
334 k_EBroadcastUploadResultFrameFailed = 3, // broadcast frame upload failed
335 k_EBroadcastUploadResultTimeout = 4, // broadcast upload timed out
336 k_EBroadcastUploadResultBandwidthExceeded = 5, // broadcast send too much data
337 k_EBroadcastUploadResultLowFPS = 6, // broadcast FPS too low
338 k_EBroadcastUploadResultMissingKeyFrames = 7, // broadcast sending not enough key frames
339 k_EBroadcastUploadResultNoConnection = 8, // broadcast client failed to connect to relay
340 k_EBroadcastUploadResultRelayFailed = 9, // relay dropped the upload
341 k_EBroadcastUploadResultSettingsChanged = 10, // the client changed broadcast settings
342 k_EBroadcastUploadResultMissingAudio = 11, // client failed to send audio data
343 k_EBroadcastUploadResultTooFarBehind = 12, // clients was too slow uploading
344 k_EBroadcastUploadResultTranscodeBehind = 13, // server failed to keep up with transcode
345 k_EBroadcastUploadResultNotAllowedToPlay = 14, // Broadcast does not have permissions to play game
346 k_EBroadcastUploadResultBusy = 15, // RTMP host to busy to take new broadcast stream, choose another
347 k_EBroadcastUploadResultBanned = 16, // Account banned from community broadcast
348 k_EBroadcastUploadResultAlreadyActive = 17, // We already already have an stream running.
349 k_EBroadcastUploadResultForcedOff = 18, // We explicitly shutting down a broadcast
350 k_EBroadcastUploadResultAudioBehind = 19, // Audio stream was too far behind video
351 k_EBroadcastUploadResultShutdown = 20, // Broadcast Server was shut down
352 k_EBroadcastUploadResultDisconnect = 21, // broadcast uploader TCP disconnected
353 k_EBroadcastUploadResultVideoInitFailed = 22, // invalid video settings
354 k_EBroadcastUploadResultAudioInitFailed = 23, // invalid audio settings
355};
356
357
358//-----------------------------------------------------------------------------
359// Purpose: Reasons a user may not use the Community Market.
360// Used in MarketEligibilityResponse_t.
361//-----------------------------------------------------------------------------
363{
365
366 // A back-end call failed or something that might work again on retry
368
369 // Disabled account
371
372 // Locked account
374
375 // Limited account (no purchases)
377
378 // The account is banned from trading items
380
381 // Wallet funds aren't tradable because the user has had no purchase
382 // activity in the last year or has had no purchases prior to last month
384
385 // The user doesn't have Steam Guard enabled
387
388 // The user has Steam Guard, but it hasn't been enabled for the required
389 // number of days
391
392 // The user has recently forgotten their password and reset it
394
395 // The user has recently funded his or her wallet with a new payment method
397
398 // An invalid cookie was sent by the user
400
401 // The user has Steam Guard, but is using a new computer or web browser
403
404 // The user has recently refunded a store purchase by his or herself
406
407 // The user has recently funded his or her wallet with a new payment method that cannot be verified
409
410 // Not only is the account not trusted, but they have no recent purchases at all
412
413 // User accepted a wallet gift that was recently purchased
415
416 // User did something that triggered a trade cooldown (like reversing trades)
418};
419
420
421//
422// describes XP / progress restrictions to apply for games with duration control /
423// anti-indulgence enabled for minor Steam China users.
424//
425// WARNING: DO NOT RENUMBER
427{
429 k_EDurationControlProgress_Half = 1, // deprecated - XP or persistent rewards should be halved
430 k_EDurationControlProgress_None = 2, // deprecated - XP or persistent rewards should be stopped
431
432 k_EDurationControl_ExitSoon_3h = 3, // allowed 3h time since 5h gap/break has elapsed, game should exit - steam will terminate the game soon
433 k_EDurationControl_ExitSoon_5h = 4, // allowed 5h time in calendar day has elapsed, game should exit - steam will terminate the game soon
434 k_EDurationControl_ExitSoon_Night = 5, // game running after day period, game should exit - steam will terminate the game soon
435};
436
437
438//
439// describes which notification timer has expired, for steam china duration control feature
440//
441// WARNING: DO NOT RENUMBER
443{
444 k_EDurationControlNotification_None = 0, // just informing you about progress, no notification to show
445 k_EDurationControlNotification_1Hour = 1, // "you've been playing for N hours"
446
447 k_EDurationControlNotification_3Hours = 2, // deprecated - "you've been playing for 3 hours; take a break"
448 k_EDurationControlNotification_HalfProgress = 3,// deprecated - "your XP / progress is half normal"
449 k_EDurationControlNotification_NoProgress = 4, // deprecated - "your XP / progress is zero"
450
451 k_EDurationControlNotification_ExitSoon_3h = 5, // allowed 3h time since 5h gap/break has elapsed, game should exit - steam will terminate the game soon
452 k_EDurationControlNotification_ExitSoon_5h = 6, // allowed 5h time in calendar day has elapsed, game should exit - steam will terminate the game soon
453 k_EDurationControlNotification_ExitSoon_Night = 7,// game running after day period, game should exit - steam will terminate the game soon
454};
455
456
457//
458// Specifies a game's online state in relation to duration control
459//
461{
463 k_EDurationControlOnlineState_Offline = 1, // currently in offline play - single-player, offline co-op, etc.
464 k_EDurationControlOnlineState_Online = 2, // currently in online play
465 k_EDurationControlOnlineState_OnlineHighPri = 3, // currently in online play and requests not to be interrupted
466};
467
468
470{
472 k_EBetaBranch_Default = 1, // this is the default branch ("public")
473 k_EBetaBranch_Available = 2, // this branch can be selected (available)
474 k_EBetaBranch_Private = 4, // this is a private branch (password protected)
475 k_EBetaBranch_Selected = 8, // this is the currently selected branch (active)
476 k_EBetaBranch_Installed = 16, // this is the currently installed branch (mounted)
477};
478
479#pragma pack( push, 1 )
480
481#define CSTEAMID_DEFINED
482
483// Steam ID structure (64 bits total)
485{
486public:
487
488 //-----------------------------------------------------------------------------
489 // Purpose: Constructor
490 //-----------------------------------------------------------------------------
498
499
500 //-----------------------------------------------------------------------------
501 // Purpose: Constructor
502 // Input : unAccountID - 32-bit account ID
503 // eUniverse - Universe this account belongs to
504 // eAccountType - Type of account
505 //-----------------------------------------------------------------------------
506 CSteamID( uint32 unAccountID, EUniverse eUniverse, EAccountType eAccountType )
507 {
508 Set( unAccountID, eUniverse, eAccountType );
509 }
510
511
512 //-----------------------------------------------------------------------------
513 // Purpose: Constructor
514 // Input : unAccountID - 32-bit account ID
515 // unAccountInstance - instance
516 // eUniverse - Universe this account belongs to
517 // eAccountType - Type of account
518 //-----------------------------------------------------------------------------
519 CSteamID( uint32 unAccountID, unsigned int unAccountInstance, EUniverse eUniverse, EAccountType eAccountType )
520 {
521#if defined(_SERVER) && defined(Assert)
522 Assert( ( k_EAccountTypeIndividual != eAccountType ) || ( unAccountInstance == k_unSteamUserDefaultInstance ) ); // enforce that for individual accounts, instance is always 1
523#endif // _SERVER
524 InstancedSet( unAccountID, unAccountInstance, eUniverse, eAccountType );
525 }
526
527
528 //-----------------------------------------------------------------------------
529 // Purpose: Constructor
530 // Input : ulSteamID - 64-bit representation of a Steam ID
531 // Note: Will not accept a uint32 or int32 as input, as that is a probable mistake.
532 // See the stubbed out overloads in the private: section for more info.
533 //-----------------------------------------------------------------------------
534 CSteamID( uint64 ulSteamID )
535 {
536 SetFromUint64( ulSteamID );
537 }
538#ifdef INT64_DIFFERENT_FROM_INT64_T
539 CSteamID( uint64_t ulSteamID )
540 {
541 SetFromUint64( (uint64)ulSteamID );
542 }
543#endif
544
545
546 //-----------------------------------------------------------------------------
547 // Purpose: Sets parameters for steam ID
548 // Input : unAccountID - 32-bit account ID
549 // eUniverse - Universe this account belongs to
550 // eAccountType - Type of account
551 //-----------------------------------------------------------------------------
552 void Set( uint32 unAccountID, EUniverse eUniverse, EAccountType eAccountType )
553 {
554 m_steamid.m_comp.m_unAccountID = unAccountID;
555 m_steamid.m_comp.m_EUniverse = eUniverse;
556 m_steamid.m_comp.m_EAccountType = eAccountType;
557
558 if ( eAccountType == k_EAccountTypeClan || eAccountType == k_EAccountTypeGameServer )
559 {
561 }
562 else
563 {
565 }
566 }
567
568
569 //-----------------------------------------------------------------------------
570 // Purpose: Sets parameters for steam ID
571 // Input : unAccountID - 32-bit account ID
572 // eUniverse - Universe this account belongs to
573 // eAccountType - Type of account
574 //-----------------------------------------------------------------------------
575 void InstancedSet( uint32 unAccountID, uint32 unInstance, EUniverse eUniverse, EAccountType eAccountType )
576 {
577 m_steamid.m_comp.m_unAccountID = unAccountID;
578 m_steamid.m_comp.m_EUniverse = eUniverse;
579 m_steamid.m_comp.m_EAccountType = eAccountType;
581 }
582
583
584 //-----------------------------------------------------------------------------
585 // Purpose: Initializes a steam ID from its 52 bit parts and universe/type
586 // Input : ulIdentifier - 52 bits of goodness
587 //-----------------------------------------------------------------------------
588 void FullSet( uint64 ulIdentifier, EUniverse eUniverse, EAccountType eAccountType )
589 {
590 m_steamid.m_comp.m_unAccountID = ( ulIdentifier & k_unSteamAccountIDMask ); // account ID is low 32 bits
591 m_steamid.m_comp.m_unAccountInstance = ( ( ulIdentifier >> 32 ) & k_unSteamAccountInstanceMask ); // account instance is next 20 bits
592 m_steamid.m_comp.m_EUniverse = eUniverse;
593 m_steamid.m_comp.m_EAccountType = eAccountType;
594 }
595
596
597 //-----------------------------------------------------------------------------
598 // Purpose: Initializes a steam ID from its 64-bit representation
599 // Input : ulSteamID - 64-bit representation of a Steam ID
600 //-----------------------------------------------------------------------------
601 void SetFromUint64( uint64 ulSteamID )
602 {
603 m_steamid.m_unAll64Bits = ulSteamID;
604 }
605
606
607 //-----------------------------------------------------------------------------
608 // Purpose: Clear all fields, leaving an invalid ID.
609 //-----------------------------------------------------------------------------
617
618 //-----------------------------------------------------------------------------
619 // Purpose: Converts steam ID to its 64-bit representation
620 // Output : 64-bit representation of a Steam ID
621 //-----------------------------------------------------------------------------
623 {
625 }
626
627
628 //-----------------------------------------------------------------------------
629 // Purpose: Converts the static parts of a steam ID to a 64-bit representation.
630 // For multiseat accounts, all instances of that account will have the
631 // same static account key, so they can be grouped together by the static
632 // account key.
633 // Output : 64-bit static account key
634 //-----------------------------------------------------------------------------
636 {
637 // note we do NOT include the account instance (which is a dynamic property) in the static account key
639 }
640
641
642 //-----------------------------------------------------------------------------
643 // Purpose: create an anonymous game server login to be filled in by the AM
644 //-----------------------------------------------------------------------------
652
653
654 //-----------------------------------------------------------------------------
655 // Purpose: create an anonymous game server login to be filled in by the AM
656 //-----------------------------------------------------------------------------
664
665 //-----------------------------------------------------------------------------
666 // Purpose: Is this an anonymous game server login that will be filled in?
667 //-----------------------------------------------------------------------------
668 bool BBlankAnonAccount() const
669 {
671 }
672
673 //-----------------------------------------------------------------------------
674 // Purpose: Is this a game server account id? (Either persistent or anonymous)
675 //-----------------------------------------------------------------------------
680
681 //-----------------------------------------------------------------------------
682 // Purpose: Is this a persistent (not anonymous) game server account id?
683 //-----------------------------------------------------------------------------
688
689 //-----------------------------------------------------------------------------
690 // Purpose: Is this an anonymous game server account id?
691 //-----------------------------------------------------------------------------
696
697 //-----------------------------------------------------------------------------
698 // Purpose: Is this a content server account id?
699 //-----------------------------------------------------------------------------
704
705
706 //-----------------------------------------------------------------------------
707 // Purpose: Is this a clan account id?
708 //-----------------------------------------------------------------------------
709 bool BClanAccount() const
710 {
712 }
713
714
715 //-----------------------------------------------------------------------------
716 // Purpose: Is this a chat account id?
717 //-----------------------------------------------------------------------------
718 bool BChatAccount() const
719 {
721 }
722
723 //-----------------------------------------------------------------------------
724 // Purpose: Is this a chat account id?
725 //-----------------------------------------------------------------------------
731
732
733 //-----------------------------------------------------------------------------
734 // Purpose: Is this an individual user account id?
735 //-----------------------------------------------------------------------------
740
741
742 //-----------------------------------------------------------------------------
743 // Purpose: Is this an anonymous account?
744 //-----------------------------------------------------------------------------
749
750 //-----------------------------------------------------------------------------
751 // Purpose: Is this an anonymous user account? ( used to create an account or reset a password )
752 //-----------------------------------------------------------------------------
757
758 //-----------------------------------------------------------------------------
759 // Purpose: Is this a faked up Steam ID for a PSN friend account?
760 //-----------------------------------------------------------------------------
765
766 // simple accessors
767 void SetAccountID( uint32 unAccountID ) { m_steamid.m_comp.m_unAccountID = unAccountID; }
769
774 void SetEUniverse( EUniverse eUniverse ) { m_steamid.m_comp.m_EUniverse = eUniverse; }
775 bool IsValid() const;
776
777 // this set of functions is hidden, will be moved out of class
778 explicit CSteamID( const char *pchSteamID, EUniverse eDefaultUniverse = k_EUniverseInvalid );
779 const char * Render() const; // renders this steam ID to string
780 static const char * Render( uint64 ulSteamID ); // static method to render a uint64 representation of a steam ID to a string
781
782 void SetFromString( const char *pchSteamID, EUniverse eDefaultUniverse );
783 // SetFromString allows many partially-correct strings, constraining how
784 // we might be able to change things in the future.
785 // SetFromStringStrict requires the exact string forms that we support
786 // and is preferred when the caller knows it's safe to be strict.
787 // Returns whether the string parsed correctly.
788 bool SetFromStringStrict( const char *pchSteamID, EUniverse eDefaultUniverse );
789
790 inline bool operator==( const CSteamID &val ) const { return m_steamid.m_unAll64Bits == val.m_steamid.m_unAll64Bits; }
791 inline bool operator!=( const CSteamID &val ) const { return !operator==( val ); }
792 inline bool operator<( const CSteamID &val ) const { return m_steamid.m_unAll64Bits < val.m_steamid.m_unAll64Bits; }
793 inline bool operator>( const CSteamID &val ) const { return m_steamid.m_unAll64Bits > val.m_steamid.m_unAll64Bits; }
794
795 // DEBUG function
797
798private:
799 // These are defined here to prevent accidental implicit conversion of a u32AccountID to a CSteamID.
800 // If you get a compiler error about an ambiguous constructor/function then it may be because you're
801 // passing a 32-bit int to a function that takes a CSteamID. You should explicitly create the SteamID
802 // using the correct Universe and account Type/Instance values.
805
806 // 64 bits total
808 {
810 {
811#ifdef VALVE_BIG_ENDIAN
812 EUniverse m_EUniverse : 8; // universe this account belongs to
813 unsigned int m_EAccountType : 4; // type of account - can't show as EAccountType, due to signed / unsigned difference
814 unsigned int m_unAccountInstance : 20; // dynamic instance ID
815 uint32 m_unAccountID : 32; // unique account identifier
816#else
817 uint32 m_unAccountID : 32; // unique account identifier
818 unsigned int m_unAccountInstance : 20; // dynamic instance ID
819 unsigned int m_EAccountType : 4; // type of account - can't show as EAccountType, due to signed / unsigned difference
820 EUniverse m_EUniverse : 8; // universe this account belongs to
821#endif
823
826};
827
828inline bool CSteamID::IsValid() const
829{
831 return false;
832
834 return false;
835
837 {
839 return false;
840 }
841
843 {
845 return false;
846 }
847
849 {
850 if ( m_steamid.m_comp.m_unAccountID == 0 )
851 return false;
852 // Any limit on instances? We use them for local users and bots
853 }
854 return true;
855}
856
857#if defined( INCLUDED_STEAM2_USERID_STRUCTS )
858
859//-----------------------------------------------------------------------------
860// Purpose: Initializes a steam ID from a Steam2 ID structure
861// Input: pTSteamGlobalUserID - Steam2 ID to convert
862// eUniverse - universe this ID belongs to
863//-----------------------------------------------------------------------------
864inline CSteamID SteamIDFromSteam2UserID( TSteamGlobalUserID *pTSteamGlobalUserID, EUniverse eUniverse )
865{
866 uint32 unAccountID = pTSteamGlobalUserID->m_SteamLocalUserID.Split.Low32bits * 2 +
867 pTSteamGlobalUserID->m_SteamLocalUserID.Split.High32bits;
868
869 return CSteamID( unAccountID, k_unSteamUserDefaultInstance, eUniverse, k_EAccountTypeIndividual );
870}
871
872bool SteamIDFromSteam2String( const char *pchSteam2ID, EUniverse eUniverse, CSteamID *pSteamIDOut );
873
874//-----------------------------------------------------------------------------
875// Purpose: Fills out a Steam2 ID structure
876// Input: pTSteamGlobalUserID - Steam2 ID to write to
877//-----------------------------------------------------------------------------
878inline TSteamGlobalUserID SteamIDToSteam2UserID( CSteamID steamID )
879{
880 TSteamGlobalUserID steamGlobalUserID;
881
882 steamGlobalUserID.m_SteamInstanceID = 0;
883 steamGlobalUserID.m_SteamLocalUserID.Split.High32bits = steamID.GetAccountID() % 2;
884 steamGlobalUserID.m_SteamLocalUserID.Split.Low32bits = steamID.GetAccountID() / 2;
885
886 return steamGlobalUserID;
887}
888
889
890#endif
891
892// generic invalid CSteamID
893#define k_steamIDNil CSteamID()
894
895// This steamID comes from a user game connection to an out of date GS that hasnt implemented the protocol
896// to provide its steamID
897#define k_steamIDOutofDateGS CSteamID( 0, 0, k_EUniverseInvalid, k_EAccountTypeInvalid )
898// This steamID comes from a user game connection to an sv_lan GS
899#define k_steamIDLanModeGS CSteamID( 0, 0, k_EUniversePublic, k_EAccountTypeInvalid )
900// This steamID can come from a user game connection to a GS that has just booted but hasnt yet even initialized
901// its steam3 component and started logging on.
902#define k_steamIDNotInitYetGS CSteamID( 1, 0, k_EUniverseInvalid, k_EAccountTypeInvalid )
903// This steamID can come from a user game connection to a GS that isn't using the steam authentication system but still
904// wants to support the "Join Game" option in the friends list
905#define k_steamIDNonSteamGS CSteamID( 2, 0, k_EUniverseInvalid, k_EAccountTypeInvalid )
906
907
908#ifdef STEAM
909// Returns the matching chat steamID, with the default instance of 0
910// If the steamID passed in is already of type k_EAccountTypeChat it will be returned with the same instance
911CSteamID ChatIDFromSteamID( const CSteamID &steamID );
912// Returns the matching clan steamID, with the default instance of 0
913// If the steamID passed in is already of type k_EAccountTypeClan it will be returned with the same instance
914CSteamID ClanIDFromSteamID( const CSteamID &steamID );
915// Asserts steamID type before conversion
916CSteamID ChatIDFromClanID( const CSteamID &steamIDClan );
917// Asserts steamID type before conversion
918CSteamID ClanIDFromChatID( const CSteamID &steamIDChat );
919
920#endif // _STEAM
921
922
923//-----------------------------------------------------------------------------
924// Purpose: encapsulates an appID/modID pair
925//-----------------------------------------------------------------------------
927{
928public:
929
936
938 {
939 m_gameID.m_nType = k_EGameIDTypeApp;
940 m_gameID.m_nAppID = k_uAppIdInvalid;
941 m_gameID.m_nModID = 0;
942 }
943
944 explicit CGameID( uint64 ulGameID )
945 {
946 m_ulGameID = ulGameID;
947 }
948#ifdef INT64_DIFFERENT_FROM_INT64_T
949 CGameID( uint64_t ulGameID )
950 {
951 m_ulGameID = (uint64)ulGameID;
952 }
953#endif
954
955 explicit CGameID( int32 nAppID )
956 {
957 m_ulGameID = 0;
958 m_gameID.m_nAppID = nAppID;
959 }
960
961 explicit CGameID( uint32 nAppID )
962 {
963 m_ulGameID = 0;
964 m_gameID.m_nAppID = nAppID;
965 }
966
967 // Not validating anything .. use IsValid()
968 explicit CGameID( uint32 nAppID, uint32 nModID, CGameID::EGameIDType nType )
969 {
970 m_gameID.m_nAppID = nAppID;
971 m_gameID.m_nModID = nModID;
972 m_gameID.m_nType = nType;
973 }
974
975 // Not validating anything .. use IsValid()
976 // Only for apps and shortcuts
977 explicit CGameID( uint32 nID, CGameID::EGameIDType nType )
978 {
979 m_ulGameID = 0;
980
981 if ( nType == k_EGameIDTypeApp )
982 {
983 m_gameID.m_nType = nType;
984 m_gameID.m_nAppID = nID;
985 }
986 else if ( nType == k_EGameIDTypeShortcut )
987 {
988 m_gameID.m_nType = nType;
989 m_gameID.m_nModID = nID;
990 }
991 }
992
993 CGameID( const CGameID &that )
994 {
995 m_ulGameID = that.m_ulGameID;
996 }
997
998 CGameID& operator=( const CGameID & that )
999 {
1000 m_ulGameID = that.m_ulGameID;
1001 return *this;
1002 }
1003
1004 // Hidden functions used only by Steam
1005 explicit CGameID( const char *pchGameID );
1006 const char *Render() const; // render this Game ID to string
1007 static const char *Render( uint64 ulGameID ); // static method to render a uint64 representation of a Game ID to a string
1008
1010 {
1011 return m_ulGameID;
1012 }
1013
1015 {
1016 return &m_ulGameID;
1017 }
1018
1019 void Set( uint64 ulGameID )
1020 {
1021 m_ulGameID = ulGameID;
1022 }
1023
1024 bool IsMod() const
1025 {
1026 return ( m_gameID.m_nType == k_EGameIDTypeGameMod );
1027 }
1028
1029 bool IsShortcut() const
1030 {
1031 return ( m_gameID.m_nType == k_EGameIDTypeShortcut );
1032 }
1033
1034 bool IsSteamApp() const
1035 {
1036 return ( m_gameID.m_nType == k_EGameIDTypeApp );
1037 }
1038
1040 {
1041 return ( m_gameID.m_nType == k_EGameIDTypeShortcut ) ? 0: m_gameID.m_nModID;
1042 }
1043
1045 {
1046 return ( m_gameID.m_nType == k_EGameIDTypeShortcut ) ? m_gameID.m_nModID : m_gameID.m_nAppID;
1047 }
1048
1049 bool operator == ( const CGameID &rhs ) const
1050 {
1051 return m_ulGameID == rhs.m_ulGameID;
1052 }
1053
1054 bool operator != ( const CGameID &rhs ) const
1055 {
1056 return !(*this == rhs);
1057 }
1058
1059 bool operator < ( const CGameID &rhs ) const
1060 {
1061 return ( m_ulGameID < rhs.m_ulGameID );
1062 }
1063
1064 bool IsValid() const
1065 {
1066 // each type has it's own invalid fixed point:
1067 switch( m_gameID.m_nType )
1068 {
1069 case k_EGameIDTypeApp:
1070 return m_gameID.m_nAppID != k_uAppIdInvalid;
1071
1073 return m_gameID.m_nAppID != k_uAppIdInvalid && (m_gameID.m_nModID & 0x80000000);
1074
1076 return m_gameID.m_nAppID == k_uAppIdInvalid
1077 && (m_gameID.m_nModID & 0x80000000)
1078 && m_gameID.m_nModID >= (5000 | 0x80000000); // k_unMaxExpectedLocalAppId - shortcuts are pushed beyond that range
1079
1080 default:
1081 return false;
1082 }
1083
1084 }
1085
1086 void Reset()
1087 {
1088 m_ulGameID = 0;
1089 }
1090
1091//
1092// Internal stuff. Use the accessors above if possible
1093//
1094
1096 {
1097#ifdef VALVE_BIG_ENDIAN
1098 unsigned int m_nModID : 32;
1099 unsigned int m_nType : 8;
1100 unsigned int m_nAppID : 24;
1101#else
1102 unsigned int m_nAppID : 24;
1103 unsigned int m_nType : 8;
1104 unsigned int m_nModID : 32;
1105#endif
1106 };
1107
1108 union
1109 {
1112 };
1113
1114 friend CGameID GameIDFromAppAndModPath( uint32 nAppID, const char *pchModPath );
1115};
1116
1117#pragma pack( pop )
1118
1120
1121
1122//-----------------------------------------------------------------------------
1123// Purpose: Passed as argument to SteamAPI_UseBreakpadCrashHandler to enable optional callback
1124// just before minidump file is captured after a crash has occurred. (Allows app to append additional comment data to the dump, etc.)
1125//-----------------------------------------------------------------------------
1126typedef void (*PFNPreMinidumpCallback)(void *context);
1127
1128
1130{
1132 k_ESteamIPv6ConnectivityProtocol_HTTP = 1, // because a proxy may make this different than other protocols
1133 k_ESteamIPv6ConnectivityProtocol_UDP = 2, // test UDP connectivity. Uses a port that is commonly needed for other Steam stuff. If UDP works, TCP probably works.
1134};
1135
1136// For the above transport protocol, what do we think the local machine's connectivity to the internet over ipv6 is like
1138{
1139 k_ESteamIPv6ConnectivityState_Unknown = 0, // We haven't run a test yet
1140 k_ESteamIPv6ConnectivityState_Good = 1, // We have recently been able to make a request on ipv6 for the given protocol
1141 k_ESteamIPv6ConnectivityState_Bad = 2, // We failed to make a request, either because this machine has no ipv6 address assigned, or it has no upstream connectivity
1142};
1143
1144
1145// Define compile time assert macros to let us validate the structure sizes.
1146#define VALVE_COMPILE_TIME_ASSERT( pred ) typedef char compile_time_assert_type[(pred) ? 1 : -1];
1147
1148#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
1149// The 32-bit version of gcc has the alignment requirement for uint64 and double set to
1150// 4 meaning that even with #pragma pack(8) these types will only be four-byte aligned.
1151// The 64-bit version of gcc has the alignment requirement for these types set to
1152// 8 meaning that unless we use #pragma pack(4) our structures will get bigger.
1153// The 64-bit structure packing has to match the 32-bit structure packing for each platform.
1154#define VALVE_CALLBACK_PACK_SMALL
1155#else
1156#define VALVE_CALLBACK_PACK_LARGE
1157#endif
1158
1159#if defined( VALVE_CALLBACK_PACK_SMALL )
1160#pragma pack( push, 4 )
1161#elif defined( VALVE_CALLBACK_PACK_LARGE )
1162#pragma pack( push, 8 )
1163#else
1164#error ???
1165#endif
1166
1174
1175#pragma pack( pop )
1176
1177
1178#if defined(VALVE_CALLBACK_PACK_SMALL)
1180#elif defined(VALVE_CALLBACK_PACK_LARGE)
1182#else
1183#error ???
1184#endif
1185
1186#endif // STEAMCLIENTPUBLIC_H
CGameID & operator=(const CGameID &that)
CGameID(const char *pchGameID)
void Set(uint64 ulGameID)
bool IsShortcut() const
bool IsValid() const
const char * Render() const
CGameID(uint64 ulGameID)
uint32 AppID() const
uint32 ModID() const
CGameID(uint32 nAppID)
static const char * Render(uint64 ulGameID)
CGameID(uint32 nID, CGameID::EGameIDType nType)
bool operator<(const CGameID &rhs) const
uint64 * GetUint64Ptr()
uint64 ToUint64() const
CGameID(int32 nAppID)
bool operator==(const CGameID &rhs) const
CGameID(const CGameID &that)
friend CGameID GameIDFromAppAndModPath(uint32 nAppID, const char *pchModPath)
bool IsMod() const
bool operator!=(const CGameID &rhs) const
bool IsSteamApp() const
CGameID(uint32 nAppID, uint32 nModID, CGameID::EGameIDType nType)
void SetFromUint64(uint64 ulSteamID)
bool operator==(const CSteamID &val) const
const char * Render() const
bool BValidExternalSteamID() const
bool BChatAccount() const
bool IsLobby() const
bool BPersistentGameServerAccount() const
bool BAnonGameServerAccount() const
bool BConsoleUserAccount() const
void InstancedSet(uint32 unAccountID, uint32 unInstance, EUniverse eUniverse, EAccountType eAccountType)
void SetFromString(const char *pchSteamID, EUniverse eDefaultUniverse)
uint64 ConvertToUint64() const
EUniverse GetEUniverse() const
void SetAccountInstance(uint32 unInstance)
CSteamID(uint32)
bool SetFromStringStrict(const char *pchSteamID, EUniverse eDefaultUniverse)
union CSteamID::SteamID_t m_steamid
bool BBlankAnonAccount() const
void Set(uint32 unAccountID, EUniverse eUniverse, EAccountType eAccountType)
bool operator<(const CSteamID &val) const
void CreateBlankAnonLogon(EUniverse eUniverse)
bool BAnonAccount() const
CSteamID(int32)
CSteamID(uint32 unAccountID, unsigned int unAccountInstance, EUniverse eUniverse, EAccountType eAccountType)
void FullSet(uint64 ulIdentifier, EUniverse eUniverse, EAccountType eAccountType)
CSteamID(const char *pchSteamID, EUniverse eDefaultUniverse=k_EUniverseInvalid)
uint64 GetStaticAccountKey() const
bool BGameServerAccount() const
void SetEUniverse(EUniverse eUniverse)
uint32 GetUnAccountInstance() const
bool operator!=(const CSteamID &val) const
bool BClanAccount() const
CSteamID(uint64 ulSteamID)
bool BContentServerAccount() const
bool BIndividualAccount() const
void SetAccountID(uint32 unAccountID)
bool IsValid() const
EAccountType GetEAccountType() const
static const char * Render(uint64 ulSteamID)
AccountID_t GetAccountID() const
bool operator>(const CSteamID &val) const
CSteamID(uint32 unAccountID, EUniverse eUniverse, EAccountType eAccountType)
bool BAnonUserAccount() const
void CreateBlankAnonUserLogon(EUniverse eUniverse)
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
typedef void(S_CALLTYPE *SteamAPIWarningMessageHook_t)(int
EChatRoomEnterResponse
@ k_EChatRoomEnterResponseFull
@ k_EChatRoomEnterResponseError
@ k_EChatRoomEnterResponseNotAllowed
@ k_EChatRoomEnterResponseSuccess
@ k_EChatRoomEnterResponseLimited
@ k_EChatRoomEnterResponseCommunityBan
@ k_EChatRoomEnterResponseClanDisabled
@ k_EChatRoomEnterResponseRatelimitExceeded
@ k_EChatRoomEnterResponseBanned
@ k_EChatRoomEnterResponseMemberBlockedYou
@ k_EChatRoomEnterResponseYouBlockedMember
@ k_EChatRoomEnterResponseDoesntExist
ESteamIPv6ConnectivityProtocol
@ k_ESteamIPv6ConnectivityProtocol_Invalid
@ k_ESteamIPv6ConnectivityProtocol_HTTP
@ k_ESteamIPv6ConnectivityProtocol_UDP
@ k_EAccountTypeInvalid
@ k_EAccountTypeMax
@ k_EAccountTypeAnonGameServer
@ k_EAccountTypeConsoleUser
@ k_EAccountTypeAnonUser
@ k_EAccountTypeContentServer
@ k_EAccountTypeGameServer
@ k_EAccountTypeChat
@ k_EAccountTypeIndividual
@ k_EAccountTypeClan
@ k_EAccountTypePending
@ k_EAccountTypeMultiseat
@ k_EDenySteamConnectionLost
@ k_EDenySteamOwnerLeftGuestUser
@ k_EDenyNotLoggedOn
@ k_EDenySteamValidationStalled
@ k_EDenyCheater
@ k_EDenyIncompatibleSoftware
@ k_EDenyGeneric
@ k_EDenyUnknownText
@ k_EDenySteamResponseTimedOut
@ k_EDenyInvalid
@ k_EDenyLoggedInElseWhere
@ k_EDenyIncompatibleAnticheat
@ k_EDenyMemoryCorruption
@ k_EDenyInvalidVersion
@ k_EDenyNoLicense
@ k_EDenySteamConnectionError
ENotificationPosition
@ k_EPositionBottomRight
@ k_EPositionTopLeft
@ k_EPositionTopRight
@ k_EPositionInvalid
@ k_EPositionBottomLeft
ESteamIPv6ConnectivityState
@ k_ESteamIPv6ConnectivityState_Unknown
@ k_ESteamIPv6ConnectivityState_Bad
@ k_ESteamIPv6ConnectivityState_Good
EDurationControlNotification
@ k_EDurationControlNotification_NoProgress
@ k_EDurationControlNotification_HalfProgress
@ k_EDurationControlNotification_ExitSoon_Night
@ k_EDurationControlNotification_1Hour
@ k_EDurationControlNotification_3Hours
@ k_EDurationControlNotification_ExitSoon_5h
@ k_EDurationControlNotification_None
@ k_EDurationControlNotification_ExitSoon_3h
EBroadcastUploadResult
@ k_EBroadcastUploadResultNone
@ k_EBroadcastUploadResultInitFailed
@ k_EBroadcastUploadResultNotAllowedToPlay
@ k_EBroadcastUploadResultAudioInitFailed
@ k_EBroadcastUploadResultBanned
@ k_EBroadcastUploadResultMissingKeyFrames
@ k_EBroadcastUploadResultTranscodeBehind
@ k_EBroadcastUploadResultVideoInitFailed
@ k_EBroadcastUploadResultDisconnect
@ k_EBroadcastUploadResultTooFarBehind
@ k_EBroadcastUploadResultFrameFailed
@ k_EBroadcastUploadResultAudioBehind
@ k_EBroadcastUploadResultTimeout
@ k_EBroadcastUploadResultSettingsChanged
@ k_EBroadcastUploadResultBusy
@ k_EBroadcastUploadResultNoConnection
@ k_EBroadcastUploadResultOK
@ k_EBroadcastUploadResultRelayFailed
@ k_EBroadcastUploadResultBandwidthExceeded
@ k_EBroadcastUploadResultLowFPS
@ k_EBroadcastUploadResultForcedOff
@ k_EBroadcastUploadResultMissingAudio
@ k_EBroadcastUploadResultAlreadyActive
@ k_EBroadcastUploadResultShutdown
EBeginAuthSessionResult
@ k_EBeginAuthSessionResultExpiredTicket
@ k_EBeginAuthSessionResultInvalidTicket
@ k_EBeginAuthSessionResultGameMismatch
@ k_EBeginAuthSessionResultInvalidVersion
@ k_EBeginAuthSessionResultDuplicateRequest
@ k_EBeginAuthSessionResultOK
EChatSteamIDInstanceFlags
@ k_EChatAccountInstanceMask
@ k_EChatInstanceFlagClan
@ k_EChatInstanceFlagLobby
@ k_EChatInstanceFlagMMSLobby
const unsigned int k_unSteamUserDefaultInstance
EAuthSessionResponse
@ k_EAuthSessionResponseNoLicenseOrExpired
@ k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed
@ k_EAuthSessionResponseLoggedInElseWhere
@ k_EAuthSessionResponsePublisherIssuedBan
@ k_EAuthSessionResponseVACCheckTimedOut
@ k_EAuthSessionResponseVACBanned
@ k_EAuthSessionResponseAuthTicketInvalid
@ k_EAuthSessionResponseOK
@ k_EAuthSessionResponseAuthTicketNetworkIdentityFailure
@ k_EAuthSessionResponseUserNotConnectedToSteam
@ k_EAuthSessionResponseAuthTicketCanceled
@ k_EResultSteamRealmMismatch
@ k_EResultDataCorruption
@ k_EResultDiskFull
@ k_EResultPending
@ k_EResultParseFailure
@ k_EResultPasswordUnset
@ k_EResultMustAgreeToSSA
@ k_EResultCancelled
@ k_EResultNoVerifiedPhone
@ k_EResultIPNotFound
@ k_EResultEncryptionFailure
@ k_EResultWGNetworkSendExceeded
@ k_EResultInvalidSteamID
@ k_EResultInvalidPassword
@ k_EResultAccessDenied
@ k_EResultLauncherMigrated
@ k_EResultNoConnection
@ k_EResultGSLTDenied
@ k_EResultIPTInitError
@ k_EResultIPLoginRestrictionFailed
@ k_EResultOK
@ k_EResultAccountNotFound
@ k_EResultPhoneActivityLimitExceeded
@ k_EResultAdministratorOK
@ k_EResultServiceUnavailable
@ k_EResultInvalidState
@ k_EResultUnexpectedError
@ k_EResultPasswordRequiredToKickSession
@ k_EResultIgnored
@ k_EResultNotModified
@ k_EResultIOFailure
@ k_EResultInvalidName
@ k_EResultCannotUseOldPassword
@ k_EResultBlocked
@ k_EResultAccountLimitExceeded
@ k_EResultRemoteDisconnect
@ k_EResultInvalidCEGSubmission
@ k_EResultAlreadyRedeemed
@ k_EResultAccountLogonDeniedNoMail
@ k_EResultExistingUserCancelledLicense
@ k_EResultItemDeleted
@ k_EResultInvalidParam
@ k_EResultHandshakeFailed
@ k_EResultNoMatchingURL
@ k_EResultInvalidItemType
@ k_EResultRevoked
@ k_EResultAccountDisabled
@ k_EResultLimitedUserAccount
@ k_EResultHardwareNotCapableOfIPT
@ k_EResultAccountNotFriends
@ k_EResultExpiredLoginAuthCode
@ k_EResultNoLauncherSpecified
@ k_EResultLockingFailed
@ k_EResultIPBanned
@ k_EResultGSLTExpired
@ k_EResultRegionLocked
@ k_EResultAccountDeleted
@ k_EResultRemoteCallFailed
@ k_EResultAccountLockedDown
@ k_EResultInvalidLoginAuthCode
@ k_EResultNotSettled
@ k_EResultAccountNotFeatured
@ k_EResultTryAnotherCM
@ k_EResultInsufficientPrivilege
@ k_EResultFail
@ k_EResultOfflineAppCacheInvalid
@ k_EResultNoSiteLicensesFound
@ k_EResultChargerRequired
@ k_EResultShoppingCartNotFound
@ k_EResultAccountLogonDeniedVerifiedEmailRequired
@ k_EResultInvalidEmail
@ k_EResultInvalidSignature
@ k_EResultNotLoggedOn
@ k_EResultContentVersion
@ k_EResultRestrictedDevice
@ k_EResultNeedCaptcha
@ k_EResultDuplicateName
@ k_EResultAccountLoginDeniedThrottle
@ k_EResultIllegalPassword
@ k_EResultInvalidProtocolVer
@ k_EResultSmsCodeFailed
@ k_EResultTwoFactorCodeMismatch
@ k_EResultConnectFailed
@ k_EResultExternalAccountUnlinked
@ k_EResultFacebookQueryError
@ k_EResultCantRemoveItem
@ k_EResultNone
@ k_EResultNotSupported
@ k_EResultDisabled
@ k_EResultRemoteFileConflict
@ k_EResultBusy
@ k_EResultInsufficientBattery
@ k_EResultAccountLogonDenied
@ k_EResultLogonSessionReplaced
@ k_EResultGSOwnerDenied
@ k_EResultFamilySizeLimitExceeded
@ k_EResultTimeNotSynced
@ k_EResultNoMatch
@ K_EResultPhoneNumberIsVOIP
@ k_EResultRateLimitExceeded
@ k_EResultExternalAccountAlreadyLinked
@ k_EResultSameAsPreviousValue
@ k_EResultAlreadyLoggedInElsewhere
@ k_EResultTooManyPending
@ k_EResultAlreadyOwned
@ k_EResultCommunityCooldown
@ k_EResultAccountActivityLimitExceeded
@ k_EResultValueOutOfRange
@ k_EResultAccountLoginDeniedNeedTwoFactor
@ k_EResultParentalControlRestricted
@ k_EResultRequirePasswordReEntry
@ k_EResultCachedCredentialInvalid
@ k_EResultTwoFactorActivationCodeMismatch
@ k_EResultFileNotFound
@ k_EResultDuplicateRequest
@ k_EResultNoMobileDevice
@ k_EResultBadResponse
@ k_EResultBanned
@ k_EResultLimitExceeded
@ k_EResultServiceReadOnly
@ k_EResultTimeout
@ k_EResultLoggedInElsewhere
@ k_EResultEmailSendFailure
@ k_EResultPSNTicketInvalid
@ k_EResultAccountAssociatedToMultiplePartners
@ k_EResultPersistFailed
@ k_EResultTryLater
@ k_EResultSuspended
@ k_EResultRefundToWallet
@ k_EResultInsufficientFunds
@ k_EResultExpired
void(*) PFNPreMinidumpCallback(void *context)
#define VALVE_COMPILE_TIME_ASSERT(pred)
EBetaBranchFlags
@ k_EBetaBranch_Private
@ k_EBetaBranch_None
@ k_EBetaBranch_Installed
@ k_EBetaBranch_Available
@ k_EBetaBranch_Default
@ k_EBetaBranch_Selected
EDurationControlProgress
@ k_EDurationControlProgress_Full
@ k_EDurationControlProgress_Half
@ k_EDurationControl_ExitSoon_5h
@ k_EDurationControlProgress_None
@ k_EDurationControl_ExitSoon_Night
@ k_EDurationControl_ExitSoon_3h
EChatEntryType
@ k_EChatEntryTypeHistoricalChat
@ k_EChatEntryTypeInviteGame
@ k_EChatEntryTypeChatMsg
@ k_EChatEntryTypeInvalid
@ k_EChatEntryTypeEntered
@ k_EChatEntryTypeWasKicked
@ k_EChatEntryTypeLinkBlocked
@ k_EChatEntryTypeTyping
@ k_EChatEntryTypeEmote
@ k_EChatEntryTypeWasBanned
@ k_EChatEntryTypeLeftConversation
@ k_EChatEntryTypeDisconnected
EDurationControlOnlineState
@ k_EDurationControlOnlineState_OnlineHighPri
@ k_EDurationControlOnlineState_Invalid
@ k_EDurationControlOnlineState_Online
@ k_EDurationControlOnlineState_Offline
uint32 HAuthTicket
const unsigned int k_unSteamAccountIDMask
const HAuthTicket k_HAuthTicketInvalid
const int k_cchGameExtraInfoMax
const unsigned int k_unSteamAccountInstanceMask
EMarketNotAllowedReasonFlags
@ k_EMarketNotAllowedReason_NoRecentPurchases
@ k_EMarketNotAllowedReason_TemporaryFailure
@ k_EMarketNotAllowedReason_UsingNewDevice
@ k_EMarketNotAllowedReason_RecentSelfRefund
@ k_EMarketNotAllowedReason_SteamGuardOnlyRecentlyEnabled
@ k_EMarketNotAllowedReason_AccountLimited
@ k_EMarketNotAllowedReason_AccountDisabled
@ k_EMarketNotAllowedReason_TradeCooldown
@ k_EMarketNotAllowedReason_TradeBanned
@ k_EMarketNotAllowedReason_InvalidCookie
@ k_EMarketNotAllowedReason_RecentPasswordReset
@ k_EMarketNotAllowedReason_NewPaymentMethodCannotBeVerified
@ k_EMarketNotAllowedReason_None
@ k_EMarketNotAllowedReason_AcceptedWalletGift
@ k_EMarketNotAllowedReason_SteamGuardNotEnabled
@ k_EMarketNotAllowedReason_AccountNotTrusted
@ k_EMarketNotAllowedReason_AccountLockedDown
@ k_EMarketNotAllowedReason_NewPaymentMethod
EUserHasLicenseForAppResult
@ k_EUserHasLicenseResultHasLicense
@ k_EUserHasLicenseResultDoesNotHaveLicense
@ k_EUserHasLicenseResultNoAuth
@ k_EVoiceResultNoData
@ k_EVoiceResultReceiverDidNotAnswer
@ k_EVoiceResultUnsupportedCodec
@ k_EVoiceResultOK
@ k_EVoiceResultBufferTooSmall
@ k_EVoiceResultDataCorrupted
@ k_EVoiceResultNotRecording
@ k_EVoiceResultRestricted
@ k_EVoiceResultNotInitialized
@ k_EVoiceResultReceiverOutOfDate
unsigned short uint16
Definition steamtypes.h:56
unsigned long long uint64
Definition steamtypes.h:60
const AppId_t k_uAppIdInvalid
Definition steamtypes.h:82
int int32
Definition steamtypes.h:57
uint32 AccountID_t
Definition steamtypes.h:96
EUniverse
@ k_EUniverseMax
@ k_EUniverseInvalid
struct CSteamID::SteamID_t::SteamIDComponent_t m_comp