{
PPROCESSINFO ppi;
PDC_ATTR pdcattr;
ppi = PsGetCurrentProcessWin32Process();
ASSERT(ppi);
pdcattr = GdiPoolAllocate(ppi->pPoolDcAttr);
if (!pdcattr)
{
DPRINT1("Could not allocate DC attr\n");
returnFALSE;
}
/* Copy the content from the kernel mode dc attr */
pdc->pdcattr = pdcattr;
*pdc->pdcattr = pdc->dcattr;
/* Set the object attribute in the handle table */GDIOBJ_vSetObjectAttr(&pdc->BaseObject, pdcattr);
DPRINT("DC_AllocDcAttr: pdc=%p, pdc->pdcattr=%p\n", pdc, pdc->pdcattr);
returnTRUE;
}
Generated on Sun May 27 2012 06:10:30 for ReactOS by
1.7.6.1
ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.