NdrDllCanUnloadNow function (rpcproxy.h)

The NdrDllCanUnloadNow function determines whether the DLL that implements the proxy and stub is still in use. If not, the caller can safely unload the DLL from memory.

Syntax

HRESULT NdrDllCanUnloadNow(
  [in] CStdPSFactoryBuffer *pPSFactoryBuffer
);

Parameters

[in] pPSFactoryBuffer

Pointer to the CStdPSFactoryBuffer object. The pointer is contained in the global variable, gPFactory, defined in RpcProxy.h.

Return value

Returns S_OK if the DLL can be unloaded. Otherwise, it returns S_FALSE if the DLL cannot be unloaded.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcproxy.h
Library Rpcrt4.lib
DLL Rpcrt4.dll