mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
42d20f9dca
Moved all ttydrv source files to dlls/ttydrv. Load functions pointer for the USER driver from the graphics driver dll with GetProcAddress.
95 lines
3.3 KiB
C
95 lines
3.3 KiB
C
/*
|
|
* USER definitions
|
|
*
|
|
* Copyright 1993 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_USER_H
|
|
#define __WINE_USER_H
|
|
|
|
#include "ldt.h"
|
|
#include "local.h"
|
|
|
|
extern WORD USER_HeapSel;
|
|
|
|
#define USER_HEAP_ALLOC(size) \
|
|
LOCAL_Alloc( USER_HeapSel, LMEM_FIXED, (size) )
|
|
#define USER_HEAP_REALLOC(handle,size) \
|
|
LOCAL_ReAlloc( USER_HeapSel, (handle), (size), LMEM_FIXED )
|
|
#define USER_HEAP_FREE(handle) \
|
|
LOCAL_Free( USER_HeapSel, (handle) )
|
|
#define USER_HEAP_LIN_ADDR(handle) \
|
|
((handle) ? PTR_SEG_OFF_TO_LIN(USER_HeapSel, (handle)) : NULL)
|
|
#define USER_HEAP_SEG_ADDR(handle) \
|
|
((handle) ? PTR_SEG_OFF_TO_SEGPTR(USER_HeapSel, (handle)) : (SEGPTR)0)
|
|
|
|
#define USUD_LOCALALLOC 0x0001
|
|
#define USUD_LOCALFREE 0x0002
|
|
#define USUD_LOCALCOMPACT 0x0003
|
|
#define USUD_LOCALHEAP 0x0004
|
|
#define USUD_FIRSTCLASS 0x0005
|
|
|
|
struct tagCURSORICONINFO;
|
|
struct DIDEVICEOBJECTDATA;
|
|
|
|
#define WINE_KEYBOARD_CONFIG_AUTO_REPEAT 0x00000001
|
|
typedef struct tagKEYBOARD_CONFIG {
|
|
BOOL auto_repeat;
|
|
} KEYBOARD_CONFIG;
|
|
|
|
typedef VOID CALLBACK (*LPMOUSE_EVENT_PROC)(DWORD,DWORD,DWORD,DWORD,DWORD);
|
|
|
|
struct tagWND;
|
|
|
|
typedef struct tagUSER_DRIVER {
|
|
/* event functions */
|
|
void (*pSynchronize)(void);
|
|
BOOL (*pCheckFocus)(void);
|
|
void (*pUserRepaintDisable)(BOOL);
|
|
/* keyboard functions */
|
|
void (*pInitKeyboard)(void);
|
|
WORD (*pVkKeyScan)(CHAR);
|
|
UINT16 (*pMapVirtualKey)(UINT16, UINT16);
|
|
INT16 (*pGetKeyNameText)(LONG, LPSTR, INT16);
|
|
INT16 (*pToAscii)(UINT16, UINT16, LPBYTE, LPVOID, UINT16);
|
|
BOOL (*pGetBeepActive)(void);
|
|
void (*pSetBeepActive)(BOOL);
|
|
void (*pBeep)(void);
|
|
BOOL (*pGetDIState)(DWORD, LPVOID);
|
|
BOOL (*pGetDIData)(BYTE *, DWORD, struct DIDEVICEOBJECTDATA *, LPDWORD, DWORD);
|
|
void (*pGetKeyboardConfig)(KEYBOARD_CONFIG *);
|
|
void (*pSetKeyboardConfig)(KEYBOARD_CONFIG *, DWORD);
|
|
/* mouse functions */
|
|
void (*pInitMouse)(LPMOUSE_EVENT_PROC);
|
|
void (*pSetCursor)(struct tagCURSORICONINFO *);
|
|
void (*pMoveCursor)(WORD, WORD);
|
|
/* screen saver functions */
|
|
BOOL (*pGetScreenSaveActive)(void);
|
|
void (*pSetScreenSaveActive)(BOOL);
|
|
int (*pGetScreenSaveTimeout)(void);
|
|
void (*pSetScreenSaveTimeout)(int);
|
|
/* resource functions */
|
|
HANDLE (*pLoadOEMResource)(WORD,WORD);
|
|
/* windowing functions */
|
|
BOOL (*pIsSingleWindow)(void);
|
|
/* clipboard functions */
|
|
void (*pAcquireClipboard)(void); /* Acquire selection */
|
|
void (*pReleaseClipboard)(void); /* Release selection */
|
|
void (*pSetClipboardData)(UINT); /* Set specified selection data */
|
|
BOOL (*pGetClipboardData)(UINT); /* Get specified selection data */
|
|
BOOL (*pIsClipboardFormatAvailable)(UINT); /* Check if specified format is available */
|
|
BOOL (*pRegisterClipboardFormat)(LPCSTR); /* Register a clipboard format */
|
|
BOOL (*pIsSelectionOwner)(void); /* Check if we own the selection */
|
|
void (*pResetSelectionOwner)(struct tagWND *, BOOL);
|
|
} USER_DRIVER;
|
|
|
|
extern USER_DRIVER USER_Driver;
|
|
|
|
WORD WINAPI UserSignalProc( UINT uCode, DWORD dwThreadOrProcessID,
|
|
DWORD dwFlags, HMODULE16 hModule );
|
|
|
|
VOID WINAPI MOUSE_Enable(LPMOUSE_EVENT_PROC lpMouseEventProc);
|
|
VOID WINAPI MOUSE_Disable(VOID);
|
|
|
|
#endif /* __WINE_USER_H */
|