| 1 | /* $Id: toolhelp.cpp,v 1.3 2000-10-08 14:01:02 sandervl Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Misc Toolhelp functions | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright 1996 Marcus Meissner | 
|---|
| 7 | * Copyright 1999 Patrick Haller | 
|---|
| 8 | * | 
|---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT | 
|---|
| 10 | * | 
|---|
| 11 | */ | 
|---|
| 12 |  | 
|---|
| 13 |  | 
|---|
| 14 | /***************************************************************************** | 
|---|
| 15 | * Includes                                                                  * | 
|---|
| 16 | *****************************************************************************/ | 
|---|
| 17 |  | 
|---|
| 18 | #include <odin.h> | 
|---|
| 19 | #include <os2win.h> | 
|---|
| 20 | #include <odinwrap.h> | 
|---|
| 21 |  | 
|---|
| 22 | #include "winbase.h" | 
|---|
| 23 | #include "winerror.h" | 
|---|
| 24 | #include "tlhelp32.h" | 
|---|
| 25 |  | 
|---|
| 26 | #define DBG_LOCALLOG    DBG_toolhelp | 
|---|
| 27 | #include "dbglocal.h" | 
|---|
| 28 |  | 
|---|
| 29 | ODINDEBUGCHANNEL(KERNEL32-TOOLHELP) | 
|---|
| 30 |  | 
|---|
| 31 | /*********************************************************************** | 
|---|
| 32 | *           CreateToolHelp32Snapshot                   (KERNEL32.179) | 
|---|
| 33 | */ | 
|---|
| 34 |  | 
|---|
| 35 | ODINFUNCTION2(HANDLE,CreateToolhelp32Snapshot,DWORD,dwFlags, | 
|---|
| 36 | DWORD,dwProcess) | 
|---|
| 37 | { | 
|---|
| 38 | dprintf(("KERNEL32: CreateToolhelp32Snapshot %x %x not implemented, dwFlags, dwProcess")); | 
|---|
| 39 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); | 
|---|
| 40 | return INVALID_HANDLE_VALUE; | 
|---|
| 41 | } | 
|---|
| 42 |  | 
|---|
| 43 |  | 
|---|
| 44 | /*********************************************************************** | 
|---|
| 45 | *              Process32First    (KERNEL32.555) | 
|---|
| 46 | * | 
|---|
| 47 | * Return info about the first process in a toolhelp32 snapshot | 
|---|
| 48 | */ | 
|---|
| 49 | ODINFUNCTION2(BOOL,Process32First,HANDLE,        hSnapshot, | 
|---|
| 50 | LPPROCESSENTRY32,lppe) | 
|---|
| 51 | { | 
|---|
| 52 | dprintf(("KERNEL32: Process32First %x %x not implemented", hSnapshot, lppe)); | 
|---|
| 53 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); | 
|---|
| 54 | return FALSE; | 
|---|
| 55 | } | 
|---|
| 56 |  | 
|---|
| 57 | /*********************************************************************** | 
|---|
| 58 | *              Process32Next   (KERNEL32.556) | 
|---|
| 59 | * | 
|---|
| 60 | * Return info about the "next" process in a toolhelp32 snapshot | 
|---|
| 61 | */ | 
|---|
| 62 | ODINFUNCTION2(BOOL,Process32Next,HANDLE,        hSnapshot, | 
|---|
| 63 | LPPROCESSENTRY32,lppe) | 
|---|
| 64 | { | 
|---|
| 65 | dprintf(("KERNEL32: Process32Next %x %x not implemented", hSnapshot, lppe)); | 
|---|
| 66 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); | 
|---|
| 67 | return FALSE; | 
|---|
| 68 | } | 
|---|
| 69 |  | 
|---|
| 70 | /*********************************************************************** | 
|---|
| 71 | *              Module32First   (KERNEL32.527) | 
|---|
| 72 | * | 
|---|
| 73 | * Return info about the "first" module in a toolhelp32 snapshot | 
|---|
| 74 | */ | 
|---|
| 75 | ODINFUNCTION2(BOOL,Module32First,HANDLE,hSnapshot, | 
|---|
| 76 | LPMODULEENTRY32,lpme) | 
|---|
| 77 | { | 
|---|
| 78 | dprintf(("KERNEL32: Module32First %x %x not implemented", hSnapshot, lpme)); | 
|---|
| 79 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); | 
|---|
| 80 | return FALSE; | 
|---|
| 81 | } | 
|---|
| 82 |  | 
|---|
| 83 | /*********************************************************************** | 
|---|
| 84 | *              Module32Next   (KERNEL32.528) | 
|---|
| 85 | * | 
|---|
| 86 | * Return info about the "next" module in a toolhelp32 snapshot | 
|---|
| 87 | */ | 
|---|
| 88 | ODINFUNCTION2(BOOL,Module32Next,HANDLE,hSnapshot, | 
|---|
| 89 | LPMODULEENTRY32,lpme) | 
|---|
| 90 | { | 
|---|
| 91 | dprintf(("KERNEL32: Module32Next %x %x not implemented", hSnapshot, lpme)); | 
|---|
| 92 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); | 
|---|
| 93 | return FALSE; | 
|---|
| 94 | } | 
|---|
| 95 |  | 
|---|
| 96 |  | 
|---|
| 97 | BOOL 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 |  | 
|---|
| 104 | BOOL 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 | } | 
|---|