Changeset 4451 for trunk/src


Ignore:
Timestamp:
Oct 8, 2000, 4:01:02 PM (25 years ago)
Author:
sandervl
Message:

extra logging + toolhelp apis not exported anymore

Location:
trunk/src/kernel32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r4445 r4451  
    1 ; $Id: KERNEL32.DEF,v 1.89 2000-10-06 15:15:59 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.90 2000-10-08 14:00:59 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    231231     CreateTapePartition        = _CreateTapePartition@16          @177
    232232     CreateThread               = _CreateThread@24                 @178
    233      CreateToolhelp32Snapshot   = _CreateToolhelp32Snapshot@8      @179  ;W95
     233;;;;     CreateToolhelp32Snapshot   = _CreateToolhelp32Snapshot@8      @179  ;W95
    234234;    CreateVirtualBuffer        = _CreateVirtualBuffer@??          @68   ;NT
    235235     CreateWaitableTimerA       = _CreateWaitableTimerA@12         @69   ;NT
     
    634634    MapViewOfFile              = _MapViewOfFile@20           @525
    635635    MapViewOfFileEx            = _MapViewOfFileEx@24         @526
    636     Module32First              = _Module32First@8            @527       ;W95
    637     Module32Next               = _Module32Next@8             @528       ;W95
     636;;;;    Module32First              = _Module32First@8            @527       ;W95
     637;;;;    Module32Next               = _Module32Next@8             @528       ;W95
    638638    MoveFileA                  = _MoveFileA@8                @529
    639639    MoveFileExA                = _MoveFileExA@12             @530
     
    665665    PostQueuedCompletionStatus  = _PostQueuedCompletionStatus@16 @553
    666666    PrepareTape                = _PrepareTape@12             @554
    667     Process32First             = _Process32First@8           @555       ;W95
    668     Process32Next              = _Process32Next@8            @556       ;W95
     667;;;    Process32First             = _Process32First@8           @555       ;W95
     668;;;    Process32Next              = _Process32Next@8            @556       ;W95
    669669    PulseEvent                 = _PulseEvent@4               @557
    670670    PurgeComm                  = _PurgeComm@8                @558
     
    832832    TerminateProcess           = _TerminateProcess@8         @684
    833833    TerminateThread            = _TerminateThread@8          @685
    834 ;   Thread32First              = _Thread32First@??           @686       ;W95
    835 ;   Thread32Next               = _Thread32Next@??            @687       ;W95
     834;;;;    Thread32First              = _Thread32First@8            @686       ;W95
     835;;;;    Thread32Next               = _Thread32Next@8             @687       ;W95
    836836    ThunkConnect32             = _ThunkConnect32@24          @688       ;W95
    837837    TlsAlloc                   = _TlsAlloc@0                 @689
  • trunk/src/kernel32/environ.cpp

    r4381 r4451  
    1 /* $Id: environ.cpp,v 1.8 2000-10-02 16:22:09 phaller Exp $ */
     1/* $Id: environ.cpp,v 1.9 2000-10-08 14:01:01 sandervl Exp $ */
    22
    33/*
     
    120120              DWORD,  nSize)
    121121{
     122  dprintf(("GetEnvironmentVariableA %s", lpName));
    122123  return O32_GetEnvironmentVariable(lpName, lpBuffer, nSize);
    123124}
     
    132133  DWORD rc;
    133134
    134   asciibuffer = (char *)malloc(nSize+1);
    135   *asciibuffer = 0;
     135  if(nSize) {
     136       asciibuffer = (char *)malloc(nSize+1);
     137       *asciibuffer = 0;
     138  }
     139  else asciibuffer = NULL;
     140
    136141  astring     = UnicodeToAsciiString((LPWSTR)lpName);
    137142
    138   rc = O32_GetEnvironmentVariable(astring, asciibuffer, nSize);
     143  rc = CALL_ODINFUNC(GetEnvironmentVariableA)(astring, asciibuffer, nSize);
    139144  AsciiToUnicode(asciibuffer, lpBuffer);
    140145  FreeAsciiString(astring);
    141   free(asciibuffer);
     146  if(asciibuffer)
     147        free(asciibuffer);
    142148  return(rc);
    143149}
  • trunk/src/kernel32/ole2nls.cpp

    r4387 r4451  
    1 /* $Id: ole2nls.cpp,v 1.4 2000-10-02 18:39:34 sandervl Exp $ */
     1/* $Id: ole2nls.cpp,v 1.5 2000-10-08 14:01:01 sandervl Exp $ */
    22
    33/*
     
    199199    char buf_en_language[128];
    200200
    201     TRACE("%04X\n", (UINT)LangID);
     201    dprintf2(("%04X\n", (UINT)LangID));
    202202    if(PRIMARYLANGID(LangID) == LANG_NEUTRAL)
    203203        return TRUE; /* continue search */
     
    19121912  int i;
    19131913
    1914   TRACE("(0x%04lx,0x%08lx,%s,%d,%p,%d)\n",
    1915         lcid,mapflags,srcstr,srclen,dststr,dstlen);
     1914  dprintf2(("LCMapStringA: (0x%04lx,0x%08lx,%s,%d,%p,%d)",
     1915        lcid,mapflags,srcstr,srclen,dststr,dstlen));
    19161916
    19171917  if ( ((dstlen!=0) && (dststr==NULL)) || (srcstr==NULL) )
     
    24922492  int result;
    24932493  LPSTR sk1,sk2;
    2494   TRACE("%s and %s\n",
    2495         debugstr_a (s1), debugstr_a (s2));
     2494  dprintf2(("%s and %s\n",
     2495        debugstr_a (s1), debugstr_a (s2)));
    24962496
    24972497  if ( (s1==NULL) || (s2==NULL) )
  • trunk/src/kernel32/toolhelp.cpp

    r2802 r4451  
    1 /* $Id: toolhelp.cpp,v 1.2 2000-02-16 14:23:12 sandervl Exp $ */
     1/* $Id: toolhelp.cpp,v 1.3 2000-10-08 14:01:02 sandervl Exp $ */
    22
    33/*
     
    2323#include "winerror.h"
    2424#include "tlhelp32.h"
    25 #include "toolhelp.h"
    2625
    2726#define DBG_LOCALLOG    DBG_toolhelp
     
    3736                                              DWORD,dwProcess)
    3837{
    39   dprintf(("KERNEL32: CreateToolhelp32Snapshot not implemented.\n"));
     38  dprintf(("KERNEL32: CreateToolhelp32Snapshot %x %x not implemented, dwFlags, dwProcess"));
    4039  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
    4140  return INVALID_HANDLE_VALUE;
     
    4948 */
    5049ODINFUNCTION2(BOOL,Process32First,HANDLE,        hSnapshot,
    51                                   LPPROCESSENTRY,lppe)
     50                                  LPPROCESSENTRY32,lppe)
    5251{
    53   dprintf(("KERNEL32: Process32First not implemented.\n"));
     52  dprintf(("KERNEL32: Process32First %x %x not implemented", hSnapshot, lppe));
    5453  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
    5554  return FALSE;
     
    6261 */
    6362ODINFUNCTION2(BOOL,Process32Next,HANDLE,        hSnapshot,
    64                                  LPPROCESSENTRY,lppe)
     63                                 LPPROCESSENTRY32,lppe)
    6564{
    66   dprintf(("KERNEL32: Process32Next not implemented.\n"));
     65  dprintf(("KERNEL32: Process32Next %x %x not implemented", hSnapshot, lppe));
    6766  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
    6867  return FALSE;
     
    7574 */
    7675ODINFUNCTION2(BOOL,Module32First,HANDLE,hSnapshot,
    77                                  LPVOID,lpme)
     76                                 LPMODULEENTRY32,lpme)
    7877{
    79   //                               LPMODULEENTY,lpme)
    80   dprintf(("KERNEL32: Module32First not implemented.\n"));
     78  dprintf(("KERNEL32: Module32First %x %x not implemented", hSnapshot, lpme));
    8179  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
    8280  return FALSE;
     
    8987 */
    9088ODINFUNCTION2(BOOL,Module32Next,HANDLE,hSnapshot,
    91                                 LPVOID,lpme)
     89                                LPMODULEENTRY32,lpme)
    9290{
    93   //                              LPMODULEENTRY,lpme)
    94   dprintf(("KERNEL32: Module32Next not implemented.\n"));
     91  dprintf(("KERNEL32: Module32Next %x %x not implemented", hSnapshot, lpme));
    9592  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
    9693  return FALSE;
    9794}
    9895
     96
     97BOOL WINAPI Thread32First(HANDLE hSnapshot,LPTHREADENTRY32 lpte)
     98{
     99  dprintf(("KERNEL32: Thread32First %x %x not implemented", hSnapshot, lpte));
     100  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
     101  return FALSE;
     102}
     103
     104BOOL WINAPI Thread32Next(HANDLE hSnapshot, LPTHREADENTRY32 lpte)
     105{
     106  dprintf(("KERNEL32: Thread32Next %x %x not implemented", hSnapshot, lpte));
     107  SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
     108  return FALSE;
     109}
Note: See TracChangeset for help on using the changeset viewer.