psapi.dll tests

Ferenc Wagner wferi at afavant.elte.hu
Thu Jul 1 10:45:25 CDT 2004


Hi,

please somebody enlighten me!  How does this test work once
psapi_test.exe is linked with -lpsapi?  How can a program
start at all without one of its hard dependencies?

START_TEST(module)
{
    dll = LoadLibrary("psapi.dll");
    if (!dll) {
        trace("LoadLibraryA(psapi.dll) failed: skipping tests with target module\n");
        return;
    }

The above seems to be a common idiom which I don't
understand as opposed to using GetProcAddress and invoking
functions through pointers.  What am I missing here?
-- 
Feri.



More information about the wine-devel mailing list