Table of Contents

Method CanUnloadNow

Namespace
Microsoft.Samples.Debugging.CorDebug
Assembly
corapi.dll

CanUnloadNow(IntPtr)

Determines if the module is no longer in use

int CanUnloadNow(IntPtr moduleHandle)

Parameters

moduleHandle IntPtr

A module handle that was provided via the ILibraryProvider

Returns

int

HResults.S_OK if the module can be unloaded, HResults.S_FALSE if it is in use or an appropriate error hresult otherwise