[DllImport("gdi32.dll", ExactSpelling = true)]
        
private static extern int GetDeviceCaps(IntPtr hDC, int nIndex);

        [DllImport(
"gdi32.dll", CharSet = CharSet.Auto)]
        
private static extern IntPtr CreateDC(string szdriver, string szdevice, string szoutput, IntPtr devmode);

        [DllImport(
"gdi32.dll", ExactSpelling = true)]
        
private static extern bool DeleteDC(IntPtr hdc);

 

posted on 2009-02-05 10:34  Alex Wang  阅读(2900)  评论(1编辑  收藏  举报