点击或拖拽改变大小

AdvApiEnumServicesStatus 方法

Sweet 开发框架

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <summary> 文档]

命名空间:  Sweet.Common.Win32
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static int EnumServicesStatus(
	IntPtr hSCManager,
	int dwServiceType,
	int dwServiceState,
	ref ENUM_SERVICE_STATUS lpServices,
	int cbBufSize,
	ref int pcbBytesNeeded,
	ref int lpServicesReturned,
	ref int lpResumeHandle
)

参数

hSCManager
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="hSCManager"/> 文档]

dwServiceType
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="dwServiceType"/> 文档]

dwServiceState
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="dwServiceState"/> 文档]

lpServices
类型:Sweet.Common.Win32ENUM_SERVICE_STATUS

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="lpServices"/> 文档]

cbBufSize
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="cbBufSize"/> 文档]

pcbBytesNeeded
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="pcbBytesNeeded"/> 文档]

lpServicesReturned
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="lpServicesReturned"/> 文档]

lpResumeHandle
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <param name="lpResumeHandle"/> 文档]

返回值

类型:Int32

[缺少 "M:Sweet.Common.Win32.AdvApi.EnumServicesStatus(System.IntPtr,System.Int32,System.Int32,Sweet.Common.Win32.ENUM_SERVICE_STATUS@,System.Int32,System.Int32@,System.Int32@,System.Int32@)" 的 <returns> 文档]

参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架