private static IntPtr HGetModuleHandle(string lpModuleName) { //Spams Steam's VR related module handles //Console.WriteLine($"GetModuleHandle is being called to get module handle of: {lpModuleName}"); return(dEngine.CallOriginal <IntPtr>(originalInstance, new object[] { lpModuleName })); }
private static IntPtr HLoadLibrary([MarshalAs(UnmanagedType.LPStr)] string lpFileName) { //Heuristic actions... Console.WriteLine($"LoadLibrary is being called to load: {lpFileName}"); return(dEngine.CallOriginal <IntPtr>(originalInstance, new object[] { lpFileName })); }
private static bool HSetWindowTextA(IntPtr hwnd, string lpString) { Console.WriteLine($"SetWindowTextA is being called to set window to: {lpString}"); return(DEngine.CallOriginal <bool>(OriginalInstance, new object[] { hwnd, lpString })); }
private static bool HLoadLibraryA(string lpFileName) { Console.WriteLine($"LoadLibraryA is being called to load: {lpFileName}"); return(DEngine.CallOriginal <bool>(OriginalInstance, new object[] { lpFileName })); }