ReactOS  0.4.13-dev-100-gc8611ae
error.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

ULONG APIENTRY EngGetLastError (VOID)
 
VOID APIENTRY EngSetLastError (_In_ ULONG iError)
 
VOID FASTCALL SetLastNtError (NTSTATUS Status)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 3 of file error.c.

Function Documentation

◆ EngGetLastError()

ULONG APIENTRY EngGetLastError ( VOID  )

Definition at line 12 of file error.c.

13 {
14  PTEB pTeb = NtCurrentTeb();
15  if (pTeb)
16  return NtCurrentTeb()->LastErrorValue;
17  else
18  return ERROR_SUCCESS;
19 }
#define ERROR_SUCCESS
Definition: deptool.c:10
Definition: compat.h:484
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420

Referenced by co_IntShellHookNotify(), IntSetClassAtom(), NtUserMessageCall(), VerifyMenu(), and VerifyWnd().

◆ EngSetLastError()

VOID APIENTRY EngSetLastError ( _In_ ULONG  iError)

Definition at line 27 of file error.c.

28 {
29  PTEB pTeb = NtCurrentTeb();
30  if (pTeb)
31  pTeb->LastErrorValue = iError;
32 }
Definition: compat.h:484
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420
ULONG LastErrorValue
Definition: compat.h:492

Referenced by _Success_(), CheckWinstaAttributeAccess(), co_IntDoSendMessage(), co_IntGetScrollBarInfo(), co_IntGetScrollInfo(), co_IntRegisterLogonProcess(), co_IntSendMessageTimeout(), co_IntSendMessageTimeoutSingle(), co_IntSetParent(), co_IntSetScrollBarInfo(), co_IntSetScrollInfo(), co_IntSetWindowLongPtr(), co_MsqSendMessage(), co_UserCreateWindowEx(), co_UserDestroyWindow(), co_UserHideCaret(), co_UserSetParent(), co_UserShowCaret(), co_UserShowScrollBar(), co_WinPosSetWindowPos(), DCU_SetDcUndeletable(), DdAllocateObject(), DefSetText(), DefWndGetIcon(), DefWndSetIcon(), DIB_CreateDIBSection(), EngAlphaBlend(), ftGdiGetGlyphOutline(), ftGdiGetRasterizerCaps(), ftGdiGetTextCharsetInfo(), ftGdiGetTextMetricsW(), GdiSelectVisRgn(), GreCreateDIBitmapInternal(), GreCreateFrameRgn(), GreCreatePolyPolygonRgn(), GreDPtoLP(), GreExtTextOutW(), GreGetBitmapDimension(), GreGetBkColor(), GreGetBkMode(), GreGetDCPoint(), GreGetDIBitsInternal(), GreGetGraphicsMode(), GreGetKerningPairs(), GreGetMapMode(), GreGetTextColor(), GreGetTextExtentExW(), GreGetTextExtentW(), GreGradientFill(), GreLPtoDP(), GreMoveTo(), GreSetBrushOrg(), GreSetViewportOrgEx(), GreStretchBltMask(), IntAddFormatedData(), IntAllowSetForegroundWindow(), IntArc(), IntBlockInput(), IntCheckProcessDesktopClasses(), IntCreateClass(), IntCreateCompatibleBitmap(), IntCreateCurIconHandle(), IntCreateWindow(), IntCreateWindowStation(), IntDeferWindowPos(), IntDispatchMessage(), IntEndDeferWindowPosEx(), IntExtTextOutW(), IntFillArc(), IntFillRect(), IntGdiDeleteColorSpace(), IntGdiDeleteDC(), IntGdiExtCreatePen(), IntGdiGetFontResourceInfo(), IntGdiLineTo(), IntGdiLoadFontsFromMemory(), IntGdiPolygon(), IntGdiPolyPatBlt(), IntGdiRealizePalette(), IntGdiSetBkColor(), IntGdiSetBkMode(), IntGdiSetHookFlags(), IntGdiSetTextAlign(), IntGdiSetTextColor(), IntGetClassForDesktop(), IntGetGlobalHookHandles(), IntGetHookObject(), IntGetSystemPaletteEntries(), intGetTitleBarInfo(), IntInsertMenuItem(), IntLoadSystenIcons(), IntLockSetForegroundWindow(), IntMapVirtualKeyEx(), IntMenuItemInfo(), IntPolygon(), IntRegisterClassAtom(), IntRoundRect(), IntScrollWindowEx(), IntSetCaretBlinkTime(), IntSetClassAtom(), IntSetClassMenuName(), IntSetCursorData(), IntSetDCBrushColor(), IntSetDCPenColor(), IntSetDIBits(), IntSetMenu(), IntSetMenuItemInfo(), IntSetOwner(), IntSetThreadDesktop(), IntSetTimer(), IntTrackPopupMenuEx(), IntUnhookWindowsHook(), IntUpdateLayeredWindowI(), IntValidateWindowStationHandle(), IntWinListChildren(), IntWinListOwnedPopups(), MENU_TrackMenu(), NEWco_IntGetScrollInfo(), NtGdiAbortPath(), NtGdiAlphaBlend(), NtGdiAngleArc(), NtGdiArcInternal(), NtGdiBeginPath(), NtGdiCloseFigure(), NtGdiCombineRgn(), NtGdiCreateBitmap(), NtGdiCreateCompatibleBitmap(), NtGdiCreateDIBBrush(), NtGdiCreateDIBitmapInternal(), NtGdiCreateDIBSection(), NtGdiCreateHalftonePalette(), NtGdiCreatePen(), NtGdiCreateRectRgn(), NtGdiDeleteObjectApp(), NtGdiEllipse(), NtGdiEndPath(), NtGdiEscape(), NtGdiExcludeClipRect(), NtGdiExtCreatePen(), NtGdiExtCreateRegion(), NtGdiExtEscape(), NtGdiExtFloodFill(), NtGdiExtSelectClipRgn(), NtGdiExtTextOutW(), NtGdiFillPath(), NtGdiFlattenPath(), NtGdiGetBitmapBits(), NtGdiGetCharABCWidthsW(), NtGdiGetCharSet(), NtGdiGetCharWidthW(), NtGdiGetDCDword(), NtGdiGetDCObject(), NtGdiGetDCPoint(), NtGdiGetDeviceCaps(), NtGdiGetDeviceGammaRamp(), NtGdiGetDeviceWidth(), NtGdiGetFontData(), NtGdiGetFontFamilyInfo(), NtGdiGetFontResourceInfoInternalW(), NtGdiGetFontUnicodeRanges(), NtGdiGetGlyphOutline(), NtGdiGetKerningPairs(), NtGdiGetNearestColor(), NtGdiGetOutlineTextMetricsInternalW(), NtGdiGetPath(), NtGdiGetPixel(), NtGdiGetRandomRgn(), NtGdiGetRealizationInfo(), NtGdiGetTextCharsetInfo(), NtGdiGetTextExtentExW(), NtGdiGetTextFaceW(), NtGdiGetTransform(), NtGdiGradientFill(), NtGdiIntersectClipRect(), NtGdiInvertRgn(), NtGdiLineTo(), NtGdiMaskBlt(), NtGdiMirrorWindowOrg(), NtGdiModifyWorldTransform(), NtGdiOffsetViewportOrgEx(), NtGdiOffsetWindowOrgEx(), NtGdiPatBlt(), NtGdiPathToRegion(), NtGdiPolyPatBlt(), NtGdiPolyPolyDraw(), NtGdiPtVisible(), NtGdiRectangle(), NtGdiRectVisible(), NtGdiRestoreDC(), NtGdiRoundRect(), NtGdiSaveDC(), NtGdiScaleViewportExtEx(), NtGdiScaleWindowExtEx(), NtGdiSelectClipPath(), NtGdiSetBitmapBits(), NtGdiSetBitmapDimension(), NtGdiSetColorSpace(), NtGdiSetDeviceGammaRamp(), NtGdiSetDIBitsToDeviceInternal(), NtGdiSetLayout(), NtGdiSetMetaRgn(), NtGdiSetMiterLimit(), NtGdiSetPixel(), NtGdiSetPixelFormat(), NtGdiSetTextJustification(), NtGdiSetViewportOrgEx(), NtGdiSetWindowOrgEx(), NtGdiStretchDIBitsInternal(), NtGdiStrokeAndFillPath(), NtGdiStrokePath(), NtGdiSwapBuffers(), NtGdiTransformPoints(), NtGdiTransparentBlt(), NtGdiUpdateColors(), NtGdiWidenPath(), NtUserAlterWindowStyle(), NtUserAttachThreadInput(), NtUserCalcMenuBar(), NtUserCallNoParam(), NtUserCallOneParam(), NtUserCallTwoParam(), NtUserChangeDisplaySettings(), NtUserClipCursor(), NtUserCloseDesktop(), NtUserCreateCaret(), NtUserCreateWindowEx(), NtUserDeferWindowPos(), NtUserDefSetText(), NtUserDestroyMenu(), NtUserDrawMenuBarTemp(), NtUserEnableScrollBar(), NtUserEnumDisplayMonitors(), NtUserFindWindowEx(), NtUserFlashWindowEx(), NtUserGetAsyncKeyState(), NtUserGetClassInfo(), NtUserGetClipboardData(), NtUserGetClipboardFormatName(), NtUserGetComboBoxInfo(), NtUserGetCursorInfo(), NtUserGetGuiResources(), NtUserGetGUIThreadInfo(), NtUserGetKeyNameText(), NtUserGetMenuBarInfo(), NtUserGetMessage(), NtUserGetMouseMovePointsEx(), NtUserGetThreadDesktop(), NtUserGetTitleBarInfo(), NtUserGetUpdateRect(), NtUserGetWOWClass(), NtUserHiliteMenuItem(), NtUserInternalGetWindowText(), NtUserInvalidateRgn(), NtUserLoadKeyboardLayoutEx(), NtUserLockWindowStation(), NtUserMessageCall(), NtUserMinMaximize(), NtUserMonitorFromPoint(), NtUserMonitorFromRect(), NtUserMonitorFromWindow(), NtUserPaintMenuBar(), NtUserPeekMessage(), NtUserPrintWindow(), NtUserRedrawWindow(), NtUserRegisterClassExWOW(), NtUserRegisterHotKey(), NtUserRegisterUserApiHook(), NtUserRegisterWindowMessage(), NtUserSendInput(), NtUserSetClassLong(), NtUserSetClipboardViewer(), NtUserSetCursor(), NtUserSetScrollBarInfo(), NtUserSetSysColors(), NtUserSetSystemCursor(), NtUserSetSystemMenu(), NtUserSetWindowFNID(), NtUserSetWindowLong(), NtUserSetWindowsHookEx(), NtUserSetWindowStationUser(), NtUserSetWindowWord(), NtUserSetWinEventHook(), NtUserShowWindow(), NtUserShowWindowAsync(), NtUserTrackMouseEvent(), NtUserTrackPopupMenuEx(), NtUserUnlockWindowStation(), NtUserUpdateLayeredWindow(), NtUserValidateHandleSecure(), NtUserWaitForInputIdle(), PATH_CreatePath(), PATH_FillPathEx(), PATH_PathToRegion(), PATH_StrokePath(), PATH_WidenPath(), SetLastNtError(), SpiGetSet(), SystemTimerSet(), UserClipCursor(), UserCloseClipboard(), UserDestroyMenu(), UserEmptyClipboard(), UserEnumClipboardFormats(), UserGetAccelObject(), UserGetClassName(), UserGetCurIconObject(), UserGetKeyState(), UserGetMenuObject(), UserGetMonitorObject(), UserGetObject(), UserGetWindowObject(), UserInsertMenuItem(), UserMenuInfo(), UserMenuItemInfo(), UserMonitorFromPoint(), UserMonitorFromRect(), UserOpenClipboard(), UserOpenInputDesktop(), UserPostMessage(), UserPostThreadMessage(), UserRegisterClass(), UserRegisterHotKey(), UserSendNotifyMessage(), UserSetClassLongPtr(), UserSetClipboardData(), UserSystemParametersInfo(), UserUnregisterClass(), UserUpdateUiState(), VerifyMenu(), and VerifyWnd().

◆ SetLastNtError()

VOID FASTCALL SetLastNtError ( NTSTATUS  Status)

Definition at line 36 of file error.c.

37 {
39 }
VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition: error.c:27
Status
Definition: gdiplustypes.h:24
ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
Definition: error.c:96

Referenced by _Success_(), co_IntSendMessageTimeoutSingle(), co_IntWaitMessage(), ftGdiGetTextMetricsW(), IntAddAtom(), IntCreateClass(), IntCreateDesktop(), IntCreateWindow(), IntCreateWindowStation(), IntGetAtomName(), IntGetMenuItemInfo(), IntGetWinStaForCbAccess(), IntRegisterClassAtom(), IntResolveDesktop(), IntSetClassMenuName(), IntSetMenuItemInfo(), IntSetThreadDesktop(), IntValidateDesktopHandle(), IntValidateWindowStationHandle(), NtGdiCreateColorSpace(), NtGdiCreateDIBitmapInternal(), NtGdiCreateDIBSection(), NtGdiExtCreatePen(), NtGdiExtCreateRegion(), NtGdiExtEscape(), NtGdiGetCharABCWidthsW(), NtGdiGetDCDword(), NtGdiGetDeviceGammaRamp(), NtGdiGetFontResourceInfoInternalW(), NtGdiGetPath(), NtGdiGetRasterizerCaps(), NtGdiGetRealizationInfo(), NtGdiGetTextCharsetInfo(), NtGdiGetTextExtentExW(), NtGdiGetTextFaceW(), NtGdiGetTextMetricsW(), NtGdiGradientFill(), NtGdiOffsetViewportOrgEx(), NtGdiOffsetWindowOrgEx(), NtGdiOpenDCW(), NtGdiPolyDraw(), NtGdiPolyPatBlt(), NtGdiRectVisible(), NtGdiScaleViewportExtEx(), NtGdiScaleWindowExtEx(), NtGdiSetDeviceGammaRamp(), NtGdiSetMiterLimit(), NtGdiSetViewportOrgEx(), NtGdiSetWindowOrgEx(), NtUserBeginPaint(), NtUserBuildHwndList(), NtUserCallOneParam(), NtUserChangeDisplaySettings(), NtUserCloseDesktop(), NtUserCloseWindowStation(), NtUserCopyAcceleratorTable(), NtUserCreateAcceleratorTable(), NtUserCreateWindowEx(), NtUserCreateWindowStation(), NtUserDefSetText(), NtUserDispatchMessage(), NtUserDrawCaptionTemp(), NtUserDrawMenuBarTemp(), NtUserEnumDisplayMonitors(), NtUserFindWindowEx(), NtUserFlashWindowEx(), NtUserGetCaretPos(), NtUserGetClassInfo(), NtUserGetClassName(), NtUserGetClipboardData(), NtUserGetClipboardFormatName(), NtUserGetClipCursor(), NtUserGetComboBoxInfo(), NtUserGetCursorFrameInfo(), NtUserGetCursorInfo(), NtUserGetGuiResources(), NtUserGetGUIThreadInfo(), NtUserGetIconSize(), NtUserGetInternalWindowPos(), NtUserGetKeyboardLayoutList(), NtUserGetKeyboardLayoutName(), NtUserGetKeyboardState(), NtUserGetKeyNameText(), NtUserGetLayeredWindowAttributes(), NtUserGetListBoxInfo(), NtUserGetMenuBarInfo(), NtUserGetMenuItemRect(), NtUserGetMessage(), NtUserGetMonitorInfo(), NtUserGetMouseMovePointsEx(), NtUserGetObjectInformation(), NtUserGetPriorityClipboardFormat(), NtUserGetScrollBarInfo(), NtUserGetWindowPlacement(), NtUserGetWOWClass(), NtUserInitializeClientPfnArrays(), NtUserInternalGetWindowText(), NtUserLoadKeyboardLayoutEx(), NtUserLockWindowStation(), NtUserMonitorFromRect(), NtUserOpenDesktop(), NtUserOpenWindowStation(), NtUserPeekMessage(), NtUserPostThreadMessage(), NtUserProcessConnect(), NtUserRegisterClassExWOW(), NtUserRegisterWindowMessage(), NtUserSBGetParms(), NtUserScrollDC(), NtUserScrollWindowEx(), NtUserSendInput(), NtUserSetClassLong(), NtUserSetClipboardData(), NtUserSetCursorIconData(), NtUserSetInternalWindowPos(), NtUserSetKeyboardState(), NtUserSetObjectInformation(), NtUserSetScrollBarInfo(), NtUserSetScrollInfo(), NtUserSetShellWindowEx(), NtUserSetSysColors(), NtUserSetWindowPlacement(), NtUserSetWindowsHookEx(), NtUserThunkedMenuItemInfo(), NtUserToUnicodeEx(), NtUserTrackMouseEvent(), NtUserTranslateAccelerator(), NtUserTranslateMessage(), NtUserUnlockWindowStation(), NtUserUnregisterClass(), NtUserWaitForInputIdle(), SpiMemCopy(), UserCreateHeap(), UserCreateMenu(), UserFreeHandle(), UserGetClassName(), UserGetShellWindow(), UserInsertMenuItem(), UserMenuInfo(), UserMenuItemInfo(), UserObjectInDestroy(), UserOpenInputDesktop(), UserSetProcessWindowStation(), W32kCreateFileSection(), W32kMapViewOfSection(), and W32kOpenFile().