-
有源码事例,还有说明.一看就明白,
一,把"HGB.dll"和"hgbguanligongcheng.dll"复制到系统文件夹"WINDOWSsystem3...
有源码事例,还有说明.一看就明白,
一,把"HGB.dll"和"hgbguanligongcheng.dll"复制到系统文件夹"WINDOWSsystem32"下.
二,新建一VB标准EXE,在"工程引用"下点击浏览把"WINDOWSsystem32"下的"hgbguanligongcheng.dll"
引用进来.
三,在窗体里声明一个对象变量yy
Dim yy As New hgbguanlimokuai
再在任一事件下引用YY里的函数过程
i = yy.chongqi() 本过程执行重启动计算机,无返回值
ii=yy.guanji() 本过程执行关闭计算机,无返回值
iii=yyy.huoquan() 本过程执行获得计算机管理权,成功返回1,失败返回0
注意: 生成exe文件在别的机上运行时要把两个DLL文件复制到系统文件夹"WINDOWSsystem32"下,.因为exe
文件在运行时会用到那两个DLL.
解释:
"hgbguanligongcheng.dll"文件里面有"hgbguanlimokuai"模块
"hgbguanlimokuai"模块里面有三个函数过程chongqi(),guanji(),huoquan()
我们声明YY为"hgbguanlimokuai"模块就等于在工程里加入了一个模块当然就能
在任何其他事件引用模块里的函数过程.-a source examples, there are shows. See at a, a, "HGB.dll" and "hgbguanligongcheng.dll" copied to the System folder " WINDOWS system32". 2, a new standard EXE VB. "works quote" Click here " WINDOWS system32" under the "hgbg uanligongcheng.dll
- 2022-02-02 07:16:06下载
- 积分:1
-
an initialization sequence stack, drawing up a stack elements and elements of a...
初始化一个顺序栈,编制实现入栈一个元素和出栈一个元素的程序。-an initialization sequence stack, drawing up a stack elements and elements of a stack up procedures.
- 2022-02-01 13:54:46下载
- 积分:1
-
jsp Video Guide, maintain the previous courses. We have to do it quickly under.
jsp视频教程,接续上次的课程。大家要下就快点。-jsp Video Guide, maintain the previous courses. We have to do it quickly under.
- 2022-11-18 09:15:04下载
- 积分:1
-
linux下的Qt编程源程序,此程序将实现动态显示字符,并不断改变颜色...
linux下的Qt编程源程序,此程序将实现动态显示字符,并不断改变颜色-the Qt programming source, this procedure will achieve dynamic display characters, and changing colors
- 2022-05-08 07:06:36下载
- 积分:1
-
Elman神经网络
基于Elman神经网络的预测程序,可用于电力系统短期负荷预测 -Elman neural network-based forecasting process, can be used for short-term load forecasting of power system
- 2022-01-31 16:41:00下载
- 积分:1
-
管理系统
管理系统- Management system management system
- 2022-07-09 10:49:32下载
- 积分:1
-
用Wilson方法计算结构动力反应(无阻尼)
用Wilson方法计算结构动力反应(无阻尼)-Wilson calculated using the structure of dynamic response (without damping)
- 2022-08-15 16:59:35下载
- 积分:1
-
enumeration of computer LAN
枚举局域网内的计算机-enumeration of computer LAN
- 2023-08-09 19:15:03下载
- 积分:1
-
序列的离散付氏变换(根据定义),含绘图程序,可以看到图形结果...
序列的离散付氏变换(根据定义),含绘图程序,可以看到图形结果-sequence of discrete Fourier transform (by definition), including mapping procedures, we can see the results Graphics
- 2022-01-26 05:30:20下载
- 积分:1
-
本源程序是模拟飞船着陆的游戏,有一定的趣味行~!
本源程序是模拟飞船着陆的游戏,有一定的趣味行~!-the source of the spacecraft landing simulation of the game, have a fun trip ~!
- 2022-05-26 07:55:47下载
- 积分:1