Test 一下下

试看看~~~

  1. A
  2. B
  3. C

试一下代码...

  1 public class PostApplicationExitActivationProcess
  2     {
  3         /// <summary>
  4         /// The main entry point for the application.
  5         /// </summary>
  6         [STAThread]
  7         static void Main( string[] args)
  8         {
  9             if ( args.Length != 2 )
 10             {
 11                 return;
 12             }
 13
 14             Process processToWait = null;
 15             int pid = int.Parse( args[0] );
 16             string applicationId = args[1];
 17
 18             Mutex waitMutex = new Mutex( true, String.Format( CultureInfo.InvariantCulture,
 19                 "WaitApplication_{0}", applicationId ) );
 20
 21             waitMutex.WaitOne();
 22
 23             try
 24             {
 25                 processToWait = Process.GetProcessById( pid );
 26             }
 27             catch
 28             {
 29                 return;
 30             }
 31
 32             processToWait.WaitForExit();
 33
 34             // This will get the updater and perform all the pending updates automatically
 35             ApplicationUpdaterManager updater = ApplicationUpdaterManager.GetUpdater(applicationId);
 36             updater.ResumePendingUpdates();
 37
 38             waitMutex.ReleaseMutex();
 39
 40         }
 41     }

转载于:https://www.cnblogs.com/djshow/archive/2005/04/07/133244.html

This is A PostXing Test相关推荐

最新文章

  1. 算法的sound和complete
  2. 3.1线性判别函数【模式识别】
  3. C++ Primer 5th笔记(chap 16 模板和泛型编程)可变参数模板举例
  4. 打不开开php_(13)10个开源免费的PHP博客CMS
  5. 中文问好_直击/泷泽秀明秘访台!Hey! Say! JUMP也来了 亲切秀中文问好
  6. [bash] 打包某目录(可以是绝对路径)下的指定扩展名的文件
  7. javascript 西瓜一期 11 二进制的数数进位解析
  8. [译]时间自动机:语义,算法和工具
  9. php返回json数组元素,php生成返回json对象数组(json支持中文)
  10. iOS高仿微信悬浮窗、忍者小猪游戏、音乐播放器、支付宝、今日头条布局滚动效果等源码...
  11. 就地链表反转_数据结构与算法系列之链表操作全集(二)(GO)
  12. Linux下update和upgrade的区别
  13. Kubernetes持久化方案(PV、PVC、StorageClass)
  14. oracle 自定义比较函数
  15. 矩形窗、汉明窗、汉宁窗的频率响应图
  16. idea配置Idea类注释模板和方法注释模板(亲测有效)
  17. ACL'22 | 陈丹琦提出CoFi模型剪枝,加速10倍,精度几乎无损
  18. WMI遍历注册表(VBS编程)
  19. 【hbase】解决海量图片存储
  20. 图片用Adobe PDF打开后尺寸变大的问题解决

热门文章

  1. const与define相比优点_const与#define的区别、优点
  2. python和anaconda的区别_anaconda和python区别
  3. pipeline和java的区别_总结:四个Pipeline脚本式与声明式语法差异
  4. Linux中锚定符号的作用,Linux基础(9)文本处理三剑客之grep
  5. android上传本地图片到服务器上,Android使用post方式上传图片到服务器的方法
  6. linux内核添加c代码,如何从C代码加载Linux内核模块?
  7. 快来学习Redis 分布式锁的背后原理
  8. 火狐自定义字体失败 downloadable font: no supported format found
  9. Win10下VisualStudio2019安装及测试
  10. 1.(基于欧式距离聚类实现的点云分割)