/* * @implemented */ DWORD WINAPI GetAndSetDCDWord( _In_ HDC hdc, _In_ UINT u, _In_ DWORD dwIn, _In_ ULONG ulMFId, _In_ USHORT usMF16Id, _In_ DWORD dwError) { DWORD dwResult; /* This is a special API, handle it appropriately */ HANDLE_METADC2(DWORD, GetAndSetDCDWord, hdc, u, dwIn, ulMFId, usMF16Id, dwError); /* Call win32k to do the real work */ if (!NtGdiGetAndSetDCDword(hdc, u, dwIn, &dwResult)) { return dwError; } return dwResult; }
PLDC pldc; if (IS_METADC16_TYPE(hdc)) return(MF16_RecordParmsD(hdc,uValue,wEmr16)); DC_PLDC(hdc,pldc,uError) if (pldc->iType == LO_METADC) { if (!MF_SetD(hdc,(DWORD)uValue,uEmr)) return(uRet); } } uRet = NtGdiGetAndSetDCDword(hdc, uIndex, uValue, &retData); return (( uRet ) ? retData : uError); } /******************************Public*Routine******************************\ * SetBkMode * * Arguments: * * hdc - DC handle * iMode - new mode * * Return Value: *