如何打开一个服务的属性对话框 [英] how to open a service properties dialog
问题描述
我想一个按钮添加到我的应用程序(前端服务),将打开该服务的属性对话框(如在服务MMC管理单元)为我服务。
I would like to add a button to my application ( frontend to a service) that will open the service properties dialog (like in services mmc snapin ) for my service.
有许多例子来打开文件属性,但是这不是我想要的。我不知道从哪里开始。
There are numerous examples to open file properties, but that is not what i want. i dont know where to start.
推荐答案
根据离的SERVICES.MSC
,页面来自 filemgmt.dll
,被称为 ServicePageGeneral
。虽然COM组件注册,我找不到相关CLSID的任何文件,也没有任何存在的 filemgmt.dll
其他字符串。
Based off of the services.msc
, the page comes from filemgmt.dll
and is called ServicePageGeneral
. While the COM components are registered, I cannot find any documentation for the CLSID in question, nor for any of the other strings present in filemgmt.dll
.
这不排除存在一个既定的API,或命令行选项来显示的对话框中,但我肯定不能找到一个。
This does not rule out the possibility that there exists an established API, or a command line option to show the dialog, but I certainly can't find one.
进一步证实该对话框是不能重复使用的情况下,的Process Explorer 和SQL Server配置管理器都重新导入对话框,而不是显示在 SERVICES.MSC
版本。
Further substantiating the case that the dialog is not reusable, Process Explorer and SQL Server Configuration Manager both re-implement the dialog, rather than showing the services.msc
version.
这篇关于如何打开一个服务的属性对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!