打开control panel\administrative tools\component services
可以看到my computer\COM+ Applications我的问题是怎样才能知道某个application是否处于running状态,需要程序来做。怎么拿到这些application的方法在msdn里面有:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/htm/pgadminobjectstoplevel_959v.asp我就是找不到怎么看是否running
当然,需要在win2000做,不考虑那些只能在xp以上使用的属性,多谢大侠!
可以看到my computer\COM+ Applications我的问题是怎样才能知道某个application是否处于running状态,需要程序来做。怎么拿到这些application的方法在msdn里面有:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/htm/pgadminobjectstoplevel_959v.asp我就是找不到怎么看是否running
当然,需要在win2000做,不考虑那些只能在xp以上使用的属性,多谢大侠!
COMAdminCatalog.ServiceCheck [Visual Basic] [C/C++]
The ServiceCheck method returns the current status of a COM+ service. [C/C++]
Syntax
HRESULT ServiceCheck(
long lService,
long * plStatus
);
Parameters
lService
[in] A long representing the service for which status is checked. See Res for service flags.
plStatus
[out] Reference to a long holding the status for the indicated service. See Res for service status flags.
Return Values
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following: S_OK
Method completed successfully. [Visual Basic]
Syntax
Function ServiceCheck( _
ByVal lService As Long _
) As Long
Parameters
lService
[in] A Long representing the service for which status is checked. See Res for service flags.
Return Values
The method returns a Long holding the status for the indicated service. See Res for service status flags.Res
The service option flags that can be used with ServiceCheck are listed in the following table.Option Value Description
COMAdminServiceLoadBalanceRouter 1 Component load balancing service. The status option flags that can be returned with ServiceCheck are listed in the following table.Option Value Description
COMAdminServiceStopped 0 Service is currently stopped.
COMAdminServiceStartPending 1 Service is due to start up.
COMAdminServiceStopPending 2 Service is due to stop.
COMAdminServiceRunning 3 Service is running normally.
COMAdminServiceContinuePending 4 Service is due to continue.
COMAdminServicePausePending 5 Service is due to pause.
COMAdminServicePaused 6 Service is currently paused.
COMAdminServiceUnknownState 7 Service status is unknown. In MSDN 2003