-dev -console
log_ipc verbose < .exe>
auto *Utils = (ISteamUtils001 *)Client->GetISteamUtils(pipe,STEAMUTILS_INTERFACE_VERSION_001); auto *Apps = (ISteamApps004 *)Client->GetISteamApps(user,pipe,STEAMAPPS_INTERFACE_VERSION_004);
AppId_t l4d(500);
int PurchaseTime = Apps->GetEarliestPurchaseUnixTime(l4d); int time = Utils->GetServerRealTime();
time_t rawtime = time; time_t Ptime = PurchaseTime; struct tm timeinfo; char timebuf[32]; localtime_s( &timeinfo,&rawtime ); asctime_s (timebuf,32,&timeinfo); printf( "%s \n", timebuf ); localtime_s( &timeinfo,&Ptime); asctime_s (timebuf,32,&timeinfo); printf( "%s \n", timebuf);
Sat Nov 10 09:51:15 2012 Sat Nov 22 17:03:45 2008
CSteamID curID; int friendcount = Friends->GetFriendCount(); for(int i = 0; i < friendcount; i++) { curID = Friends13->GetFriendByIndex(i, k_EFriendFlagAll); printf("%s - %llu\n", Friends->GetFriendPersonaName(curID), curID.ConvertToUint64()); } system("pause");
:REC: FabZen - 765611979787897xx DrLuke - 765611979853980xx [EM] Cooler_sk - 765611979862334xx Maryus - 765611979878419xx vorram - 765611979915317xx 0nb0ard - 765611979922297xx ..........
CallbackMsg_t callBack; while (!GetAsyncKeyState(VK_ESCAPE)) { Sleep(1); if ( Steam_BGetCallback( pipe, &callBack ) ) { if(callBack.m_iCallback == FriendChatMsg_t::k_iCallback) { FriendChatMsg_t *pFriendMessageInfo = (FriendChatMsg_t *)callBack.m_pubParam; EChatEntryType eMsgType; char szData[k_cchFriendChatMsgMax]; memset(szData, 0, k_cchFriendChatMsgMax); Friends->GetChatMessage(pFriendMessageInfo>m_ulSenderID,pFriendMessageInfo>m_iChatID, szData,sizeof(szData),&eMsgType); if (eMsgType == k_EChatEntryTypeChatMsg || k_EChatEntryTypeEmote) { if (strcmp(szData, "hello") == 0 && (pFriendMessageInfo->m_ulSenderID != User->GetSteamID())){ Friends->SendMsgToFriend(pFriendMessageInfo->m_ulFriendID,k_EChatEntryTypeChatMsg,"hello my friend",22); Steam_FreeLastCallback(pipe); ExitProcess(0); } } } Steam_FreeLastCallback(pipe); } }
if (callbackMsg.m_iCallback == TradeInviteReceived_t::k_iCallback) { TradeInviteReceived_t* pTradeInviteReceived = (TradeInviteReceived_t*) callbackMsg.m_pubParam; printf("Trade from %s, ID %u\n", pTradeInviteReceived->m_steamIDPartner.SteamRender(), pTradeInviteReceived->m_unTradeRequestID); // Trade . }
Source: https://habr.com/ru/post/158119/