Example: lrc_Release_Object
In the following example, the lrc_Release_Object function releases one instance of the specified interface, IUnknown_0.
{
GUID pClsid = lrc_GUID("FRS.Login");
IUnknown * pUnkOuter = (IUnknown*)NULL;
unsigned long dwClsContext = lrc_ulong("5");
GUID riid = IID_IUnknown;
lrc_CoCreateInstance(&pClsid, pUnkOuter, dwClsContext, &riid, (void**)&IUnknown_0, CHECK_HRES);
}
lrc_Release_Object((IUnknown*)IUnknown_0);