Source

Open Steamworks / Open Steamworks / UserCommon.h

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
//==========================  Open Steamworks  ================================
//
// This file is part of the Open Steamworks project. All individuals associated
// with this project do not claim ownership of the contents
// 
// The code, comments, and all related files, projects, resources,
// redistributables included with this project are Copyright Valve Corporation.
// Additionally, Valve, the Valve logo, Half-Life, the Half-Life logo, the
// Lambda logo, Steam, the Steam logo, Team Fortress, the Team Fortress logo,
// Opposing Force, Day of Defeat, the Day of Defeat logo, Counter-Strike, the
// Counter-Strike logo, Source, the Source logo, and Counter-Strike Condition
// Zero are trademarks and or registered trademarks of Valve Corporation.
// All other trademarks are property of their respective owners.
//
//=============================================================================

#ifndef USERCOMMON_H
#define USERCOMMON_H
#ifdef _WIN32
#pragma once
#endif



#define CLIENTUSER_INTERFACE_VERSION "CLIENTUSER_INTERFACE_VERSION001"
#define CLIENTGAMESERVER_INTERFACE_VERSION "CLIENTGAMESERVER_INTERFACE_VERSION001"

#define STEAMUSER_INTERFACE_VERSION_004 "SteamUser004"
#define STEAMUSER_INTERFACE_VERSION_005 "SteamUser005"
#define STEAMUSER_INTERFACE_VERSION_006 "SteamUser006"
#define STEAMUSER_INTERFACE_VERSION_007 "SteamUser007"
#define STEAMUSER_INTERFACE_VERSION_008 "SteamUser008"
#define STEAMUSER_INTERFACE_VERSION_009 "SteamUser009"
#define STEAMUSER_INTERFACE_VERSION_010 "SteamUser010"
#define STEAMUSER_INTERFACE_VERSION_011 "SteamUser011"
#define STEAMUSER_INTERFACE_VERSION_012 "SteamUser012"
#define STEAMUSER_INTERFACE_VERSION_013 "SteamUser013"
#define STEAMUSER_INTERFACE_VERSION_014 "SteamUser014"
#define STEAMUSER_INTERFACE_VERSION_015 "SteamUser015"
#define STEAMUSER_INTERFACE_VERSION_016 "SteamUser016"

// Callback values for callback ValidateAuthTicketResponse_t which is a response to BeginAuthSession
typedef enum EAuthSessionResponse
{
	k_EAuthSessionResponseOK = 0,							// Steam has verified the user is online, the ticket is valid and ticket has not been reused.
	k_EAuthSessionResponseUserNotConnectedToSteam = 1,		// The user in question is not connected to steam
	k_EAuthSessionResponseNoLicenseOrExpired = 2,			// The license has expired.
	k_EAuthSessionResponseVACBanned = 3,					// The user is VAC banned for this game.
	k_EAuthSessionResponseLoggedInElseWhere = 4,			// The user account has logged in elsewhere and the session containing the game instance has been disconnected.
	k_EAuthSessionResponseVACCheckTimedOut = 5,				// VAC has been unable to perform anti-cheat checks on this user
	k_EAuthSessionResponseAuthTicketCanceled = 6,			// The ticket has been canceled by the issuer
	k_EAuthSessionResponseAuthTicketInvalidAlreadyUsed = 7,	// This ticket has already been used, it is not valid.
	k_EAuthSessionResponseAuthTicketInvalid = 8,			// This ticket is not from a user instance currently connected to steam.
} EAuthSessionResponse;

// results from BeginAuthSession
typedef enum EBeginAuthSessionResult
{
	k_EBeginAuthSessionResultOK = 0,						// Ticket is valid for this game and this steamID.
	k_EBeginAuthSessionResultInvalidTicket = 1,				// Ticket is not valid.
	k_EBeginAuthSessionResultDuplicateRequest = 2,			// A ticket has already been submitted for this steamID
	k_EBeginAuthSessionResultInvalidVersion = 3,			// Ticket is from an incompatible interface version
	k_EBeginAuthSessionResultGameMismatch = 4,				// Ticket is not for this game
	k_EBeginAuthSessionResultExpiredTicket = 5,				// Ticket has expired
} EBeginAuthSessionResult;

typedef enum EAppUsageEvent
{
	k_EAppUsageEventGameLaunch = 1,
	k_EAppUsageEventGameLaunchTrial = 2,
	k_EAppUsageEventMedia = 3,
	k_EAppUsageEventPreloadStart = 4,
	k_EAppUsageEventPreloadFinish = 5,
	k_EAppUsageEventMarketingMessageView = 6,	// deprecated, do not use
	k_EAppUsageEventInGameAdViewed = 7,
	k_EAppUsageEventGameLaunchFreeWeekend = 8,
} EAppUsageEvent;

typedef enum ERegistrySubTree
{
	k_ERegistrySubTreeNews = 0,
	k_ERegistrySubTreeApps = 1,
	k_ERegistrySubTreeSubscriptions = 2,
	k_ERegistrySubTreeGameServers = 3,
	k_ERegistrySubTreeFriends = 4,
	k_ERegistrySubTreeSystem = 5,
	k_ERegistrySubTreeAppOwnershipTickets = 6,
	k_ERegistrySubTreeLegacyCDKeys = 7,
} ERegistrySubTree;

typedef enum ELogonState
{
	k_ELogonStateNotLoggedOn = 0,
	k_ELogonStateLoggingOn = 1,
	k_ELogonStateLoggingOff = 2,
	k_ELogonStateLoggedOn = 3
} ELogonState;

//-----------------------------------------------------------------------------
// Purpose: types of VAC bans
//-----------------------------------------------------------------------------
typedef enum EVACBan
{
	k_EVACBanGoldsrc,
	k_EVACBanSource,
	k_EVACBanDayOfDefeatSource,
} EVACBan;

typedef enum EUserHasLicenseForAppResult
{
	k_EUserHasLicenseResultHasLicense = 0,					// User has a license for specified app
	k_EUserHasLicenseResultDoesNotHaveLicense = 1,			// User does not have a license for the specified app
	k_EUserHasLicenseResultNoAuth = 2,						// User has not been authenticated
} EUserHasLicenseForAppResult;

// Enum for the types of news push items you can get
typedef enum ENewsUpdateType
{
	k_EAppNews = 0,	 // news about a particular app
	k_ESteamAds = 1, // Marketing messages
	k_ESteamNews = 2, // EJ's corner and the like
	k_ECDDBUpdate = 3, // backend has a new CDDB for you to load
	k_EClientUpdate = 4,	// new version of the steam client is available
} ENewsUpdateType;

typedef enum ESteamUsageEvent
{
	k_ESteamUsageEventMarketingMessageView = 1,
	k_ESteamUsageEventHardwareSurvey = 2,
	k_ESteamUsageEventDownloadStarted = 3,
	k_ESteamUsageEventLocalizedAudioChange = 4,
	k_ESteamUsageEventClientGUIUsage = 5,
	k_ESteamUsageEventCharityChoice = 6,
} ESteamUsageEvent;

typedef enum EClientStat
{
	k_EClientStatP2PConnectionsUDP = 0,
	k_EClientStatP2PConnectionsRelay = 1,
	k_EClientStatP2PGameConnections = 2,
	k_EClientStatP2PVoiceConnections = 3,
	k_EClientStatBytesDownloaded = 4,
	k_EClientStatMax = 5,
} EClientStat;

//-----------------------------------------------------------------------------
// Purpose: Marketing message flags that change how a client should handle them
//-----------------------------------------------------------------------------
typedef enum EMarketingMessageFlags
{
	k_EMarketingMessageFlagsNone = 0,
	k_EMarketingMessageFlagsHighPriority = 1 << 0,
	k_EMarketingMessageFlagsPlatformWindows = 1 << 1,
	k_EMarketingMessageFlagsPlatformMac = 1 << 2,

	//aggregate flags
	k_EMarketingMessageFlagsPlatformRestrictions = 
	k_EMarketingMessageFlagsPlatformWindows | k_EMarketingMessageFlagsPlatformMac,
} EMarketingMessageFlags;

typedef enum ENatDiscoveryTypes
{
	eNatTypeUntested = 0,
	eNatTypeTestFailed = 1,
	eNatTypeNoUDP = 2,
	eNatTypeOpenInternet = 3,
	eNatTypeFullCone = 4,
	eNatTypeRestrictedCone = 5,
	eNatTypePortRestrictedCone = 6,
	eNatTypeUnspecified = 7,
	eNatTypeSymmetric = 8,
	eNatTypeSymmetricFirewall = 9,
	eNatTypeCount = 10,
} ENatType;

typedef enum EPhysicalSocketConnectionResult
{
	PhysicalSocket_Unknown = 0,
	PhysicalSocket_IsRemoteSide = 1,
	PhysicalSocket_Connected = 2,
	PhysicalSocket_Failed = 3,
	PhysicalSocket_SignalingFailed = 4,
	PhysicalSocket_ResultCount = 5,
} EPhysicalSocketConnectionResult;

class CNatTraversalStat
{
public:
	EPhysicalSocketConnectionResult m_eResult;
	ENatDiscoveryTypes m_eLocalNatType;
	ENatDiscoveryTypes m_eRemoteNatType;
	bool m_bMultiUserChat : 1;
	bool m_bRelay : 1;
};

class CAmount
{
public:
	int m_nAmount;
	ECurrencyCode m_eCurrencyCode;
};

enum EMicroTxnAuthResponse
{
	k_EMicroTxnAuthResponseInvalid = 0,
	k_EMicroTxnAuthResponseAuthorize = 1,
	k_EMicroTxnAuthResponseDeny = 2,
	k_EMicroTxnAuthResponseAutoDeny = 3,
};

enum EMicroTxnAuthResult
{
	k_EMicroTxnAuthResultInvalid = 0,
	k_EMicroTxnAuthResultOK = 1,
	k_EMicroTxnAuthResultFail = 2,
	k_EMicroTxnAuthResultInsufficientFunds = 3,
};

enum ERequestAccountDataAction
{
	k_ERequestAccountDataActionFindAccountsByEmailAddress = 1,
	k_ERequestAccountDataActionFindAccountsByCdKey = 2,
	k_ERequestAccountDataActionGetNumAccountsWithEmailAddress = 3,
	//k_ERequestAccountDataActionIsAccountNameInUse = 4, // Only used internally
};

enum ESteamGuardProvider
{
	// TODO: Reverse this enum
};

enum EUserConnect
{
	// TODO: Reverse this enum
};

#pragma pack( push, 8 )
//-----------------------------------------------------------------------------
// Purpose: called when a connections to the Steam back-end has been established
//			this means the Steam client now has a working connection to the Steam servers
//			usually this will have occurred before the game has launched, and should
//			only be seen if the user has dropped connection due to a networking issue
//			or a Steam server update
//-----------------------------------------------------------------------------
struct SteamServersConnected_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 1 };
};

//-----------------------------------------------------------------------------
// Purpose: called when a connection attempt has failed
//			this will occur periodically if the Steam client is not connected, 
//			and has failed in it's retry to establish a connection
//-----------------------------------------------------------------------------
struct SteamServerConnectFailure_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 2 };

	EResult m_eResult;
};

//-----------------------------------------------------------------------------
// Purpose: called if the client has lost connection to the Steam servers
//			real-time services will be disabled until a matching SteamServersConnected_t has been posted
//-----------------------------------------------------------------------------
struct SteamServersDisconnected_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 3 };

	EResult m_eResult;
};

//-----------------------------------------------------------------------------
// Purpose: called when the client is trying to retry logon after being unintentionally logged off
//-----------------------------------------------------------------------------
struct OBSOLETE_CALLBACK BeginLogonRetry_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 4 };
};

//-----------------------------------------------------------------------------
// Purpose: Sent by the Steam server to the client telling it to disconnect from the specified game server,
//			which it may be in the process of or already connected to.
//			The game client should immediately disconnect upon receiving this message.
//			This can usually occur if the user doesn't have rights to play on the game server.
//-----------------------------------------------------------------------------
struct ClientGameServerDeny_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 13 };

	AppId_t m_uAppID;
	uint32 m_unGameServerIP;
	uint16 m_usGameServerPort;
	uint16 m_bSecure;
	uint32 m_uReason;
};

//-----------------------------------------------------------------------------
// Purpose: notifies the user that they are now the primary access point for chat messages
//-----------------------------------------------------------------------------
struct OBSOLETE_CALLBACK PrimaryChatDestinationSetOld_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 14 };
	uint8 m_bIsPrimary;
};

// See GSPolicyResponse_t in GameServerCommon.h for callback 115

//-----------------------------------------------------------------------------
// Purpose: called when the callback system for this client is in an error state (and has flushed pending callbacks)
//			When getting this message the client should disconnect from Steam, reset any stored Steam state and reconnect.
//			This usually occurs in the rare event the Steam client has some kind of fatal error.
//-----------------------------------------------------------------------------
struct IPCFailure_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 17 };
	enum EFailureType 
	{ 
		k_EFailureFlushedCallbackQueue, 
		k_EFailurePipeFail,
	};
	uint8 m_eFailureType;
};

struct LicensesUpdated_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 25 };
};

struct AppLifetimeNotice_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 30 };

	AppId_t m_nAppID;
	int32 m_nInstanceID;
	bool m_bExiting;
};

struct OBSOLETE_CALLBACK DRMSDKFileTransferResult_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 41 };

	EResult m_EResult;
};

//-----------------------------------------------------------------------------
// callback for BeginAuthSession
//-----------------------------------------------------------------------------
struct ValidateAuthTicketResponse_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 43 };

	CSteamID m_SteamID;
	EAuthSessionResponse m_eAuthSessionResponse;
};

//-----------------------------------------------------------------------------
// Purpose: called when a user has responded to a microtransaction authorization request
//-----------------------------------------------------------------------------
struct MicroTxnAuthorizationResponse_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 52 };

	uint32 m_unAppID;			// AppID for this microtransaction
	uint64 m_ulOrderID;			// OrderID provided for the microtransaction
	uint8 m_bAuthorized;		// if user authorized transaction
};

//-----------------------------------------------------------------------------
// Purpose: Result from RequestEncryptedAppTicket
//-----------------------------------------------------------------------------
struct EncryptedAppTicketResponse_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 54 };

	EResult m_eResult;
};

//-----------------------------------------------------------------------------
// callback for GetAuthSessionTicket
//-----------------------------------------------------------------------------
struct GetAuthSessionTicketResponse_t
{
	enum { k_iCallback = k_iSteamUserCallbacks + 63 };

	HAuthTicket m_hAuthTicket;
	EResult m_eResult;
};



// k_iClientUserCallbacks callbacks



struct SystemIM_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 1 };

	uint32 m_ESystemIMType;
	char m_rgchMsgBody[4096];
};

struct GuestPassGiftTarget_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 2 };

	uint32 m_unPackageID;
	uint64 m_ulSteamIDFriend;
	int32 m_iPotentialGiftTarget;
	int32 m_cPotentialGiftTargetsTotal;
	uint8 m_bValidGiftTarget;
};

struct PrimaryChatDestinationSet_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 3 };

	uint8 m_bIsPrimary;
	uint8 m_bWasPrimary;
};

// TODO: Add callback 904

struct LicenseChanged_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 5 };

	PackageId_t m_nPackageID;
};

struct RequestClientAppListInfo_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 6 };

	bool m_bMedia;
	bool m_bTools;
	bool m_bGames;
	bool m_bInstalled;
};

struct SetClientAppUpdateState_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 7 };

	uint64 m_ulJobIDToPostResultTo;
	AppId_t m_nAppID;
	bool m_bUpdate;
};

struct InstallClientApp_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 8 };

	uint64 m_ulJobIDToPostResultTo;
	AppId_t m_nAppID;
};

struct UninstallClientApp_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 9 };

	uint64 m_ulJobIDToPostResultTo;
	AppId_t m_nAppID;
};

//-----------------------------------------------------------------------------
// Purpose: called when the steam2 ticket has been set
//-----------------------------------------------------------------------------
struct OBSOLETE_CALLBACK Steam2TicketChanged_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 10 };
};

//-----------------------------------------------------------------------------
// Purpose: called when app news update is recieved
//-----------------------------------------------------------------------------
struct ClientAppNewsItemUpdate_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 11 };

	uint8 m_eNewsUpdateType;	// one of ENewsUpdateType
	uint32 m_uNewsID;			// unique news post ID
	uint32 m_uAppID;			// app ID this update applies to if it is of type k_EAppNews
};

//-----------------------------------------------------------------------------
// Purpose: steam news update
//-----------------------------------------------------------------------------
struct ClientSteamNewsItemUpdate_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 12 };

	uint8 m_eNewsUpdateType;	// one of ENewsUpdateType

	uint32 m_uNewsID;			// unique news post ID
	uint32 m_uHaveSubID;		// conditions to control if we display this update for type k_ESteamNews
	uint32 m_uNotHaveSubID;
	uint32 m_uHaveAppID;
	uint32 m_uNotHaveAppID;
	uint32 m_uHaveAppIDInstalled;
	uint32 m_uHavePlayedAppID;
};

//-----------------------------------------------------------------------------
// Purpose: steam cddb/bootstrapper update
//-----------------------------------------------------------------------------
struct ClientSteamNewsClientUpdate_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 13 };

	uint8 m_eNewsUpdateType;	// one of ENewsUpdateType
	uint8 m_bReloadCDDB;		// if true there is a new CDDB available
	uint32 m_unCurrentBootstrapperVersion;
	uint32 m_unCurrentClientVersion;
};

struct LegacyCDKeyRegistered_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 14 };

	EResult m_eResult;
	AppId_t m_iAppID;
	char m_rgchCDKey[ 64 ];
};

struct AccountInformationUpdated_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 15 };

	bool m_bEmailValidationAction;
};

struct GuestPassSent_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 16 };

	EResult m_eResult;
};

struct GuestPassAcked_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 17 };

	EResult m_eResult;

	PackageId_t m_unPackageID;

	GID_t m_gidGuestPassID;
	uint64 m_ulGuestPassKey;
};

struct GuestPassRedeemed_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 18 };

	EResult m_eResult;
	uint32 m_unPackageID;
};

struct UpdateGuestPasses_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 19 };

	EResult m_eResult;

	uint32 m_cGuestPassesToGive;
	uint32 m_cGuestPassesToRedeem;
};

struct LogOnCredentialsChanged_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 20 };
};

struct CheckPasswordResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 22 };

	EResult m_EResult;
};

struct ResetPasswordResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 23 };

	EResult m_EResult;
};

struct DRMDataRequest_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 24 };

	uint32 m_EResult;
	uint32 m_unAppID;
	bool m_bRestartApp;
};

struct DRMDataResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 25 };

	// TODO : Reverse this callback
};

struct DRMFailureResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 26 };

	// TODO : Reverse this callback
};

struct AppOwnershipTicketReceived_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 28 };

	AppId_t m_nAppID;
};

struct PasswordChangeResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 29 };

	EResult m_EResult;
};

struct EmailChangeResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 30 };

	EResult m_EResult;
	bool m_bFinal;
};

struct SecretQAChangeResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 31 };

	EResult m_EResult;
};

struct CreateAccountResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 32 };

	EResult m_EResult;
};

struct SendForgottonPasswordEmailResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 33 };

	EResult m_EResult;
};

struct ResetForgottonPasswordResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 34 };

	EResult m_EResult;
};

struct CreateAccountInformSteam3Response_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 35 };

	uint32 m_EResult;
};

struct DownloadFromDFSResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 36 };

	EResult m_EResult;

	char m_rgchURL[ 128 ];
};

struct ClientMarketingMessageUpdate_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 37 };
};

struct ValidateEmailResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 38 };

	uint32 m_EResult;
};

struct RequestChangeEmailResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 39 };

	uint32 m_EResult;
};

struct VerifyPasswordResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 40 };

	uint32 m_EResult;
};

struct Steam2LoginResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 41 };

	bool m_bSuccessful;
	uint32 m_steam2Error;
};

struct WebAuthRequestCallback_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 42 };
	
	bool m_bSuccessful;
	char m_rgchToken[512];
};

struct MicroTxnAuthRequestCallback_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 44 };

	GID_t m_gidTransID;
	AppId_t m_unAppID;
};

struct MicroTxnAuthResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 45 };

	EMicroTxnAuthResult m_eAuthResult;
};

struct AppMinutesPlayedDataNotice_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 46 };

	int32 m_nAppID;
};

struct MicroTxnInfoUpdated_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 47 };

	EResult m_eResult;
	GID_t m_gidTransID;
};

struct WalletBalanceUpdated_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 48 };
};

struct EnableMachineLockingResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 49 };

	uint32 m_EResult;
};

struct MachineLockProgressResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 50 };

	uint32 m_EResult;
};

struct Steam3ExtraLoginProgress_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 51 }; // Note sure

	uint32 m_EResult;
	int32 m_eState;
};

struct RequestAccountDataResult_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 52 };

	EResult m_EResult;
	uint32 m_cMatches;
	ERequestAccountDataAction m_eAction;
};

struct IsAccountNameInUseResult_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 53 };

	EResult m_EResult;
	char m_szAccountNameSuggestion1[64];
	char m_szAccountNameSuggestion2[64];
	char m_szAccountNameSuggestion3[64];
};

struct LoginInformationChanged_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 55 };

	// TODO : Reverse this callback
};

struct RequestSpecialSurveyResult_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 56 };

	int32 m_iSurveyID;
	EResult m_eResult;
	/*ESurveyState*/int32 m_eState; // 1 = denied, 4 = already complete
	char m_szName[256];
	char m_szCustomURL[512];
	bool m_bIncludeSoftware; 
	uint8 m_ubToken[16];
};

struct SendSpecialSurveyResponseResult_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 57 };

	int32 m_iSurveyID;
	EResult m_eResult;
	uint8 m_ubToken[16];
};

struct UpdateItemAnnouncement_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 58 };

	uint32 m_cNewItems;
};

struct ChangeSteamGuardOptionsResponse_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 59 };

	EResult m_eResult;
};

struct UpdateCommentNotification_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 60 };

	uint32 m_cNewComments;
	uint32 m_cNewCommentsOwner;
	uint32 m_cNewCommentsSubscriptions;
};

struct FriendUserStatusPublished_t
{
	enum { k_iCallback = k_iClientUserCallbacks + 61 };

	CSteamID m_steamIDFriend;
	AppId_t m_unAppID;
	char m_szStatus;
};

#pragma pack( pop )


#endif // USERCOMMON_H
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.