| 1 | /* $Id: toolhelp.cpp,v 1.1 1999-09-07 20:28:08 phaller 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 | #include "toolhelp.h"
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | ODINDEBUGCHANNEL(KERNEL32-TOOLHELP)
|
|---|
| 29 |
|
|---|
| 30 | /***********************************************************************
|
|---|
| 31 | * CreateToolHelp32Snapshot (KERNEL32.179)
|
|---|
| 32 | */
|
|---|
| 33 |
|
|---|
| 34 | ODINFUNCTION2(HANDLE,CreateToolhelp32Snapshot,DWORD,dwFlags,
|
|---|
| 35 | DWORD,dwProcess)
|
|---|
| 36 | {
|
|---|
| 37 | dprintf(("KERNEL32: CreateToolhelp32Snapshot not implemented.\n"));
|
|---|
| 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 | */
|
|---|
| 48 | ODINFUNCTION2(BOOL,Process32First,HANDLE, hSnapshot,
|
|---|
| 49 | LPPROCESSENTRY,lppe)
|
|---|
| 50 | {
|
|---|
| 51 | dprintf(("KERNEL32: Process32First not implemented.\n"));
|
|---|
| 52 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 53 | return FALSE;
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | /***********************************************************************
|
|---|
| 57 | * Process32Next (KERNEL32.556)
|
|---|
| 58 | *
|
|---|
| 59 | * Return info about the "next" process in a toolhelp32 snapshot
|
|---|
| 60 | */
|
|---|
| 61 | ODINFUNCTION2(BOOL,Process32Next,HANDLE, hSnapshot,
|
|---|
| 62 | LPPROCESSENTRY,lppe)
|
|---|
| 63 | {
|
|---|
| 64 | dprintf(("KERNEL32: Process32Next not implemented.\n"));
|
|---|
| 65 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 66 | return FALSE;
|
|---|
| 67 | }
|
|---|
| 68 |
|
|---|
| 69 | /***********************************************************************
|
|---|
| 70 | * Module32First (KERNEL32.527)
|
|---|
| 71 | *
|
|---|
| 72 | * Return info about the "first" module in a toolhelp32 snapshot
|
|---|
| 73 | */
|
|---|
| 74 | ODINFUNCTION2(BOOL,Module32First,HANDLE,hSnapshot,
|
|---|
| 75 | LPVOID,lpme)
|
|---|
| 76 | {
|
|---|
| 77 | // LPMODULEENTY,lpme)
|
|---|
| 78 | dprintf(("KERNEL32: Module32First not implemented.\n"));
|
|---|
| 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 | LPVOID,lpme)
|
|---|
| 90 | {
|
|---|
| 91 | // LPMODULEENTRY,lpme)
|
|---|
| 92 | dprintf(("KERNEL32: Module32Next not implemented.\n"));
|
|---|
| 93 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 94 | return FALSE;
|
|---|
| 95 | }
|
|---|
| 96 |
|
|---|