예제 #1
0
 public void ShowFirstInstance()
 {
     WindowApiHelper.PostMessage((IntPtr)WindowApiHelper.HWND_BROADCAST, WM_SHOWFIRSTINSTANCE, IntPtr.Zero, IntPtr.Zero);
 }
예제 #2
0
 public SingleInstanceHelper()
 {
     WM_SHOWFIRSTINSTANCE = WindowApiHelper.RegisterWindowMessage("WM_SHOWFIRSTINSTANCE|{0}", AssemblyIdentifier());
 }