Share this page

# 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);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: