This documentation is archived and is not being maintained.

How to: Use WMI Object Methods

Speech Server 2007

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Windows Management Instrumentation (WMI) object methods are used to perform actions on Speech Server objects.

You can use the methods of the MSS and LogSettings WMI classes in the MSS Class and LogSettings Class to perform actions on Speech Server objects.

Additional service-related methods are provided in the WMI component of the Microsoft Windows operating system and documented in the Windows Platform Software Development Kit (SDK). For more information, see the Win32_Service WMI class.

Methods can be synchronous or asynchronous. Synchronous methods take control of a thread while the method executes. Most methods are synchronous. Synchronous methods are easier to write and use, but if they do not finish immediately they can block an application. Asynchronous methods return control to the thread that called them, while they execute on another thread. The advantage to using asynchronous methods is that program flow can continue while a time-consuming operation is under way on another thread. The disadvantage is that there needs be a way to determine when the method is complete. All Speech Server object methods are asynchronous.

  • Use event notifications, or look at the server state in the Speech Server Administrator console, to determine whether a method such as StartService or StopService is complete.