1 | /* $Id: toolhelp.cpp,v 1.4 2002-02-09 12:45:13 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 | HANDLE WIN32API CreateToolhelp32Snapshot(DWORD dwFlags, DWORD dwProcess)
|
---|
36 | {
|
---|
37 | dprintf(("KERNEL32: CreateToolhelp32Snapshot %x %x not implemented, dwFlags, dwProcess"));
|
---|
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 | BOOL WIN32API Process32First(HANDLE hSnapshot, LPPROCESSENTRY32 lppe)
|
---|
49 | {
|
---|
50 | dprintf(("KERNEL32: Process32First %x %x not implemented", hSnapshot, lppe));
|
---|
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 | */
|
---|
60 | BOOL WIN32API Process32Next(HANDLE hSnapshot, LPPROCESSENTRY32 lppe)
|
---|
61 | {
|
---|
62 | dprintf(("KERNEL32: Process32Next %x %x not implemented", hSnapshot, lppe));
|
---|
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 | */
|
---|
72 | BOOL WIN32API Module32First(HANDLE hSnapshot, LPMODULEENTRY32 lpme)
|
---|
73 | {
|
---|
74 | dprintf(("KERNEL32: Module32First %x %x not implemented", hSnapshot, lpme));
|
---|
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 | */
|
---|
84 | BOOL WIN32API Module32Next(HANDLE hSnapshot, LPMODULEENTRY32 lpme)
|
---|
85 | {
|
---|
86 | dprintf(("KERNEL32: Module32Next %x %x not implemented", hSnapshot, lpme));
|
---|
87 | SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
|
---|
88 | return FALSE;
|
---|
89 | }
|
---|
90 |
|
---|
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 | }
|
---|