TYPE POINTAPI
x AS LONG
y AS LONG
END TYPE
TYPE Rect
Left AS LONG
Top AS LONG
Right AS LONG
Bottom AS LONG
END TYPE
CONST SRCCOPY = &HCC0020
CONST STD_INTENSITE = 100
CONST STD_PROFONDEUR = 15
CONST STD_FLOU = 30
DECLARE FUNCTION GetDC LIB "user32" ALIAS "GetDC" _
(hwnd AS LONG) AS LONG
DECLARE FUNCTION GetDesktopWindow LIB "user32" ALIAS "GetDesktopWindow"() AS LONG
DECLARE FUNCTION GetWindowDC LIB "user32" ALIAS "GetWindowDC" _
(hwnd AS LONG) AS LONG
DECLARE FUNCTION BitBlt LIB "gdi32" ALIAS "BitBlt" _
(hDestDC AS LONG, _
x AS LONG, y AS LONG, _
nWidth AS LONG, nHeight AS LONG, _
hSrcDC AS LONG, _
xSrc AS LONG, ySrc AS LONG, _
dwRop AS LONG) AS LONG
DECLARE FUNCTION GetPixel LIB "gdi32" ALIAS "GetPixel" _
(hdc AS LONG, x AS LONG, y AS LONG) AS LONG
DECLARE FUNCTION SetPixelV LIB "gdi32" ALIAS "SetPixelV" _
(hdc AS LONG, x AS LONG, y AS LONG, crColor AS LONG) AS LONG
DECLARE FUNCTION GetWindowRect LIB "user32" ALIAS "GetWindowRect" _
(hwnd AS LONG, lpRect AS Rect) AS LONG
DECLARE FUNCTION SelectObject LIB "gdi32" ALIAS "SelectObject" _
(hdc AS LONG, hObject AS LONG) AS LONG
DECLARE FUNCTION CreateCompatibleDC LIB "gdi32" ALIAS "CreateCompatibleDC" _
(hdc AS LONG) AS LONG
DECLARE FUNCTION CreateCompatibleBitmap LIB "gdi32" ALIAS "CreateCompatibleBitmap" _
(hdc AS LONG, nWidth AS LONG, nHeight AS LONG) AS LONG
DECLARE FUNCTION DeleteObject LIB "gdi32" ALIAS "DeleteObject" _
(hObject AS LONG) AS LONG
DECLARE FUNCTION DeleteDC LIB "gdi32" ALIAS "DeleteDC" _
(hdc AS LONG) AS LONG
DECLARE FUNCTION ReleaseDC LIB "user32" ALIAS "ReleaseDC" _
(hwnd AS LONG, hdc AS LONG) AS LONG
|