TemplateControl.control

Attached is the TemplateControl.control manifest. TemplateControl.control

1

OptionsGui.py

1  # OptionsGui.py 2  #  GUI for modifying MDBG options 3   4  import sys 5  sys.LoadAssemblyByName("System.Windows.Forms") 6   7  from System import * 8  from System.Windows.Forms import * 9   10  # display a GUI view of the current MDBG options 11  def OptionsGui(): 12      guiWindow = OptionsGuiForm(Shell.Debugger.Options) 13      guiWindow.ShowDialog() 14   15   16  class OptionsGuiForm: 17      def __init__(self, options): 18          self.__options = options 19          self.__window = Form(Text = "MDbg Options", AutoSize =…

2

StateWindow.py

  1  # StateWindow.py  2  #   Display the threads, locals, and app domains of the processes being debugged  3    4  import sys  5  sys.LoadAssemblyByName(“System.Drawing”)  6  sys.LoadAssemblyByName(“System.Windows.Forms”)  7        8  from System.Drawing import *  9  from System.Windows.Forms import *10  11  # Display a tree with threads, locals, and app domains of the processes being debugged12  def StateWindow():    13      # create the parent tree14      tree = TreeView(Dock=DockStyle.Fill)15      CreateProcessNodes(tree, Shell.Debugger.Processes)16  17      # expand out the active thread, process, and frame18      activeFont = Font(tree.Font, FontStyle.Bold)19      for processNode…

2

MS.StrongNameSignatures.cs

1  using System;2  using System.Diagnostics;3  using System.Globalization;4  using System.IO;5  using MS.StrongName.Native;6  7  namespace MS.StrongName8  {9      /// <summary>10      ///     Class that exposes the managed StrongName API for dealing with signatures11      /// </summary>12      public static class Signatures13      {14          /// <summary>15          ///     Verify an assembly’s strong name16          /// </summary>17          /// <exception cref=”ArgumentNullException”>18          ///     If <paramref name=”signedAssembly”/> is null19          /// </exception>20          /// <exception cref=”ArgumentException”>21          ///     If <paramref name=”signedAssembly”/> is empty22          /// </exception>23          /// <exception cref=”InvalidOperationException”>24          ///     If verification could not complete25          /// </exception>26          /// <param…

0

MS.StrongNameKeyFile.cs

  1  using System;  2  using System.Diagnostics;  3  using System.Globalization;  4  using System.IO;  5  using System.Security;  6    7  namespace MS.StrongName  8  {  9      /// <summary>10      ///     KeyFile I/O methods11      /// </summary>12      public static class KeyFile13      {14          /// <summary>15          ///     Read a key out of a .snk file and into a byte array16          /// </summary>17          /// <exception cref=”ArgumentNullException”>18          ///     If <paramref name=”fileName”/> is null19          /// </exception>20          /// <exception cref=”InvalidOperationException”>21          ///     If the file could not be read22          /// </exception>23          /// <param name=”fileName”>Name of the file to read…

1

MS.StrongNameKeyStore.cs

1  using System;2  3  namespace MS.StrongName4  {5      /// <summary>6      ///     Key stores available for use7      /// </summary>8      public enum KeyStore9      {10          /// <summary>11          ///     Machine wide key store12          /// </summary>13          Machine,14  15          /// <summary>16          ///     Per-user key store17          /// </summary>18          User19      }20  }

0

MS.StrongNameKeys.cs

  1  using System;   2  using System.Diagnostics;   3  using System.Globalization;   4  using System.Runtime.InteropServices;   5  using System.Security;   6  using Microsoft.Win32;   7  using MS.StrongName.Native;   8     9  namespace MS.StrongName 10  { 11      /// <summary> 12      ///     Managed StrongName API to deal with key pairs, key containers, and public keys 13      /// </summary> 14      public static class Keys 15      { 16          /// <summary> 17          ///     Change the default key store for strong name operations 18          /// </summary>…

1

MS.StrongNameMS.StrongName.txt

1  BadFile=Invalid file specified: {0}2  BadOperation=Error completing operation: {0}3  CouldNotOpenMachineStoreKey=Could not open the strong name configuration key4  InternalError=Internal error processing request5  InvalidAssemblyName=Invalid assembly name: {0}6  InvalidKeyContainer=Invalid key container: {0}7  InvalidKeySize=Invalid key size specified8  InvalidKeyStore=Unknown key store specified9  NoAssembly=Assembly ‘{0}’ does not exist

0

MS.StrongNameRegistry.cs

1  using System;2  3  namespace MS.StrongName4  {5      /// <summary>6      ///     Constants for the configuraiton registry keys7      /// </summary>8      internal static class Registry9      {10          /// <summary>11          ///     Name of the registry key under HKLM where strong name settings are stored12          /// </summary>13          public const string ConfigurationKey = @”Software\Microsoft\StrongName”;14  15          /// <summary>16          ///     DWORD value that determines if the machine or user key store should be used17          /// </summary>18          public const string MachineKeySet = “MachineKeyset”;19      }20  }

0

MS.StrongNameUtility.cs

1  using System;2  using System.Diagnostics;3  using System.IO;4  using System.Security;5  using System.Runtime.InteropServices;6  using MS.StrongName.Native;7  8  namespace MS.StrongName9  {10      /// <summary>11      ///     General-purpose utility methods for use throughout12      /// </summary>13      internal static class Utility14      {15          /// <summary>16          ///     Get an error message for the last error in the SNAPI17          /// </summary>18          /// <returns>Error message</returns>19          internal static string GetLastStrongNameError()20          {21              Exception error = Marshal.GetExceptionForHR(NativeMethods.StrongNameErrorInfo());22              Debug.Assert(error != null, “No mapping between strong name error info, and HRESULT”);23              return error.Message;24          }25      }26  }

0