- Timestamp:
- Dec 9, 1999, 12:59:28 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/cpu.cpp
r1838 r2044 1 /* $Id: cpu.cpp,v 1. 3 1999-11-25 19:19:57 sandervl Exp $ */1 /* $Id: cpu.cpp,v 1.4 1999-12-09 11:59:27 sandervl Exp $ */ 2 2 /* 3 3 * Odin win32 CPU apis … … 21 21 #include "debugtools.h" 22 22 #include "cpuhlp.h" 23 #include "initsystem.h" 23 24 24 25 DEFAULT_DEBUG_CHANNEL(CPU) … … 26 27 static BYTE PF[64] = {0,}; 27 28 static nrCPUs = 1; 28 static HINSTANCE hInstance = 0;29 30 LONG (WINAPI *ADVAPI32_RegCloseKey)(HKEY) = 0;31 LONG (WINAPI *ADVAPI32_RegCreateKeyA)(HKEY,LPCSTR,LPHKEY) = 0;32 LONG (WINAPI *ADVAPI32_RegSetValueExA)(HKEY,LPSTR,DWORD,DWORD,LPBYTE,DWORD) = 0;33 29 34 30 //****************************************************************************** … … 37 33 { 38 34 SYSTEM_INFO si; 39 40 hInstance = LoadLibraryA("ADVAPI32.DLL");41 if(hInstance) {42 *(VOID **)&ADVAPI32_RegCloseKey=(void*)GetProcAddress(hInstance, (LPCSTR)"RegCloseKey");43 *(VOID **)&ADVAPI32_RegCreateKeyA=(void*)GetProcAddress(hInstance, (LPCSTR)"RegCreateKeyA");44 *(VOID **)&ADVAPI32_RegSetValueExA=(void*)GetProcAddress(hInstance, (LPCSTR)"RegSetValueExA");45 }46 35 47 36 nrCPUs = nrcpus; -
trunk/src/kernel32/directory.cpp
r1833 r2044 1 /* $Id: directory.cpp,v 1.1 2 1999-11-24 19:31:22sandervl Exp $ */1 /* $Id: directory.cpp,v 1.13 1999-12-09 11:59:28 sandervl Exp $ */ 2 2 3 3 /* … … 40 40 static char DIR_System[MAX_PATHNAME_LEN]; 41 41 42 //****************************************************************************** 43 //****************************************************************************** 44 char *InternalGetWindowsDirectoryA() 45 { 46 return DIR_Windows; 47 } 48 //****************************************************************************** 49 //****************************************************************************** 50 char *InternalGetSystemDirectoryA() 51 { 52 return DIR_System; 53 } 42 54 //****************************************************************************** 43 55 //****************************************************************************** -
trunk/src/kernel32/directory.h
r1636 r2044 1 /* $Id: directory.h,v 1. 1 1999-11-08 13:54:39sandervl Exp $ */1 /* $Id: directory.h,v 1.2 1999-12-09 11:59:28 sandervl Exp $ */ 2 2 #ifndef __FILEIO_H__ 3 3 #define __FILEIO_H__ … … 5 5 void InitDirectories(); 6 6 7 char *InternalGetWindowsDirectoryA(); 8 char *InternalGetSystemDirectoryA(); 9 7 10 #endif //__FILEIO_H__ 8 11 -
trunk/src/kernel32/initterm.cpp
r2032 r2044 1 /* $Id: initterm.cpp,v 1. 29 1999-12-09 00:52:20sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.30 1999-12-09 11:59:28 sandervl Exp $ */ 2 2 3 3 /* … … 47 47 #include "hmdevio.h" 48 48 #include <windllbase.h> 49 #include " cpuhlp.h"49 #include "initsystem.h" 50 50 51 51 /*-------------------------------------------------------------------*/ … … 148 148 if (rc != 0) 149 149 ulSysinfo = 1; 150 InitSystemInfo(ulSysinfo); 151 150 151 InitSystemEnvironment(ulSysinfo); 152 152 break; 153 153 } -
trunk/src/kernel32/makefile
r2042 r2044 1 # $Id: makefile,v 1.6 8 1999-12-09 11:00:40sandervl Exp $1 # $Id: makefile,v 1.69 1999-12-09 11:59:28 sandervl Exp $ 2 2 3 3 # … … 35 35 LFILE.OBJ NPIPE.OBJ oslibdos.obj oslibmisc.obj MISC.OBJ EXCEPTUTIL.OBJ \ 36 36 LANG.OBJ ICCIO.OBJ MAP.OBJ WIN32UTIL.OBJ heap.OBJ heapstring.obj \ 37 os2heap.OBJ vmutex.OBJ initterm.OBJ handlemanager.OBJ environ.obj \37 os2heap.OBJ vmutex.OBJ initterm.OBJ handlemanager.OBJ environ.obj initsystem.obj \ 38 38 hmdevice.obj hmopen32.obj hmobjects.obj hmevent.obj hmmutex.obj hmcomm.obj \ 39 39 hmsemaphore.obj wprocess.OBJ conprop.OBJ conprop2.obj winimagelx.obj \ … … 151 151 initterm.h 152 152 153 initterm.OBJ: .\initterm.cpp initterm.h $(PDWIN32_INCLUDE)\heapshared.h mmap.h directory.h hmdevio.h cpuhlp.h $(PDWIN32_INCLUDE)\heapcode.h 153 initterm.OBJ: .\initterm.cpp initterm.h $(PDWIN32_INCLUDE)\heapshared.h mmap.h directory.h hmdevio.h initsystem.h $(PDWIN32_INCLUDE)\heapcode.h 154 initsystem.obj: initsystem.cpp cpuhlp.h initsystem.h $(PDWIN32_INCLUDE)\misc.h directory.h 154 155 155 156 thunk.OBJ: \
Note:
See TracChangeset
for help on using the changeset viewer.