mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Rolled in various changes from others
svn path=/trunk/; revision=108
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: include/kernel32/atom.h
|
||||
* PURPOSE: Include file for lib/kernel32/atom.c
|
||||
* PROGRAMMER: Ariadne ( [email protected])
|
||||
* UPDATE HISTORY:
|
||||
* Created 01/11/98
|
||||
*/
|
||||
/********************************************************************
|
||||
|
||||
|
||||
@@ -24,7 +32,7 @@ Cambridge, MA 02139, USA.
|
||||
#define Atoms__h
|
||||
|
||||
#include <windows.h>
|
||||
#include <ctype.h>
|
||||
//#include <ctype.h>
|
||||
//#include <types.h>
|
||||
|
||||
|
||||
@@ -40,18 +48,11 @@ typedef ATOMENTRY *LPATOMENTRY;
|
||||
|
||||
typedef struct {
|
||||
ATOMENTRY *AtomTable; /* pointer to table data */
|
||||
wchar_t *AtomData; /* pointer to name data */
|
||||
WCHAR *AtomData; /* pointer to name data */
|
||||
unsigned long TableSize; /* number items in this table */
|
||||
unsigned long DataSize; /* space used by string data */
|
||||
LPVOID lpDrvData;
|
||||
} ATOMTABLE;
|
||||
typedef ATOMTABLE *LPATOMTABLE;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* Atoms__h */
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: include/kernel32/li.h
|
||||
* PURPOSE: Include file for lib/kernel32 to discard large integers
|
||||
* PROGRAMMER: Ariadne ( [email protected])
|
||||
* UPDATE HISTORY:
|
||||
* Created 01/11/98
|
||||
*/
|
||||
#ifdef COMPILER_LARGE_INTEGERS
|
||||
#define GET_LARGE_INTEGER_HIGH_PART(LargeInteger) ( ( LargeInteger >> 32) )
|
||||
#define GET_LARGE_INTEGER_LOW_PART(LargeInteger) ( (LargeInteger & 0xFFFFFFFF) )
|
||||
#define SET_LARGE_INTEGER_HIGH_PART(LargeInteger,Signed_Long) ( LargeInteger |= ( ((LARGE_INTEGER)Signed_Long) << 32 ) )
|
||||
#define SET_LARGE_INTEGER_LOW_PART(LargeInteger,Unsigned_Long) ( LargeInteger |= Unsigned_Long )
|
||||
#else
|
||||
#define GET_LARGE_INTEGER_HIGH_PART(LargeInteger) ( ( LargeInteger.HighPart) )
|
||||
#define GET_LARGE_INTEGER_LOW_PART(LargeInteger) ( (LargeInteger.LowPart) )
|
||||
#define SET_LARGE_INTEGER_HIGH_PART(LargeInteger,Signed_Long) ( LargeInteger.HighPart= Signed_Long )
|
||||
#define SET_LARGE_INTEGER_LOW_PART(LargeInteger,Unsigned_Long) ( LargeInteger.LowPart = Unsigned_Long )
|
||||
#endif
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: include/kernel32/process.h
|
||||
* PURPOSE: Include file for lib/kernel32/proc.c
|
||||
* PROGRAMMER: Ariadne ( [email protected])
|
||||
* UPDATE HISTORY:
|
||||
* Created 01/11/98
|
||||
*/
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
|
||||
NT_PEB *GetCurrentPeb(VOID);
|
||||
|
||||
typedef
|
||||
DWORD
|
||||
(*WaitForInputIdleType)(
|
||||
HANDLE hProcess,
|
||||
DWORD dwMilliseconds);
|
||||
|
||||
|
||||
|
||||
@@ -1,56 +1,15 @@
|
||||
/*
|
||||
This file contains a proposal for Thread Environment Block.
|
||||
*/
|
||||
#ifndef __TEB_DEFINED
|
||||
#define __TEB_DEFINED
|
||||
|
||||
|
||||
typedef struct _NT_TIB {
|
||||
|
||||
struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList;
|
||||
|
||||
void *StackBase;
|
||||
void *StackLimit;
|
||||
void *SubSystemTib;
|
||||
union {
|
||||
void *FiberData;
|
||||
DWORD Version;
|
||||
};
|
||||
void *ArbitraryUserPointer;
|
||||
struct _NT_TIB *Self;
|
||||
|
||||
} NT_TIB;
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: include/kernel32/thread.h
|
||||
* PURPOSE: Include file for lib/kernel32/thread.c
|
||||
* PROGRAMMER: Ariadne ( [email protected])
|
||||
* UPDATE HISTORY:
|
||||
* Created 01/11/98
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <ddk/ntddk.h>
|
||||
NT_TEB *GetTeb(VOID);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct _NT_TEB
|
||||
{
|
||||
|
||||
NT_TIB Tib;
|
||||
DWORD dwProcessId;
|
||||
DWORD dwThreadId;
|
||||
HANDLE hRPC;
|
||||
NT_PEB *pPeb;
|
||||
DWORD dwErrCode;
|
||||
WORD nMutexCount;
|
||||
LCID Locale;
|
||||
//HQUEUE MessageQueue
|
||||
DWORD dwTlsIndex ;
|
||||
LPVOID TlsData[512];
|
||||
|
||||
|
||||
} NT_TEB;
|
||||
|
||||
|
||||
// should be an inline asm macro
|
||||
|
||||
NT_TEB *GetTeb()
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user