Share via


IWMSPlugin::get_LoadType

banner art

Previous Next

IWMSPlugin::get_LoadType

The get_LoadType method retrieves an enumeration value that indicates whether the server loads authentication, event notification, and authorization plug-ins as in-process or out-of-process objects.

Syntax

  HRESULT get_LoadType(
  WMS_PLUGIN_LOAD_TYPE*  pVal
);

Parameters

pVal

[out] Pointer to a member of a WMS_PLUGIN_LOAD_TYPE enumeration type. 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
E_POINTER 0x80004003 pVal is a NULL pointer argument.

Remarks

If this property is set 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