IWMSServer::get_DiagnosticEvents
Previous | Next |
IWMSServer::get_DiagnosticEvents
The get_DiagnosticEvents method retrieves an IWMSDiagnosticEvents interface that you can use to retrieve information about critical errors and warnings.
Syntax
HRESULT get_DiagnosticEvents( IWMSDiagnosticEvents** ppDiagEvents );
Parameters
ppDiagEvents
[out] Pointer to a pointer to an IWMSDiagnosticEvents interface.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
E_OUTOFMEMORY | 0x8007000E | Indicates that there is insufficient memory to complete the function. |
E_POINTER | 0x80004003 | Indicates that ppDiagEvents is a NULL pointer argument. |
Remarks
You can use the IWMSDiagnosticEvents collection interface to retrieve an IWMSDiagnosticEvent interface. You can use the latter to diagnose server configuration and plug-in status problems.
This method calls AddRef internally. To avoid memory leaks, you must call Release when you are finished using the interface.
Example Code
EXIT: // TODO: Release temporary COM objects and uninitialize COM.
Requirements
Header: wmsserver.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
Previous | Next |