FreeLibrary() private méthode

private FreeLibrary ( IntPtr hModule ) : bool
hModule System.IntPtr
Résultat bool
Exemple #1
0
        /// <summary>
        /// Releases the native library handle.
        /// </summary>
        /// <returns><see langword="true"/> if the library was released, otherwise <see langword="false"/>.</returns>
        /// <remarks>The handle is released by calling the FreeLibrary API.</remarks>
        protected override bool ReleaseHandle()
        {
            bool free = NativeMethods.FreeLibrary(this.handle);

            return(free);
        }