]> sourceware.org Git - newlib-cygwin.git/commitdiff
2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>
authorMumit Khan <khan@@xraylith.wisc.edu>
Tue, 29 Feb 2000 03:07:07 +0000 (03:07 +0000)
committerMumit Khan <khan@@xraylith.wisc.edu>
Tue, 29 Feb 2000 03:07:07 +0000 (03:07 +0000)
* include/winbase.h (TLS_MINIMUM_AVAILABLE): Move macro from here
* include/winnt.h (TLS_MINIMUM_AVAILABLE): to here.
(NT_TIB): Define.
* include/tlhelp32.h: New file.

winsup/w32api/ChangeLog
winsup/w32api/include/tlhelp32.h [new file with mode: 0644]
winsup/w32api/include/winbase.h
winsup/w32api/include/winnt.h

index bc301533dcc07e04524c676fe297b43da529cc67..6c1d36ec14187c34df26bc36baa97e59787ffd84 100644 (file)
@@ -1,3 +1,10 @@
+2000-02-28  Mumit Khan  <khan@xraylith.wisc.edu>
+
+       * include/winbase.h (TLS_MINIMUM_AVAILABLE): Move macro from here
+       * include/winnt.h (TLS_MINIMUM_AVAILABLE): to here.
+       (NT_TIB): Define.
+       * include/tlhelp32.h: New file.
+
 Mon Feb 28 17:08:03 2000  Christopher Faylor <cgf@cygnus.com>
 
        * include/rapi.h: New file.
diff --git a/winsup/w32api/include/tlhelp32.h b/winsup/w32api/include/tlhelp32.h
new file mode 100644 (file)
index 0000000..8f4222e
--- /dev/null
@@ -0,0 +1,136 @@
+/*
+       tlhelp32.h - Include file for Tool help functions.
+
+       Written by Mumit Khan <khan@nanotech.wisc.edu>
+
+       This file is part of a free library for the Win32 API. 
+
+       This library is distributed in the hope that it will be useful,
+       but WITHOUT ANY WARRANTY; without even the implied warranty of
+       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+*/
+#ifndef _TLHELP32_H
+#define _TLHELP32_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+#define HF32_DEFAULT   1
+#define HF32_SHARED    2
+#define LF32_FIXED     0x1
+#define LF32_FREE      0x2
+#define LF32_MOVEABLE  0x4
+#define MAX_MODULE_NAME32      255
+#define TH32CS_SNAPHEAPLIST    0x1
+#define TH32CS_SNAPPROCESS     0x2
+#define TH32CS_SNAPTHREAD      0x4
+#define TH32CS_SNAPMODULE      0x8
+#define TH32CS_SNAPALL (TH32CS_SNAPHEAPLIST|TH32CS_SNAPPROCESS|TH32CS_SNAPTHREAD|TH32CS_SNAPMODULE)
+#define TH32CS_INHERIT 0x80000000
+typedef struct tagHEAPLIST32 {
+       DWORD dwSize;
+       DWORD th32ProcessID;
+       DWORD th32HeapID;
+       DWORD dwFlags;
+} HEAPLIST32,*PHEAPLIST32,*LPHEAPLIST32;
+typedef struct tagHEAPENTRY32 {
+       DWORD dwSize;
+       HANDLE hHandle;
+       DWORD dwAddress;
+       DWORD dwBlockSize;
+       DWORD dwFlags;
+       DWORD dwLockCount;
+       DWORD dwResvd;
+       DWORD th32ProcessID;
+       DWORD th32HeapID;
+} HEAPENTRY32,*PHEAPENTRY32,*LPHEAPENTRY32;
+typedef struct tagPROCESSENTRY32W {
+       DWORD dwSize;
+       DWORD cntUsage;
+       DWORD th32ProcessID;
+       DWORD th32DefaultHeapID;
+       DWORD th32ModuleID;
+       DWORD cntThreads;
+       DWORD th32ParentProcessID;
+       LONG pcPriClassBase;
+       DWORD dwFlags;
+       WCHAR szExeFile[MAX_PATH];
+} PROCESSENTRY32W,*PPROCESSENTRY32W,*LPPROCESSENTRY32W;
+typedef struct tagPROCESSENTRY32 {
+       DWORD dwSize;
+       DWORD cntUsage;
+       DWORD th32ProcessID;
+       DWORD th32DefaultHeapID;
+       DWORD th32ModuleID;
+       DWORD cntThreads;
+       DWORD th32ParentProcessID;
+       LONG pcPriClassBase;
+       DWORD dwFlags;
+       CHAR  szExeFile[MAX_PATH];
+} PROCESSENTRY32,*PPROCESSENTRY32,*LPPROCESSENTRY32;
+typedef struct tagTHREADENTRY32 {
+       DWORD dwSize;
+       DWORD cntUsage;
+       DWORD th32ThreadID;
+       DWORD th32OwnerProcessID;
+       LONG tpBasePri;
+       LONG tpDeltaPri;
+       DWORD dwFlags;
+} THREADENTRY32,*PTHREADENTRY32,*LPTHREADENTRY32;
+typedef struct tagMODULEENTRY32W {
+       DWORD dwSize;
+       DWORD th32ModuleID;
+       DWORD th32ProcessID;
+       DWORD GlblcntUsage;
+       DWORD ProccntUsage;
+       BYTE *modBaseAddr;
+       DWORD modBaseSize;
+       HMODULE hModule; 
+       WCHAR szModule[MAX_MODULE_NAME32 + 1];
+       WCHAR szExePath[MAX_PATH];
+} MODULEENTRY32W,*PMODULEENTRY32W,*LPMODULEENTRY32W;
+typedef struct tagMODULEENTRY32 {
+       DWORD dwSize;
+       DWORD th32ModuleID;
+       DWORD th32ProcessID;
+       DWORD GlblcntUsage;
+       DWORD ProccntUsage;
+       BYTE *modBaseAddr;
+       DWORD modBaseSize;
+       HMODULE hModule;
+       char szModule[MAX_MODULE_NAME32 + 1];
+       char szExePath[MAX_PATH];
+} MODULEENTRY32,*PMODULEENTRY32,*LPMODULEENTRY32;
+BOOL WINAPI Heap32First(LPHEAPENTRY32,DWORD,DWORD);
+BOOL WINAPI Heap32ListFirst(HANDLE,LPHEAPLIST32);
+BOOL WINAPI Heap32ListNext(HANDLE,LPHEAPLIST32);
+BOOL WINAPI Heap32Next(LPHEAPENTRY32);
+BOOL WINAPI Module32First(HANDLE,LPMODULEENTRY32);
+BOOL WINAPI Module32FirstW(HANDLE,LPMODULEENTRY32W);
+BOOL WINAPI Module32Next(HANDLE,LPMODULEENTRY32);
+BOOL WINAPI Module32NextW(HANDLE,LPMODULEENTRY32W);
+BOOL WINAPI Process32First(HANDLE,LPPROCESSENTRY32);
+BOOL WINAPI Process32FirstW(HANDLE,LPPROCESSENTRY32W);
+BOOL WINAPI Process32Next(HANDLE,LPPROCESSENTRY32);
+BOOL WINAPI Process32NextW(HANDLE,LPPROCESSENTRY32W);
+BOOL WINAPI Thread32First(HANDLE,LPTHREADENTRY32);
+BOOL WINAPI Thread32Next(HANDLE,LPTHREADENTRY32);
+BOOL WINAPI Toolhelp32ReadProcessMemory(DWORD,LPCVOID,LPVOID,DWORD,LPDWORD);
+HANDLE WINAPI CreateToolhelp32Snapshot(DWORD,DWORD);
+#ifdef UNICODE
+#define LPMODULEENTRY32 LPMODULEENTRY32W
+#define LPPROCESSENTRY32 LPPROCESSENTRY32W
+#define MODULEENTRY32 MODULEENTRY32W
+#define Module32First Module32FirstW
+#define Module32Next Module32NextW
+#define PMODULEENTRY32 PMODULEENTRY32W
+#define PPROCESSENTRY32 PPROCESSENTRY32W
+#define PROCESSENTRY32 PROCESSENTRY32W
+#define Process32First Process32FirstW
+#define Process32Next Process32NextW
+#endif /* UNICODE */
+#ifdef __cplusplus
+}
+#endif
+#endif /* _TLHELP32_H */
+
index eec682b66709d3c43a08c5526885f5a78df734ed..3cc78301c3370dd0e8e20acaf17f03b1456359bb 100644 (file)
@@ -397,7 +397,6 @@ extern "C" {
 #define EXCEPTION_EXECUTE_HANDLER 1
 #define EXCEPTION_CONTINUE_EXECUTION (-1)
 #define EXCEPTION_CONTINUE_SEARCH 0
-#define TLS_MINIMUM_AVAILABLE 64
 #define MAXINTATOM 0xC000
 #define INVALID_ATOM ((ATOM)0)
 #define IGNORE 0
index 71c0e353a9b204319a0d3cc8fba345ad182d9480..4574136d293f19491bd1324eebc5815605d30431 100644 (file)
@@ -895,6 +895,7 @@ typedef BYTE BOOLEAN,*PBOOLEAN;
 #define ISTAG(x) ((x)==IMAGE_SYM_CLASS_STRUCT_TAG||(x)==IMAGE_SYM_CLASS_UNION_TAG||(x)==IMAGE_SYM_CLASS_ENUM_TAG)
 #define INCREF(x) ((((x)&~N_BTMASK)<<N_TSHIFT)|(IMAGE_SYM_DTYPE_POINTER<<N_BTSHFT)|((x)&N_BTMASK))
 #define DECREF(x) ((((x)>>N_TSHIFT)&~N_BTMASK)|((x)&N_BTMASK))
+#define TLS_MINIMUM_AVAILABLE 64
 
 #ifndef RC_INVOKED
 typedef DWORD ACCESS_MASK;
@@ -2221,7 +2222,18 @@ typedef enum _CM_ERROR_CONTROL_TYPE {
        SevereError=SERVICE_ERROR_SEVERE,
        CriticalError=SERVICE_ERROR_CRITICAL
 } SERVICE_ERROR_TYPE;
-
+typedef struct _NT_TIB {
+       struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList;
+       PVOID StackBase;
+       PVOID StackLimit;
+       PVOID SubSystemTib;
+       union {
+               PVOID FiberData;
+               DWORD Version;
+       } DUMMYUNIONNAME;
+       PVOID ArbitraryUserPointer;
+       struct _NT_TIB *Self;
+} NT_TIB,*PNT_TIB;
 PVOID GetCurrentFiber(void);
 PVOID GetFiberData(void);
 #endif
@@ -2229,3 +2241,4 @@ PVOID GetFiberData(void);
 }
 #endif
 #endif
+
This page took 0.044118 seconds and 5 git commands to generate.