Ignore:
Timestamp:
Jan 15, 2004, 11:39:15 AM (22 years ago)
Author:
sandervl
Message:

Loader updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/windllbase.cpp

    r10054 r10397  
    1 /* $Id: windllbase.cpp,v 1.33 2003-04-30 11:04:07 sandervl Exp $ */
     1/* $Id: windllbase.cpp,v 1.34 2004-01-15 10:39:06 sandervl Exp $ */
    22
    33/*
     
    55 *
    66 * Copyright 1998-2000 Sander van Leeuwen (sandervl@xs4all.nl)
     7 * Copyright 2003 Innotek Systemberatung GmbH (sandervl@innotek.de)
    78 *
    89 * Unloading of a dll always happens in order of dependency (taking nr of
     
    438439#ifdef DEBUG
    439440    time2 = GetTickCount();
    440     dprintf(("attachProcess to dll %s DONE in %x msec", szModule, time2-time1));
     441    dprintf(("attachProcess to dll %s DONE in %x msec rc %d", szModule, time2-time1, rc));
    441442#endif
    442443
     
    883884//******************************************************************************
    884885//******************************************************************************
     886int Win32DllBase::enumDlls(HMODULE *lphModule, int countMax)
     887{
     888    int     count = 0;
     889    HMODULE hModule;
     890
     891    dlllistmutex.enter();
     892
     893    Win32DllBase *mod = Win32DllBase::head;
     894    while(mod != NULL) {
     895        dbgCheckObj(mod);
     896
     897        hModule = mod->getInstanceHandle();
     898        if ( count < countMax )
     899            lphModule[count] = hModule;
     900        count++;
     901
     902        mod = mod->next;
     903    }
     904    dlllistmutex.leave();
     905    return count;
     906}
     907//******************************************************************************
     908//******************************************************************************
    885909Win32DllBase *Win32DllBase::head = NULL;
    886910Queue         Win32DllBase::loadLibDlls;
Note: See TracChangeset for help on using the changeset viewer.