>>>>> "Ferenc" == Ferenc Wagner <[EMAIL PROTECTED]> writes:
Ferenc> Hi, please somebody enlighten me! How does this test work once
Ferenc> psapi_test.exe is linked with -lpsapi? How can a program start
Ferenc> at all without one of its hard dependencies?
Ferenc> START_TEST(module) { dll = LoadLibrary("psapi.dll"); if (!dll) {
Ferenc> trace("LoadLibraryA(psapi.dll) failed: skipping tests with
Ferenc> target module\n"); return; }
Ferenc> The above seems to be a common idiom which I don't understand as
Ferenc> opposed to using GetProcAddress and invoking functions through
Ferenc> pointers. What am I missing here? -- Feri.
If the library is already loaded, LoadLibrary returns the HModule of the
already loaded module, to my knowledge...
Bye
--
Uwe Bonnes [EMAIL PROTECTED]
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------