[7849] | 1 | /* $Id: toolhelp.cpp,v 1.4 2002-02-09 12:45:13 sandervl Exp $ */
|
---|
[862] | 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 |
|
---|
[2802] | 26 | #define DBG_LOCALLOG DBG_toolhelp
|
---|
| 27 | #include "dbglocal.h"
|
---|
[862] | 28 |
|
---|
| 29 | ODINDEBUGCHANNEL(KERNEL32-TOOLHELP)
|
---|
| 30 |
|
---|
| 31 | /***********************************************************************
|
---|
| 32 | * CreateToolHelp32Snapshot (KERNEL32.179)
|
---|
| 33 | */
|
---|
| 34 |
|
---|
[7849] | 35 | HANDLE WIN32API CreateToolhelp32Snapshot(DWORD dwFlags, DWORD dwProcess)
|
---|
[862] | 36 | {
|
---|
[4451] | 37 | dprintf(("KERNEL32: CreateToolhelp32Snapshot %x %x not implemented, dwFlags, dwProcess"));
|
---|
[862] | 38 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 39 | return INVALID_HANDLE_VALUE;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | /***********************************************************************
|
---|
| 44 | * Process32First (KERNEL32.555)
|
---|
| 45 | *
|
---|
| 46 | * Return info about the first process in a toolhelp32 snapshot
|
---|
| 47 | */
|
---|
[7849] | 48 | BOOL WIN32API Process32First(HANDLE hSnapshot, LPPROCESSENTRY32 lppe)
|
---|
[862] | 49 | {
|
---|
[4451] | 50 | dprintf(("KERNEL32: Process32First %x %x not implemented", hSnapshot, lppe));
|
---|
[862] | 51 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 52 | return FALSE;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | /***********************************************************************
|
---|
| 56 | * Process32Next (KERNEL32.556)
|
---|
| 57 | *
|
---|
| 58 | * Return info about the "next" process in a toolhelp32 snapshot
|
---|
| 59 | */
|
---|
[7849] | 60 | BOOL WIN32API Process32Next(HANDLE hSnapshot, LPPROCESSENTRY32 lppe)
|
---|
[862] | 61 | {
|
---|
[4451] | 62 | dprintf(("KERNEL32: Process32Next %x %x not implemented", hSnapshot, lppe));
|
---|
[862] | 63 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 64 | return FALSE;
|
---|
| 65 | }
|
---|
| 66 |
|
---|
| 67 | /***********************************************************************
|
---|
| 68 | * Module32First (KERNEL32.527)
|
---|
| 69 | *
|
---|
| 70 | * Return info about the "first" module in a toolhelp32 snapshot
|
---|
| 71 | */
|
---|
[7849] | 72 | BOOL WIN32API Module32First(HANDLE hSnapshot, LPMODULEENTRY32 lpme)
|
---|
[862] | 73 | {
|
---|
[4451] | 74 | dprintf(("KERNEL32: Module32First %x %x not implemented", hSnapshot, lpme));
|
---|
[862] | 75 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 76 | return FALSE;
|
---|
| 77 | }
|
---|
| 78 |
|
---|
| 79 | /***********************************************************************
|
---|
| 80 | * Module32Next (KERNEL32.528)
|
---|
| 81 | *
|
---|
| 82 | * Return info about the "next" module in a toolhelp32 snapshot
|
---|
| 83 | */
|
---|
[7849] | 84 | BOOL WIN32API Module32Next(HANDLE hSnapshot, LPMODULEENTRY32 lpme)
|
---|
[862] | 85 | {
|
---|
[4451] | 86 | dprintf(("KERNEL32: Module32Next %x %x not implemented", hSnapshot, lpme));
|
---|
[862] | 87 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 88 | return FALSE;
|
---|
| 89 | }
|
---|
| 90 |
|
---|
[4451] | 91 |
|
---|
| 92 | BOOL WINAPI Thread32First(HANDLE hSnapshot,LPTHREADENTRY32 lpte)
|
---|
| 93 | {
|
---|
| 94 | dprintf(("KERNEL32: Thread32First %x %x not implemented", hSnapshot, lpte));
|
---|
| 95 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 96 | return FALSE;
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | BOOL WINAPI Thread32Next(HANDLE hSnapshot, LPTHREADENTRY32 lpte)
|
---|
| 100 | {
|
---|
| 101 | dprintf(("KERNEL32: Thread32Next %x %x not implemented", hSnapshot, lpte));
|
---|
| 102 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
| 103 | return FALSE;
|
---|
| 104 | }
|
---|