Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Determines whether a library that was provided by an ICLRDebuggingLibraryProvider interface is still in use or can be unloaded.
HRESULT CanUnloadNow(HMODULE hModule);
Parameters
- hmodule
[in] The base address of a module in the target process.
Return Value
This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.
HRESULT |
Description |
---|---|
S_OK |
The module that is referenced by hmodule can be unloaded. |
S_FALSE |
The module that is referenced by hmodule is still in use. |
COR_E_NOT_CLR |
The indicated module is not a CLR module. |
Remarks
This method checks to see if all instances of ICorDebug* interfaces have been released and no thread is currently within a call to the ICLRDebugging::OpenVirtualProcess method.
Requirements
Platforms: See .NET Framework System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: 4