IWMSPlugin::put_LoadType
Previous | Next |
IWMSPlugin::put_LoadType
The put_LoadType method specifies a value determining how the server should load this plug-in.
Syntax
HRESULT put_LoadType( WMS_PLUGIN_LOAD_TYPE val );
Parameters
val
[in] Member of a WMS_PLUGIN_LOAD_TYPE enumeration type indicating how a plug-in is loaded. This must be one of the following values.
Value | Description |
WMS_PLUGIN_LOAD_TYPE_UNSPECIFIED | The server determines whether to load the plug-in as an in-process or out-of-process object. |
WMS_PLUGIN_LOAD_TYPE_IN_PROC | The plug-in is loaded as an in-process object. |
WMS_PLUGIN_LOAD_TYPE_OUT_OF_PROC | The plug-in is loaded as an out-of-process object. |
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
NS_E_UNSUPPORTED_LOAD_TYPE | 0xC00D1453L | The load type indicated by val is not supported by the plug-in. |
Remarks
If you set this property to WMS_PLUGIN_LOAD_TYPE_UNSPECIFIED, the server loads plug-ins as in-process objects. However, if the UnsupportedLoadType property of a plug-in specifies that it cannot be loaded in-process, the plug-in will be loaded out-of-process.
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 |