First do SteamAPI_Init(), then SteamUser() and with that object you can call ISteamUser::GetSteamID(). Don't forget to clean up via SteamAPI_Shutdown() :) The user must be logged into Steam though.
On Mon, Jan 4, 2010 at 2:23 PM, Michael Bang <[email protected]> wrote: > > I'm sorry - I read it through again, and I can see that it's not properly > explained :-) > > I'm trying to read a users current SteamID, without any game being open. > > Earlier, I used the Steam.log file in the steam folder, to read the ID from, > but that was not reliable, since it does not update everytime the user logs > into a new Steam account. > > So I'm asking if there is a way to get the users SteamID, from the reg. > database, from another log, or if there is a way to force steam to update the > Steam.log-file. > >> Date: Mon, 4 Jan 2010 14:15:12 +0100 >> From: [email protected] >> To: [email protected] >> Subject: Re: [hlcoders] How to find SteamID >> >> What? >> >> Anyways, you can obtain it via >> CSteamID ID; >> ToBaseMultiplayerPlayer( pPlayer )->GetSteamID( &ID ); >> I'm not sure how to parse it correctly, but you can obtain the >> Community ID via ID.ConvertToUint64(); >> >> On Mon, Jan 4, 2010 at 12:57 PM, Adem Sadiku <[email protected]> wrote: >> > stop fucking begging me aight >> > >> > -------------------------------------------------- >> > From: "Michael Bang" <[email protected]> >> > Sent: Monday, January 04, 2010 12:47 >> > To: <[email protected]> >> > Subject: [hlcoders] How to find SteamID >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> Hi there, >> >> >> >> I'm wondering if there is a reliable way to find a users current SteamID, >> >> without having to type status in the console, while being connected to an >> >> online game? >> >> >> >> So >> >> far I've been reading the Steam.log-file, to find the SteamID, but I >> >> found out that it's not very reliable. It doesn't update everytime I >> >> log on to a new account. >> >> Is there any way to force steam to update the file, or even better - >> >> another place to find the ID? >> >> >> >> Thanks >> >> >> >> _________________________________________________________________ >> >> Word Up! Få opdateringer fra Facebook og Arto i din Messenger. Gør det >> >> her! >> >> http://www.microsoft.com/danmark/windows/windowslive/import-friends/ >> >> _______________________________________________ >> >> To unsubscribe, edit your list preferences, or view the list archives, >> >> please visit: >> >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> >> >> >> > >> > _______________________________________________ >> > To unsubscribe, edit your list preferences, or view the list archives, >> > please visit: >> > http://list.valvesoftware.com/mailman/listinfo/hlcoders >> > >> > >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> > > _________________________________________________________________ > NY Windows Live Messenger med nye fede funktioner. Hent den her! > http://download.live.com/messenger > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

