| 1 | /* $Id: toolhelp.cpp,v 1.2 2000-02-16 14:23:12 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 | #include "toolhelp.h"
|
|---|
| 26 |
|
|---|
| 27 | #define DBG_LOCALLOG DBG_toolhelp
|
|---|
| 28 | #include "dbglocal.h"
|
|---|
| 29 |
|
|---|
| 30 | ODINDEBUGCHANNEL(KERNEL32-TOOLHELP)
|
|---|
| 31 |
|
|---|
| 32 | /***********************************************************************
|
|---|
| 33 | * CreateToolHelp32Snapshot (KERNEL32.179)
|
|---|
| 34 | */
|
|---|
| 35 |
|
|---|
| 36 | ODINFUNCTION2(HANDLE,CreateToolhelp32Snapshot,DWORD,dwFlags,
|
|---|
| 37 | DWORD,dwProcess)
|
|---|
| 38 | {
|
|---|
| 39 | dprintf(("KERNEL32: CreateToolhelp32Snapshot not implemented.\n"));
|
|---|
| 40 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 41 | return INVALID_HANDLE_VALUE;
|
|---|
| 42 | }
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | /***********************************************************************
|
|---|
| 46 | * Process32First (KERNEL32.555)
|
|---|
| 47 | *
|
|---|
| 48 | * Return info about the first process in a toolhelp32 snapshot
|
|---|
| 49 | */
|
|---|
| 50 | ODINFUNCTION2(BOOL,Process32First,HANDLE, hSnapshot,
|
|---|
| 51 | LPPROCESSENTRY,lppe)
|
|---|
| 52 | {
|
|---|
| 53 | dprintf(("KERNEL32: Process32First not implemented.\n"));
|
|---|
| 54 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 55 | return FALSE;
|
|---|
| 56 | }
|
|---|
| 57 |
|
|---|
| 58 | /***********************************************************************
|
|---|
| 59 | * Process32Next (KERNEL32.556)
|
|---|
| 60 | *
|
|---|
| 61 | * Return info about the "next" process in a toolhelp32 snapshot
|
|---|
| 62 | */
|
|---|
| 63 | ODINFUNCTION2(BOOL,Process32Next,HANDLE, hSnapshot,
|
|---|
| 64 | LPPROCESSENTRY,lppe)
|
|---|
| 65 | {
|
|---|
| 66 | dprintf(("KERNEL32: Process32Next not implemented.\n"));
|
|---|
| 67 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 68 | return FALSE;
|
|---|
| 69 | }
|
|---|
| 70 |
|
|---|
| 71 | /***********************************************************************
|
|---|
| 72 | * Module32First (KERNEL32.527)
|
|---|
| 73 | *
|
|---|
| 74 | * Return info about the "first" module in a toolhelp32 snapshot
|
|---|
| 75 | */
|
|---|
| 76 | ODINFUNCTION2(BOOL,Module32First,HANDLE,hSnapshot,
|
|---|
| 77 | LPVOID,lpme)
|
|---|
| 78 | {
|
|---|
| 79 | // LPMODULEENTY,lpme)
|
|---|
| 80 | dprintf(("KERNEL32: Module32First not implemented.\n"));
|
|---|
| 81 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 82 | return FALSE;
|
|---|
| 83 | }
|
|---|
| 84 |
|
|---|
| 85 | /***********************************************************************
|
|---|
| 86 | * Module32Next (KERNEL32.528)
|
|---|
| 87 | *
|
|---|
| 88 | * Return info about the "next" module in a toolhelp32 snapshot
|
|---|
| 89 | */
|
|---|
| 90 | ODINFUNCTION2(BOOL,Module32Next,HANDLE,hSnapshot,
|
|---|
| 91 | LPVOID,lpme)
|
|---|
| 92 | {
|
|---|
| 93 | // LPMODULEENTRY,lpme)
|
|---|
| 94 | dprintf(("KERNEL32: Module32Next not implemented.\n"));
|
|---|
| 95 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
|---|
| 96 | return FALSE;
|
|---|
| 97 | }
|
|---|
| 98 |
|
|---|