wintab32: Implement the ability to return the number of devices and cursors.

This commit is contained in:
Jeremy White 2007-12-24 13:34:46 -06:00 committed by Alexandre Julliard
parent f5adac3b19
commit 3036e7f626
1 changed files with 9 additions and 0 deletions

View File

@ -950,6 +950,7 @@ UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
switch (nIndex)
{
WORD version;
UINT num;
case IFC_WINTABID:
{
static const WCHAR driver[] = {'W','i','n','e',' ','W','i','n','t','a','b',' ','1','.','1',0};
@ -964,6 +965,14 @@ UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
version = (0x00) | (0x01 << 8);
rc = CopyTabletData(lpOutput, &version,sizeof(WORD));
break;
case IFC_NDEVICES:
num = 1;
rc = CopyTabletData(lpOutput, &num,sizeof(num));
break;
case IFC_NCURSORS:
num = gNumCursors;
rc = CopyTabletData(lpOutput, &num,sizeof(num));
break;
default:
FIXME("WTI_INTERFACE unhandled index %i\n",nIndex);
rc = 0;