#include <win32k.h>
-#define NDEBUG
-#include <debug.h>
+DBG_DEFAULT_CHANNEL(UserIcon);
static PAGED_LOOKASIDE_LIST gProcessLookasideList;
static LIST_ENTRY gCurIconList;
if (! ReferenceCurIconByProcess(CurIcon))
{
- DPRINT1("Failed to add process\n");
+ ERR("Failed to add process\n");
UserDeleteObject(hCurIcon, otCursorIcon);
UserDereferenceObject(CurIcon);
return NULL;
Current = CONTAINING_RECORD(CurIcon->ProcessList.Flink, CURICON_PROCESS, ListEntry);
if (Current->Process != W32Process)
{
- DPRINT1("Trying to destroy private icon/cursor of another process\n");
+ ERR("Trying to destroy private icon/cursor of another process\n");
return FALSE;
}
}
else if (! ProcessCleanup)
{
- DPRINT("Trying to destroy shared icon/cursor\n");
+ TRACE("Trying to destroy shared icon/cursor\n");
return FALSE;
}
BOOL Ret = FALSE;
DWORD colorBpp = 0;
- DPRINT("Enter NtUserGetIconInfo\n");
+ TRACE("Enter NtUserGetIconInfo\n");
UserEnterExclusive();
if (!IconInfo)
UserDereferenceObject(CurIcon);
leave:
- DPRINT("Leave NtUserGetIconInfo, ret=%i\n", Ret);
+ TRACE("Leave NtUserGetIconInfo, ret=%i\n", Ret);
UserLeave();
return Ret;
NTSTATUS Status = STATUS_SUCCESS;
BOOL bRet = FALSE;
- DPRINT("Enter NtUserGetIconSize\n");
+ TRACE("Enter NtUserGetIconSize\n");
UserEnterExclusive();
if (!(CurIcon = UserGetCurIconObject(hCurIcon)))
UserDereferenceObject(CurIcon);
cleanup:
- DPRINT("Leave NtUserGetIconSize, ret=%i\n", bRet);
+ TRACE("Leave NtUserGetIconSize, ret=%i\n", bRet);
UserLeave();
return bRet;
}
BOOL Ret = FALSE;
DECLARE_RETURN(BOOL);
- DPRINT("Enter NtUserGetCursorInfo\n");
+ TRACE("Enter NtUserGetCursorInfo\n");
UserEnterExclusive();
CurInfo = IntGetSysCursorInfo();
RETURN(Ret);
CLEANUP:
- DPRINT("Leave NtUserGetCursorInfo, ret=%i\n",_ret_);
+ TRACE("Leave NtUserGetCursorInfo, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
BOOL ret;
DECLARE_RETURN(BOOL);
- DPRINT("Enter NtUserDestroyCursorIcon\n");
+ TRACE("Enter NtUserDestroyCursorIcon\n");
UserEnterExclusive();
if (!(CurIcon = UserGetCurIconObject(hCurIcon)))
RETURN(ret);
CLEANUP:
- DPRINT("Leave NtUserDestroyCursorIcon, ret=%i\n",_ret_);
+ TRACE("Leave NtUserDestroyCursorIcon, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
HANDLE Ret = (HANDLE)0;
DECLARE_RETURN(HICON);
- DPRINT("Enter NtUserFindExistingCursorIcon\n");
+ TRACE("Enter NtUserFindExistingCursorIcon\n");
UserEnterExclusive();
CurIcon = IntFindExistingCurIconObject(hModule, hRsrc, cx, cy);
RETURN((HANDLE)0);
CLEANUP:
- DPRINT("Leave NtUserFindExistingCursorIcon, ret=%i\n",_ret_);
+ TRACE("Leave NtUserFindExistingCursorIcon, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
NTSTATUS Status;
DECLARE_RETURN(BOOL);
- DPRINT("Enter NtUserGetClipCursor\n");
+ TRACE("Enter NtUserGetClipCursor\n");
UserEnterExclusive();
if (!lpRect)
RETURN(TRUE);
CLEANUP:
- DPRINT("Leave NtUserGetClipCursor, ret=%i\n",_ret_);
+ TRACE("Leave NtUserGetClipCursor, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
PCURICON_OBJECT pcurOld, pcurNew;
HCURSOR hOldCursor = NULL;
- DPRINT("Enter NtUserSetCursor\n");
+ TRACE("Enter NtUserSetCursor\n");
UserEnterExclusive();
if (hCursor)
BOOL Ret = FALSE;
DECLARE_RETURN(BOOL);
- DPRINT("Enter NtUserSetCursorContents\n");
+ TRACE("Enter NtUserSetCursorContents\n");
UserEnterExclusive();
if (!(CurIcon = UserGetCurIconObject(hCurIcon)))
RETURN(Ret);
CLEANUP:
- DPRINT("Leave NtUserSetCursorContents, ret=%i\n",_ret_);
+ TRACE("Leave NtUserSetCursorContents, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
BOOL Ret = FALSE;
DECLARE_RETURN(BOOL);
- DPRINT("Enter NtUserSetCursorIconData\n");
+ TRACE("Enter NtUserSetCursorIconData\n");
UserEnterExclusive();
if (!(CurIcon = UserGetCurIconObject(Handle)))
RETURN(Ret);
CLEANUP:
- DPRINT("Leave NtUserSetCursorIconData, ret=%i\n",_ret_);
+ TRACE("Leave NtUserSetCursorIconData, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
BOOL Ret = FALSE;
DECLARE_RETURN(BOOL);
- DPRINT("Enter NtUserSetCursorIconData\n");
+ TRACE("Enter NtUserSetCursorIconData\n");
UserEnterExclusive();
if (!(CurIcon = UserGetCurIconObject(hCurIcon)))
CLEANUP:
- DPRINT("Leave NtUserSetCursorIconData, ret=%i\n",_ret_);
+ TRACE("Leave NtUserSetCursorIconData, ret=%i\n",_ret_);
UserLeave();
END_CLEANUP;
}
hbmColor = pIcon->IconInfo.hbmColor;
if (istepIfAniCur)
- DPRINT1("NtUserDrawIconEx: istepIfAniCur is not supported!\n");
+ ERR("NtUserDrawIconEx: istepIfAniCur is not supported!\n");
if (!hbmMask || !GreGetObject(hbmMask, sizeof(BITMAP), (PVOID)&bm))
{
if(!(hMemDC = NtGdiCreateCompatibleDC(hDc)))
{
- DPRINT1("NtGdiCreateCompatibleDC failed!\n");
+ ERR("NtGdiCreateCompatibleDC failed!\n");
return FALSE;
}
hDestDC = NtGdiCreateCompatibleDC(hDc);
if(!hDestDC)
{
- DPRINT1("NtGdiCreateCompatibleDC failed!\n");
+ ERR("NtGdiCreateCompatibleDC failed!\n");
Ret = FALSE;
goto Cleanup ;
}
hOffBmp = NtGdiCreateCompatibleBitmap(hDc, cxWidth, cyHeight);
if(!hOffBmp)
{
- DPRINT1("NtGdiCreateCompatibleBitmap failed!\n");
+ ERR("NtGdiCreateCompatibleBitmap failed!\n");
goto Cleanup ;
}
hOldOffBmp = NtGdiSelectBitmap(hDestDC, hOffBmp);
hMemBmp = BITMAP_CopyBitmap(hbmColor);
if(!hMemBmp)
{
- DPRINT1("BITMAP_CopyBitmap failed!");
+ ERR("BITMAP_CopyBitmap failed!");
goto CleanupAlpha;
}
psurf = SURFACE_ShareLockSurface(hMemBmp);
if(!psurf)
{
- DPRINT1("SURFACE_LockSurface failed!\n");
+ ERR("SURFACE_LockSurface failed!\n");
goto CleanupAlpha;
}
PCURICON_OBJECT pIcon;
BOOL Ret;
- DPRINT("Enter NtUserDrawIconEx\n");
+ TRACE("Enter NtUserDrawIconEx\n");
UserEnterExclusive();
if (!(pIcon = UserGetCurIconObject(hIcon)))
{
- DPRINT1("UserGetCurIconObject() failed!\n");
+ ERR("UserGetCurIconObject() failed!\n");
UserLeave();
return FALSE;
}