This commit is contained in:
2014-10-16 09:18:12 +00:00
parent cbee8b92bf
commit c5054a8c64
5 changed files with 266 additions and 51 deletions

View File

@@ -2,12 +2,16 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace CyworldDownloader
{
class GDI32
{
public const int SRCCOPY = 0xCC0020;
public enum TernaryRasterOperations
{
SRCCOPY = 0xCC0020
}
[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
public static extern int BitBlt(
@@ -30,5 +34,11 @@ namespace CyworldDownloader
[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
public static extern void DeleteObject(IntPtr obj);
[DllImport("gdi32.dll", EntryPoint="DeleteDC")]
public static extern bool DeleteDC([In] IntPtr hdc);
[DllImport("gdi32.dll", EntryPoint="CreateCompatibleBitmap")]
public static extern IntPtr CreateCompatibleBitmap([In] IntPtr hdc, int nWidth, int nHeight);
}
}