Ignore:
Timestamp:
May 31, 2002, 11:54:05 AM (23 years ago)
Author:
sandervl
Message:

Generate injected WH_MOUSE_LL hook event in SetCursorPos (with LLMHF_INJECTED flag set)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winicon.cpp

    r7237 r8533  
    1 /* $Id: winicon.cpp,v 1.33 2001-10-27 10:30:11 sandervl Exp $ */
     1/* $Id: winicon.cpp,v 1.34 2002-05-31 09:54:05 sandervl Exp $ */
    22/*
    33 * Win32 Icon Code for OS/2
     
    451451    return hOldCursor;
    452452}
    453 //******************************************************************************
    454 //******************************************************************************
    455 BOOL WIN32API GetCursorPos( PPOINT lpPoint)
    456 {
    457     dprintf2(("USER32: GetCursorPos %x", lpPoint));
    458 
    459     if (!lpPoint) return FALSE;
    460 
    461     if (OSLibWinQueryPointerPos(lpPoint)) //POINT == POINTL
    462     {
    463         mapScreenPoint((OSLIBPOINT*)lpPoint);
    464         return TRUE;
    465     }
    466     else return FALSE;
    467 }
    468 //******************************************************************************
    469 //******************************************************************************
    470 BOOL WIN32API SetCursorPos( int X, int Y)
    471 {
    472     dprintf(("USER32: SetCursorPos %d %d", X,Y));
    473     return OSLibWinSetPointerPos(X, mapScreenY(Y));
    474 }
    475 //******************************************************************************
    476 //******************************************************************************
    477 BOOL WIN32API ClipCursor(const RECT * lpRect)
    478 {
    479     if(lpRect) {
    480          dprintf(("USER32: ClipCursor (%d,%d)(%d,%d)", lpRect->left, lpRect->top, lpRect->right, lpRect->bottom));
    481     }
    482     else dprintf(("USER32: ClipCursor NULL"));
    483     return OSLibWinClipCursor(lpRect);
    484 }
    485 //******************************************************************************
    486 //******************************************************************************
    487 BOOL WIN32API GetClipCursor( LPRECT lpRect)
    488 {
    489     dprintf(("USER32: GetClipCursor %x", lpRect));
    490     return OSLibWinGetClipCursor(lpRect);
    491 }
    492 //******************************************************************************
    493 //******************************************************************************
    494453/*****************************************************************************
    495454 * Name      : BOOL WIN32API SetSystemCursor
Note: See TracChangeset for help on using the changeset viewer.