NdrDllCanUnloadNow function
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
RPCRTAPI HRESULT RPC_ENTRY NdrDllCanUnloadNow( _In_ CStdPSFactoryBuffer *pPSFactoryBuffer );
Parameters
- pPSFactoryBuffer [in]
-
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
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|