# IRsModulePackage Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | GetModuleInstance ([out, retval] RtInstance *pInstance)
HRESULT | GetResourceInstance ([out, retval] RtInstance *pInstance)

## Detailed Description

Interface must be implemented by every plugin package.
Kernel uses this functionality for referencing and lookup of package resources and COM objects to call appropriate factory.

## Member Function Documentation

HRESULT IRsModulePackage::GetModuleInstance | ( | [out, retval] RtInstance * | pInstance | ) |

Returns the module HINSTANCE object

Returns:
  pInstance [out,retval] Returned instance handle.

HRESULT IRsModulePackage::GetResourceInstance | ( | [out, retval] RtInstance * | pInstance | ) |

Returns the resource HINSTANCE object.

Returns:
  pInstance [out,retval] Returned instance handle.