Hyperion
Founder
A quick, semi pointless snip of a steam username grabber. Looks in registry.. could probably make it return a saved password
(Untested in C++)
the .h:
[cpps]
using namespace System;
using namespace Microsoft::VisualBasic:evices;
private ref class ModuleSteam
{
public:
static String ^getsname();
};
[/cpps]
the .cpp:
[cpps]
using namespace System;
using namespace Microsoft::VisualBasic:evices;
String ^ModuleSteam::getsname()
{
Computer ^comp = gcnew Computer();
String ^spath = safe_cast<String^>(comp->Registry->GetValue("HKEY_CURRENT_USER\\SOFTWARE\\Valve\\Steam", "SteamPath", ""));
String ^confpath = spath + "\\config\\SteamAppData.vdf";
array<String^> ^suser = comp->FileSystem.ReadAllText(confpath)->Split(gcnew array<String^> { "''" }, StringSplitOptions::None);
if (suser[9] != "")
{
suser[9] = suser[9];
return suser[9];
}
else
return "No Steam Found";
}
[/cpps]
(Untested in C++)
the .h:
[cpps]
using namespace System;
using namespace Microsoft::VisualBasic:evices;
private ref class ModuleSteam
{
public:
static String ^getsname();
};
[/cpps]
the .cpp:
[cpps]
using namespace System;
using namespace Microsoft::VisualBasic:evices;
String ^ModuleSteam::getsname()
{
Computer ^comp = gcnew Computer();
String ^spath = safe_cast<String^>(comp->Registry->GetValue("HKEY_CURRENT_USER\\SOFTWARE\\Valve\\Steam", "SteamPath", ""));
String ^confpath = spath + "\\config\\SteamAppData.vdf";
array<String^> ^suser = comp->FileSystem.ReadAllText(confpath)->Split(gcnew array<String^> { "''" }, StringSplitOptions::None);
if (suser[9] != "")
{
suser[9] = suser[9];
return suser[9];
}
else
return "No Steam Found";
}
[/cpps]
Last edited: