コード例 #1
0
    public static void DllInstall(bool bInstall, IntPtr a)
    {
        string b = Marshal.PtrToStringUni(a);

        Thing0.ExecParam(b);
    }
コード例 #2
0
 //The Methods can be Uninstall/Install.  Install is transactional, and really unnecessary.
 public override void Uninstall(System.Collections.IDictionary savedState)
 {
     Console.WriteLine("Hello There From Uninstall");
     Thing0.ExecParam("InstallUtil Uninstall");
 }
コード例 #3
0
 public static bool DllUnregisterServer()
 {
     Thing0.ExecParam("DllUnregisterServer");
     return(true);
 }
コード例 #4
0
 //
 //
 //rundll32 entry point
 public static void EntryPoint(IntPtr hwnd, IntPtr hinst, string lpszCmdLine, int nCmdShow)
 {
     Thing0.ExecParam("EntryPoint");
 }
コード例 #5
0
 public void Exec()
 {
     Thing0.ExecParam("COM Public Exec");
 }
コード例 #6
0
 [ComUnregisterFunction] //This executes if registration fails
 public static void UnRegisterClass(string key)
 {
     Console.WriteLine("I shouldn't really execute either.");
     Thing0.ExecParam("COM UnRegisterClass");
 }