source: trunk/include/win/user.h@ 1036

Last change on this file since 1036 was 4, checked in by ktk, 26 years ago

Import

File size: 1.3 KB
Line 
1/* $Id: user.h,v 1.1 1999-05-24 20:19:20 ktk Exp $ */
2
3/*
4 * USER definitions
5 *
6 * Copyright 1993 Alexandre Julliard
7 */
8
9#ifndef __WINE_USER_H
10#define __WINE_USER_H
11
12#include "ldt.h"
13#include "local.h"
14
15extern WORD USER_HeapSel;
16
17#define USER_HEAP_ALLOC(size) \
18 LOCAL_Alloc( USER_HeapSel, LMEM_FIXED, (size) )
19#define USER_HEAP_REALLOC(handle,size) \
20 LOCAL_ReAlloc( USER_HeapSel, (handle), (size), LMEM_FIXED )
21#define USER_HEAP_FREE(handle) \
22 LOCAL_Free( USER_HeapSel, (handle) )
23#define USER_HEAP_LIN_ADDR(handle) \
24 ((handle) ? PTR_SEG_OFF_TO_LIN(USER_HeapSel, (handle)) : NULL)
25#define USER_HEAP_SEG_ADDR(handle) \
26 ((handle) ? PTR_SEG_OFF_TO_SEGPTR(USER_HeapSel, (handle)) : (SEGPTR)0)
27
28#define USUD_LOCALALLOC 0x0001
29#define USUD_LOCALFREE 0x0002
30#define USUD_LOCALCOMPACT 0x0003
31#define USUD_LOCALHEAP 0x0004
32#define USUD_FIRSTCLASS 0x0005
33
34typedef struct tagUSER_DRIVER {
35 BOOL (*pInitialize)(void);
36 void (*pFinalize)(void);
37 void (*pBeginDebugging)(void);
38 void (*pEndDebugging)(void);
39} USER_DRIVER;
40
41extern USER_DRIVER *USER_Driver;
42
43void USER_ExitWindows(void);
44WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID,
45 DWORD dwFlags, HMODULE16 hModule );
46
47#endif /* __WINE_USER_H */
Note: See TracBrowser for help on using the repository browser.