' Windows API call that returns the absolute position of the
' mouse pointer.
Declare Sub GetCursorPos Lib "USER" (lpPoint As POINTAPI)
' Functions and constants used to play sounds.
Declare Function sndPlaySound Lib "MMSystem" (ByVal lpsound As String, ByVal flag As Integer) As Integer
Declare Function sndKillSound Lib "MMSystem" Alias "sndPlaySound" (ByVal lpszNull As Long, ByVal flags As Integer) As Integer
Global Const SND_SYNC = &H0 ' Return when sound ends (the default)
Global Const SND_ASYNC = &H1 ' Return as soon as sound starts
Global Const SND_NODEFAULT = &H2 ' Don't play default sound if not found
Global Const SND_MEMORY = &H4 ' lpszSoundName -> memory image of file
Global Const SND_LOOP = &H8 ' Loop continuously; needs SND_ASYNC
Global Const SND_NOSTOP = &H10 ' Don't interrupt sound to play new one
' Global string used for by NoiseGet() and NoisePlay() to play .WAV files in memory
Global SoundBuffer As String
Global Const WHITE = &HFFFFFF
Global Const BLACK = &H0&
' Constants used in Windows API Calls
Global Const SRCCOPY = &HCC0020
Global Const SRCAND = &H8800C6
Global Const SRCPAINT = &HEE0086
' Some useful graphics-oriented Windows API calls
Declare Function ExtFloodFill Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal crColor As Long, ByVal wFillType As Integer) As Integer
Declare Function GetPixel Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer) As Long
Declare Function setpixel Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal crColor As Long) As Long
Declare Function BitBlt Lib "GDI" (ByVal hDestDC As Integer, ByVal DestX As Integer, ByVal DestY As Integer, ByVal DestWidth As Integer, ByVal DestHeight As Integer, ByVal hSrcDC As Integer, ByVal SrcX As Integer, ByVal SrcY As Integer, ByVal RasterOp As Long) As Integer
Sub BGMove (picBG As PictureBox, picOriginal As PictureBox, ByVal IncX As Integer, ByVal IncY As Integer)