mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
e2bfa4c722
Thu May 16 13:35:31 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [*/*.c] Renamed RECT, POINT and SIZE structures to RECT16, POINT16 and SIZE16. Implemented Win32 version of most functions that take these types as parameters. * [configure] Patched autoconf to attempt to correctly detect -lnsl and -lsocket. Please check this out. * [controls/button.c] Added support for Win32 BM_* messages. * [controls/menu.c] Avoid sending extra WM_MENUSELECT messages. This avoids crashes with Excel. * [memory.heap.c] [include/heap.h] Added support for SEGPTRs in Win32 heaps. Added a few macros to make using SEGPTRs easier. They are a bit slower than MAKE_SEGPTR, but they work with Win32. * [memory/atom.c] Implemented Win32 atom functions. * [memory/local.c] Fixed LocalReAlloc() changes to avoid copying the whole block twice. * [win32/memory.c] Use /dev/zero instead of MAP_ANON for VirtualAlloc(). * [windows/class.c] Properly implemented the Win32 class functions. * [windows/winproc.c] (New file) New file handling the message translation between Win16 and Win32. Mon May 13 18:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu> * [windows/mdi.c] [windows/menu.c] Improved WM_MDICREATE and WM_MDICASCADE handling. * [windows/event.c] [objects/bitblt.c] Handle GraphicsExpose event for BitBlt from screen to screen. * [windows/event.c] [windows/win.c] [windows/nonclient.c] Bunch of fixes for problems with -managed. * [windows/win.c] [windows/winpos.c] Changed conditions for WM_SIZE, WM_MOVE, and WM_GETMINMAXINFO in CreateWindow. * [windows/win.c] [windows/queue.c] [misc/user.c] Do not send WM_PARENTNOTIFY when in AppExit and call WH_SHELL on window creation/destruction. * [objects/palette.c] Crude RealizePalette(). At least something is visible in LviewPro. Sun May 12 02:05:00 1996 Thomas Sandford <t.d.g.sandford@prds-grn.demon.co.uk> * [if1632/gdi32.spec] Added Rectangle (use win16 version). * [if1632/kernel32.spec] Added GetWindowsDirectoryA (use win16 GetWindowsDirectory). * [if1632/user32.spec] Added GetSubMenu, MoveWindow, SetScrollPos, SetScrollRange (use win16 versions). Added SetWindowsHookExA (empty stub for now). * [include/handle32.h] Changed #include <malloc.h> to #include <stdlib.h> to prevent hate message from FreeBSD compiler. * [win32/newfns.c] Added new function SetWindowsHookEx32A (empty stub for now). * [win32/user32.c] Removed redundant debugging printf statement. Sun May 12 01:24:57 1996 Huw D. M. Davies <h.davies1@physics.oxford.ac.uk> * [memory/local.c] Avoid creating adjacent free blocks. Free the block in LocalReAlloc() before allocating a new one. Fixed LocalReAlloc() for discarded blocks. Fri May 10 23:05:12 1996 Jukka Iivonen <iivonen@cc.helsinki.fi> * [resources/sysres_Fi.rc] ChooseFont and ChooseColor dialogs updated. Fri May 10 17:19:33 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [files/drive.c,if1632/kernel.spec] GetCurrentDirectory(),SetCurrentDirectory() implemented. * [if1632/advapi32.spec] [if1632/kernel.spec] [if1632/shell.spec] [include/windows.h] [include/winreg.h] [loader/main.c] [misc/main.c] [misc/shell.c] [misc/registry.c] Registry fixes: - loads win95 registry databases, - save only updated keys on default, - now adhers to the new function naming standard, - minor cleanups. Tue May 7 22:36:13 1996 Albrecht Kleine <kleine@ak.sax.de> * [combo.c] Added WM_COMMAND-handling for interaction between EDIT and COMBOLBOX and synchronized mine with Greg Kreider's works. * [commdlg.c] Bugfix in ChooseFont: font size handling.
150 lines
4.6 KiB
C
150 lines
4.6 KiB
C
#ifndef __WINE_WINBASE_H
|
|
#define __WINE_WINBASE_H
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
#define LoadAccelerators LoadAcceleratorsW
|
|
#define TranslateAccelat
|
|
#else
|
|
#define LoadAccelerators LoadAcceleratorsA
|
|
#endif
|
|
|
|
|
|
#define INVALID_HANDLE_VALUE ((HANDLE) -1)
|
|
|
|
#define WAIT_FAILED 0xffffffff
|
|
#define WAIT_OBJECT_0 0
|
|
#define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
|
|
#define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
|
|
#define WAIT_TIMEOUT STATUS_TIMEOUT
|
|
|
|
#define PAGE_NOACCESS 0x01
|
|
#define PAGE_READONLY 0x02
|
|
#define PAGE_READWRITE 0x04
|
|
#define PAGE_WRITECOPY 0x08
|
|
#define PAGE_EXECUTE 0x10
|
|
#define PAGE_EXECUTE_READ 0x20
|
|
#define PAGE_EXECUTE_READWRITE 0x40
|
|
#define PAGE_EXECUTE_WRITECOPY 0x80
|
|
#define PAGE_GUARD 0x100
|
|
#define PAGE_NOCACHE 0x200
|
|
|
|
#define MEM_COMMIT 0x00001000
|
|
#define MEM_RESERVE 0x00002000
|
|
#define MEM_DECOMMIT 0x00004000
|
|
#define MEM_RELEASE 0x00008000
|
|
#define MEM_FREE 0x00010000
|
|
#define MEM_PRIVATE 0x00020000
|
|
#define MEM_MAPPED 0x00040000
|
|
#define MEM_TOP_DOWN 0x00100000
|
|
|
|
struct _EXCEPTION_POINTERS;
|
|
|
|
typedef LONG (TOP_LEVEL_EXCEPTION_FILTER)(struct _EXCEPTION_POINTERS *);
|
|
|
|
TOP_LEVEL_EXCEPTION_FILTER *SetUnhandledExceptionFilter(TOP_LEVEL_EXCEPTION_FILTER *func);
|
|
|
|
/*WINAPI int SetErrorMode(int);*/
|
|
|
|
#define STATUS_WAIT_0 0x00000000
|
|
#define STATUS_ABANDONED_WAIT_0 0x00000080
|
|
#define STATUS_USER_APC 0x000000C0
|
|
#define STATUS_TIMEOUT 0x00000102
|
|
#define STATUS_PENDING 0x00000103
|
|
#define STATUS_GUARD_PAGE_VIOLATION 0x80000001
|
|
#define STATUS_DATATYPE_MISALIGNMENT 0x80000002
|
|
#define STATUS_BREAKPOINT 0x80000003
|
|
#define STATUS_SINGLE_STEP 0x80000004
|
|
#define STATUS_ACCESS_VIOLATION 0xC0000005
|
|
#define STATUS_IN_PAGE_ERROR 0xC0000006
|
|
#define STATUS_NO_MEMORY 0xC0000017
|
|
#define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
|
|
#define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
|
|
#define STATUS_INVALID_DISPOSITION 0xC0000026
|
|
#define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
|
|
#define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
|
|
#define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
|
|
#define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
|
|
#define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
|
|
#define STATUS_FLOAT_OVERFLOW 0xC0000091
|
|
#define STATUS_FLOAT_STACK_CHECK 0xC0000092
|
|
#define STATUS_FLOAT_UNDERFLOW 0xC0000093
|
|
#define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
|
|
#define STATUS_INTEGER_OVERFLOW 0xC0000095
|
|
#define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
|
|
#define STATUS_STACK_OVERFLOW 0xC00000FD
|
|
#define STATUS_CONTROL_C_EXIT 0xC000013A
|
|
|
|
#define DUPLICATE_CLOSE_SOURCE 0x00000001
|
|
#define DUPLICATE_SAME_ACCESS 0x00000002
|
|
|
|
typedef struct
|
|
{
|
|
int type;
|
|
} exception;
|
|
|
|
typedef struct
|
|
{
|
|
int pad[39];
|
|
int edi;
|
|
int esi;
|
|
int ebx;
|
|
int edx;
|
|
int ecx;
|
|
int eax;
|
|
|
|
int ebp;
|
|
int eip;
|
|
int cs;
|
|
int eflags;
|
|
int esp;
|
|
int ss;
|
|
} exception_info;
|
|
|
|
/* Could this type be considered opaque? */
|
|
typedef struct {
|
|
LPVOID DebugInfo;
|
|
LONG LockCount;
|
|
LONG RecursionCount;
|
|
HANDLE OwningThread;
|
|
HANDLE LockSemaphore;
|
|
DWORD Reserved;
|
|
}CRITICAL_SECTION;
|
|
|
|
/*DWORD WINAPI GetVersion( void );*/
|
|
|
|
int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);
|
|
|
|
#define GMEM_FIXED 0x0000
|
|
#define GMEM_MOVEABLE 0x0002
|
|
|
|
HACCEL32 LoadAcceleratorsA( HINSTANCE, const char *);
|
|
#define FreeModule(hLibModule) FreeLibrary((hLibModule))
|
|
#define MakeProcInstance(lpProc,hInstance) (lpProc)
|
|
#define FreeProcInstance(lpProc) (lpProc)
|
|
|
|
|
|
void DeleteCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
void EnterCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
int GetCurrentProcessId(void);
|
|
HANDLE32 GetProcessHeap(void);
|
|
LPVOID HeapAlloc(HANDLE32,DWORD,DWORD);
|
|
DWORD HeapCompact(HANDLE32,DWORD);
|
|
HANDLE32 HeapCreate(DWORD,DWORD,DWORD);
|
|
BOOL HeapDestroy(HANDLE32);
|
|
BOOL HeapFree(HANDLE32,DWORD,LPVOID);
|
|
BOOL HeapLock(HANDLE32);
|
|
LPVOID HeapReAlloc(HANDLE32,DWORD,LPVOID,DWORD);
|
|
DWORD HeapSize(HANDLE32,DWORD,LPVOID);
|
|
BOOL HeapUnlock(HANDLE32);
|
|
BOOL HeapValidate(HANDLE32,DWORD,LPVOID);
|
|
void InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
void LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
|
|
HANDLE OpenProcess(DWORD access, BOOL inherit, DWORD id);
|
|
int TerminateProcess(HANDLE h, int ret);
|
|
LPVOID VirtualAlloc(LPVOID addr,DWORD size,DWORD type,DWORD protect);
|
|
BOOL VirtualFree( LPVOID addr, DWORD size, DWORD type );
|
|
|
|
#endif /* __WINE_WINBASE_H */
|