Thursday, July 22, 2010

User Impersonation

Example: http://www.codeproject.com/KB/system/UserImpersonation.aspx

Wednesday, July 7, 2010

Reading const

From: http://stackoverflow.com/questions/487048/difference-between-const-declarations-in-c

I always keep in mind this easy rule: const always applies on the thing at the immediate left of it, if this thing doesn't exists, it applies to the thing on the immediate right.



Wednesday, May 12, 2010

Monday, May 10, 2010

Direct2D

Direct2D can be used on Session 0 !!
http://blogs.msdn.com/b/directx/archive/2009/09/11/using-direct2d-for-server-side-rendering.aspx

but only with software rendering :(
http://en.wikipedia.org/wiki/Direct2D

Direct2D can minimize CPU usage and utilise hardware rendering on a graphics card that supports Direct3D 10.1 and/or Direct3D 10 Feature Level 9 with WDDM 1.1 drivers, falling back to software rendering using WARP10 in situations when hardware is not available, such as session 0, and for remote server-side rendering. Direct2D performance and memory usage scale linearly with primitive counts in both software and hardware.

Direct2D vs. GDI

Surface sharing among various technologies

Example on how to draw bitmap using Direct2D

Writing DPI aware application