How to pass security token between processes: http://social.msdn.microsoft.com/Forums/en-SG/windowssecurity/thread/9bd4bce0-033a-431b-abb8-2c10438e6283
Thursday, July 22, 2010
Thursday, July 8, 2010
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, June 23, 2010
Slim Reader/Writer (SRW) Locks
http://msdn.microsoft.com/en-us/library/aa904937(VS.85).aspx
1. Not recursive
2. Not upgradable/degradable
3. Intra-process only
4. From Vista
Monday, June 21, 2010
Tuesday, June 8, 2010
Wednesday, May 12, 2010
visual studio 2008
Enable parallel compilation in one project (there are many restrictions though):
3rd party alternative
How to use #import directive (which cause conflict with /MP option)
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
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