Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class DebuggerExtensions
- {
- [DllExport("Help")]
- public static void Help(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
- {
- OnHelp(client, args);
- }
- [DllExport("help")]
- public static void help(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
- {
- OnHelp(client, args);
- }
- const string _help = "...";
- const string _tksHelp = "...";
- private static void OnHelp(IntPtr client, string args)
- {
- // Must be the first thing in our extension.
- if (!InitApi(client))
- return;
- string command = args;
- if (args != null)
- command = args.ToLower();
- switch (command)
- {
- case "tks":
- case "tkstate":
- Console.WriteLine(_tksHelp);
- break;
- default:
- Console.WriteLine(_help);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement