Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. public partial class DebuggerExtensions
  2. {
  3.     [DllExport("Help")]
  4.     public static void Help(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
  5.     {
  6.         OnHelp(client, args);
  7.     }
  8.  
  9.    [DllExport("help")]
  10.    public static void help(IntPtr client, [MarshalAs(UnmanagedType.LPStr)] string args)
  11.    {
  12.         OnHelp(client, args);
  13.    }
  14.  
  15.     const string _help = "...";
  16.     const string _tksHelp = "...";
  17.  
  18.     private static void OnHelp(IntPtr client, string args)
  19.     {
  20.         // Must be the first thing in our extension.
  21.         if (!InitApi(client))
  22.             return;
  23.  
  24.         string command = args;
  25.  
  26.         if (args != null)
  27.             command = args.ToLower();
  28.  
  29.         switch (command)
  30.         {
  31.             case "tks":
  32.             case "tkstate":
  33.                 Console.WriteLine(_tksHelp);
  34.             break;
  35.  
  36.             default:
  37.                 Console.WriteLine(_help);
  38.             break;
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement