INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Dynamic-link library functions"
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_DYNAMIC_LINK_LIBRARY_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

FreeLibrary (hlibmodule: INTEGER): INTEGER
-- The `FreeLibrary' function decrements the reference count of the
-- loaded dynamic-link library (DLL) module. When the reference count
-- reaches zero, the module is unmapped from the address space
-- of the calling process and the handle is no longer valid.

GetModuleHandle (lpszmodule: POINTER): INTEGER
-- The 'GetModuleHandle' function returns a module handle for the
-- specified module if the file has been mapped
-- into the address space of the calling process.

GetModuleFileName (hmodule: INTEGER; buffer: POINTER; sizeof_buf: INTEGER): INTEGER
require
non_null_buffer: buffer /= default_pointer
valid_sizeof_buf: sizeof_buf > 0
ensure
positive_result: Result >= 0

LoadLibrary (libfilename: STRING): INTEGER
-- The `LoadLibrary' function maps the specified executable module
-- into the address space of the calling process.
require
correct_libfilename: libfilename /= void

LoadLibraryEx (libfilename: STRING; hfile: INTEGER; dwflags: BIT 32): INTEGER
-- The `LoadLibraryEx' function maps a specified executable module
-- into the address space of the calling process. The executable
-- module can be a .DLL or an .EXE file. The specified module
-- may cause other modules to be mapped into the address space.
require
correct_libfilename: libfilename /= void
feature -- Implementation

wFreeLibrary (hlibmodule: INTEGER): INTEGER

wLoadLibrary (lplibfilename: POINTER): INTEGER

wLoadLibraryEx (lplibfilename: POINTER; hfile: INTEGER; dwflags: BIT 32): INTEGER

GetProcAddress (hmodule: INTEGER; lpprocname: POINTER): POINTER
-- The GetProcAddress function returns the address of the specified
-- exported dynamic-link library (DLL) function
-- If the function succeeds, the return value is the address of the
-- DLL's exported function. If the function fails, the return value is NULL.

FindResource (hmodule: INTEGER; lpname: POINTER; lptype: POINTER): INTEGER
-- HRSRC
-- The FindResource function determines the location of a resource with
-- the specified type and name in the specified module.

LoadResource (hmodule: INTEGER; hresinfo: INTEGER): INTEGER
-- HGLOBAL
-- The LoadResource function loads the specified resource into global
-- memory.
end -- class WAPI_DYNAMIC_LINK_LIBRARY_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES