-
C#启动Windows IIS服务的实例
C#启动指定的Windows信使服务,本例中是启动IIS服务,在Windows XP下可完美运行,在Windows7下不行好像,本程序演示如何在C#的程序中启动一个指定的Windows内置服务的方法。具体的实现代码:
ServiceController service = new ServiceController();//创建服务控制对象
service.ServiceName = "Messenger";//启动Windows信史服务
//判断当前服务状态
if (service.Status == ServiceControllerStatus.Stopped)
{
try
{
service.Start();// 启动服务
service.WaitForStatus(ServiceControllerStatus.Running);
}
catch (InvalidOperationException)
{
MessageBox.Show("不能启动该服务!");
}
}
- 2022-02-13 12:56:43下载
- 积分:1
-
E_Learning
说明: E learning management system for university
- 2019-04-08 02:46:22下载
- 积分:1
-
用vrml编写,建立的一个比较精细的蜘蛛模型
用vrml编写,建立的一个比较精细的蜘蛛模型-Vrml by the development, set up a more sophisticated model of the spider
- 2022-09-25 11:55:03下载
- 积分:1
-
编程创建一个Box类,在其中定义三个变量表示一个立方体的长、宽和高,再定义一个方法setDemo对这三个变量进行初始化,然后定义一个方法求立方体的体积。创建一个...
编程创建一个Box类,在其中定义三个变量表示一个立方体的长、宽和高,再定义一个方法setDemo对这三个变量进行初始化,然后定义一个方法求立方体的体积。创建一个对象,求给定尺寸的立方体的体积。对这个内容的编程代码及结果实现-Programming to create a Box class, in which the three variables that define a cube of length, width and height, and then define a method setDemo these three variables initialized, and then define a method, to calculate the volume of the cube. Create an object, seeking for a given volume of the cube size. The content of this programming code and the results achieved
- 2022-08-22 19:27:02下载
- 积分:1
-
Delphi ShellExecuteHook 源码示例
Delphi ShellExecuteHook 源码示例,添加Url执行挂钩,释放资源到文件,定位资源,锁定内存,建立文件,写入文件,添加Hook,URL 执行挂钩 作者:By 麻子。
- 2023-09-02 06:30:04下载
- 积分:1
-
3065285_43964545
103规约测试教程,希望大家喜欢哦。。。(The 103 statute of the test.)
- 2012-12-13 21:31:01下载
- 积分:1
-
meshage
模拟了正弦光栅及其傅里叶空间频谱,可以调节其空间频率,看到其傅里叶谱的变化过程(Simulating a sinusoidal grating and its spatial spectrum using matlab)
- 2020-07-02 05:00:02下载
- 积分:1
-
107 网口笔记
使用STM32F407进行以太网通信,并涉及到数据链路层的工业以太网通信,使用LWIP协议栈(STM32F407 is used for Ethernet communication, which involves industrial Ethernet communication in data link layer, and LWIP protocol stack is used.)
- 2019-07-02 19:32:18下载
- 积分:1
-
2D-0-Gen-Info
说明: DUCUMENT PLAXIS UTILISATION
- 2019-02-26 04:40:12下载
- 积分:1
-
graphic image processing operations as the original code can provide learners ex...
图形图象处理作业原代码 可以为学习者提供实验小程序-graphic image processing operations as the original code can provide learners experimental procedure
- 2022-11-05 22:55:03下载
- 积分:1