ReactOS 0.4.15-dev-7788-g1ad9096
error.c File Reference
#include <win32k.h>
Include dependency graph for error.c:

Go to the source code of this file.

Functions

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

Function Documentation

◆ EngGetLastError()

ULONG APIENTRY EngGetLastError ( VOID  )

Definition at line 9 of file error.c.

10{
11 PTEB pTeb = NtCurrentTeb();
12 return (pTeb ? pTeb->LastErrorValue : ERROR_SUCCESS);
13}
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NtCurrentTeb
Definition: compat.h:836
ULONG LastErrorValue
Definition: compat.h:843

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

◆ EngSetLastError()

VOID APIENTRY EngSetLastError ( _In_ ULONG  iError)

Definition at line 22 of file error.c.

23{
24 PTEB pTeb = NtCurrentTeb();
25 if (pTeb)
26 pTeb->LastErrorValue = iError;
27}

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(), EngEnumForms(), EngGetForm(), EngGetPrinter(), EngGetPrinterData(), EngGetPrinterDriver(), EngGetType1FontList(), EngSetPrinterData(), EngWritePrinter(), 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(), IntDestroyInputContext(), 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(), 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(), NtGdiGetSpoolMessage(), NtGdiGetTextCharsetInfo(), NtGdiGetTextExtentExW(), NtGdiGetTextFaceW(), NtGdiGetTransform(), NtGdiGradientFill(), NtGdiInitSpool(), NtGdiIntersectClipRect(), NtGdiInvertRgn(), NtGdiLineTo(), NtGdiMaskBlt(), NtGdiMirrorWindowOrg(), NtGdiModifyWorldTransform(), NtGdiOffsetClipRgn(), 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(), NtGdiUnloadPrinterDriver(), NtGdiUpdateColors(), NtGdiWidenPath(), NtUserAlterWindowStyle(), NtUserAttachThreadInput(), NtUserBuildHimcList(), NtUserCalcMenuBar(), NtUserCallNoParam(), NtUserCallOneParam(), NtUserCallTwoParam(), NtUserChangeDisplaySettings(), NtUserClipCursor(), NtUserCloseDesktop(), NtUserCreateCaret(), NtUserCreateInputContext(), NtUserCreateWindowEx(), NtUserDeferWindowPos(), NtUserDefSetText(), NtUserDestroyInputContext(), NtUserDestroyMenu(), NtUserDisableThreadIme(), NtUserDrawMenuBarTemp(), NtUserEnableScrollBar(), NtUserEnumDisplayMonitors(), NtUserFindWindowEx(), NtUserFlashWindowEx(), NtUserGetAppImeLevel(), NtUserGetAsyncKeyState(), NtUserGetClassInfo(), NtUserGetClipboardData(), NtUserGetClipboardFormatName(), NtUserGetComboBoxInfo(), NtUserGetCursorInfo(), NtUserGetGuiResources(), NtUserGetGUIThreadInfo(), NtUserGetKeyboardLayoutName(), 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(), NtUserSetAppImeLevel(), 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(), PATH_WidenPathEx(), SetLastNtError(), SpiGetSet(), SystemTimerSet(), UserClipCursor(), UserCloseClipboard(), UserDestroyMenu(), UserEmptyClipboard(), UserEnumClipboardFormats(), UserEnumDisplayDevices(), 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 ( _In_ NTSTATUS  Status)

Definition at line 31 of file error.c.

32{
34}
Status
Definition: gdiplustypes.h:25
ULONG NTAPI RtlNtStatusToDosError(IN NTSTATUS Status)
Definition: error.c:96
VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition: error.c:22

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(), NtGdiEngCreatePalette(), 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().