2000-08-10 03:16:19 +02:00
|
|
|
/*
|
|
|
|
* TTYDRV USER driver functions
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
2001-11-06 21:57:11 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
2000-08-10 03:16:19 +02:00
|
|
|
#include "dinput.h"
|
|
|
|
#include "gdi.h"
|
|
|
|
#include "ttydrv.h"
|
|
|
|
#include "debugtools.h"
|
|
|
|
|
|
|
|
DEFAULT_DEBUG_CHANNEL(ttydrv);
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* VkKeyScan (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
WORD TTYDRV_VkKeyScan(CHAR cChar)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* MapVirtualKey (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* GetKeyNameText (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
|
|
|
|
{
|
|
|
|
if(lpBuffer && nSize)
|
|
|
|
{
|
|
|
|
*lpBuffer = 0;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* ToUnicode (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
2000-10-25 23:34:31 +02:00
|
|
|
INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
|
|
|
|
LPWSTR pwszBuff, int cchBuff, UINT flags )
|
2000-08-10 03:16:19 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* Beep (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
void TTYDRV_Beep(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* SetCursor (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* GetScreenSaveActive (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*
|
|
|
|
* Returns the active status of the screen saver
|
|
|
|
*/
|
|
|
|
BOOL TTYDRV_GetScreenSaveActive(void)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* SetScreenSaveActive (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*
|
|
|
|
* Activate/Deactivate the screen saver
|
|
|
|
*/
|
|
|
|
void TTYDRV_SetScreenSaveActive(BOOL bActivate)
|
|
|
|
{
|
|
|
|
FIXME("(%d): stub\n", bActivate);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* GetScreenSaveTimeout (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*
|
|
|
|
* Return the screen saver timeout
|
|
|
|
*/
|
|
|
|
int TTYDRV_GetScreenSaveTimeout(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* SetScreenSaveTimeout (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*
|
|
|
|
* Set the screen saver timeout
|
|
|
|
*/
|
|
|
|
void TTYDRV_SetScreenSaveTimeout(int nTimeout)
|
|
|
|
{
|
|
|
|
FIXME("(%d): stub\n", nTimeout);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* LoadOEMResource (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
HANDLE TTYDRV_LoadOEMResource(WORD resid, WORD type)
|
|
|
|
{
|
|
|
|
HBITMAP hbitmap;
|
|
|
|
switch(type)
|
|
|
|
{
|
|
|
|
case OEM_BITMAP:
|
|
|
|
hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
|
|
|
|
TTYDRV_DC_CreateBitmap(hbitmap);
|
|
|
|
return hbitmap;
|
|
|
|
case OEM_CURSOR:
|
|
|
|
case OEM_ICON:
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
ERR("unknown type (%d)\n", type);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* AcquireClipboard (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
void TTYDRV_AcquireClipboard(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* ReleaseClipboard (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
void TTYDRV_ReleaseClipboard(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* SetClipboardData (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
void TTYDRV_SetClipboardData(UINT wFormat)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* GetClipboardData (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
BOOL TTYDRV_GetClipboardData(UINT wFormat)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* IsClipboardFormatAvailable (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*/
|
|
|
|
BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* RegisterClipboardFormat (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*
|
|
|
|
* Registers a custom clipboard format
|
|
|
|
* Returns: TRUE - new format registered, FALSE - Format already registered
|
|
|
|
*/
|
|
|
|
BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* IsSelectionOwner (TTYDRV.@)
|
2000-08-10 03:16:19 +02:00
|
|
|
*
|
|
|
|
* Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
|
|
|
|
*/
|
|
|
|
BOOL TTYDRV_IsSelectionOwner(void)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|