IWMSPlugin::get_ErrorCode
Previous | Next |
IWMSPlugin::get_ErrorCode
The get_ErrorCode method retrieves an HRESULT error code for the plug-in.
Syntax
HRESULT get_ErrorCode( long* pVal );
Parameters
pVal
[out] Pointer to a long value containing the HRESULT.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
E_POINTER | 0x80004003 | pVal is a NULL pointer argument. |
Remarks
This property is valid only if the bit flag is set to the value returned by the IWMSPlugin::get_Status method. The bit flag identifies the state of the plug-in.
You can use IWMSLoggingAdmin interface to record plug-in errors in the Windows event log. If the event log contains a WMS_EVENT_LOG_LEVEL_ERROR, the HRESULT specified in the IWMSLogginAdmin interface is returned by the get_ErrorCode method.
Example Code
// Release temporary COM objects. pPlugin->Release(); 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 |