26 RECTL ClippedDestRect;
31 Exchange = DestRect->
left;
33 DestRect->
right = Exchange;
37 Exchange = DestRect->
top;
39 DestRect->
bottom = Exchange;
62 DPRINT1(
"EngCreateBitmap() failed\n");
67 if (*ppsoOutput ==
NULL)
77 SrcPoint.
x = DestRect->
left;
78 SrcPoint.
y = DestRect->
top;
79 ClippedDestRect = EnterLeave->
DestRect;
82 ClippedDestRect.
left -= SrcPoint.
x;
91 ClippedDestRect.
top -= SrcPoint.
y;
106 if (ClippedDestRect.
left < (*ppsoOutput)->sizlBitmap.cx &&
107 0 <= ClippedDestRect.
right &&
109 ClippedDestRect.
top <= (*ppsoOutput)->sizlBitmap.cy &&
110 0 <= ClippedDestRect.
bottom &&
113 *ppsoOutput, psoDest,
115 &ClippedDestRect, &SrcPoint))
126 Translate->
x = - DestRect->
left;
127 Translate->
y = - DestRect->
top;
133 *ppsoOutput = psoDest;
136 if (
NULL != *ppsoOutput)
143 GDIDEVFUNCS(*ppsoOutput).SynchronizeSurface(*ppsoOutput, DestRect, 0);
148 GDIDEVFUNCS(*ppsoOutput).Synchronize((*ppsoOutput)->dhpdev, DestRect);
259 DPRINT1(
"Failed to query basic information: 0x%lx\n",
status);
273 DPRINT1(
"Failed to query processor information: 0x%lx\n",
status);
299 (Multiplier * (TickCount.
HighPart << 8)));
#define NT_SUCCESS(StatCode)
static CODEPAGE_ENTRY AnsiCodePage
static CODEPAGE_ENTRY OemCodePage
BOOL APIENTRY IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave, SURFOBJ *psoDest, RECTL *DestRect, BOOL ReadOnly, POINTL *Translate, SURFOBJ **ppsoOutput)
VOID APIENTRY EngGetCurrentCodePage(_Out_ PUSHORT OemCodePage, _Out_ PUSHORT AnsiCodePage)
HANDLE APIENTRY EngGetProcessHandle(VOID)
BOOL APIENTRY IntEngLeave(PINTENG_ENTER_LEAVE EnterLeave)
BOOL APIENTRY EngQuerySystemAttribute(_In_ ENG_SYSTEM_ATTRIBUTE CapNum, _Out_ PDWORD pCapability)
ULONGLONG APIENTRY EngGetTickCount(VOID)
@ SystemProcessorInformation
#define UInt32x32To64(a, b)
NTSYSAPI VOID NTAPI RtlGetDefaultCodePage(_Out_ PUSHORT AnsiCodePage, _Out_ PUSHORT OemCodePage)
#define Int64ShrlMod32(a, b)
#define KeQueryTickCount(CurrentCount)
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
#define WIDTH_BYTES_ALIGN32(cx, bpp)
#define CONTAINING_RECORD(address, type, field)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
#define GDIDEVFUNCS(SurfObj)
#define BitsPerFormat(Format)
_Check_return_ _Out_ PDWORD pCapability
ENGAPI CLIPOBJ *APIENTRY EngCreateClip(VOID)
ENGAPI VOID APIENTRY EngDeleteClip(_In_ _Post_ptr_invalid_ CLIPOBJ *pco)
ENGAPI BOOL APIENTRY EngDeleteSurface(_In_ _Post_ptr_invalid_ HSURF hsurf)
ENGAPI SURFOBJ *APIENTRY EngLockSurface(_In_ HSURF hsurf)
ENGAPI HBITMAP APIENTRY EngCreateBitmap(_In_ SIZEL sizl, _In_ LONG lWidth, _In_ ULONG iFormat, _In_ FLONG fl, _In_opt_ PVOID pvBits)
typedef HSURF(APIENTRY FN_DrvEnableSurface)(_In_ DHPDEV dhpdev)
ENGAPI VOID APIENTRY EngUnlockSurface(_In_ _Post_ptr_invalid_ SURFOBJ *pso)
enum _ENG_SYSTEM_ATTRIBUTE ENG_SYSTEM_ATTRIBUTE
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO