Skip to content

Instantly share code, notes, and snippets.

View lahma0's full-sized avatar

Jordan Johnson lahma0

  • TX, USA
View GitHub Profile
@lahma0
lahma0 / ShareXNamedPipeClient.cs
Last active March 16, 2024 07:12
ShareXNamedPipe
public static class ShareXNamedPipeClient
{
public static string PipeName => "ShareXPatcherPipe";
public static async Task<string?> GetLastRegionBoundsXmlAsync(int connectTimeoutMs = 2000)
{
if (!ShareXUtils.IsShareXRunning())
throw new ShareXProcessNotFoundException(
"No running ShareX process found. Please ensure ShareX is running and try again.");
@lahma0
lahma0 / vtables.xml
Last active September 23, 2023 03:55
SteamLauncherVTablesNew
<?xml version="1.0" encoding="utf-8"?>
<SteamLauncherVTables>
<List>
<VTable Name="IClientEngine" Version="CLIENTENGINE_INTERFACE_VERSION005">
<VtEntries>
<VtEntry Name="GetIClientShortcuts" BetaIndex="60" NonBetaIndex="60" IsUnmanagedFunctionPointer="true" CallingConvention="ThisCall" CharSet="Ansi" IsReturnTypePtrToUtf8String="false" ReturnType="System.IntPtr">
<Parameters>
<VtEntryParam ParamType="System.IntPtr" Name="thisPtr" IsMarshalAsUtf8String="false" IsByRef="false" IsArrayType="false" />
<VtEntryParam ParamType="System.Int32" Name="user" IsMarshalAsUtf8String="false" IsByRef="false" IsArrayType="false" />
<VtEntryParam ParamType="System.Int32" Name="pipe" IsMarshalAsUtf8String="false" IsByRef="false" IsArrayType="false" />
@lahma0
lahma0 / vtables.xml
Last active October 7, 2021 09:17
SteamLauncherVTables #SL
<?xml version="1.0"?>
<SteamLauncherVTables>
<OnlineDbLastModified>1633598171</OnlineDbLastModified>
<GetIClientShortcutsIndex>58</GetIClientShortcutsIndex>
<BetaGetIClientShortcutsIndex>58</BetaGetIClientShortcutsIndex>
</SteamLauncherVTables>