如何打开一个服务属性对话框 [英] how to open a service properties dialog
问题描述
我想在我的应用程序(前端服务)中添加一个按钮,它将打开服务属性对话框(如服务mmc snapin)。
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屋!