%macro dllimport 2
extern %2
%define  %1 [%2]
%endm

;gdi32.dll:
dllimport	ChoosePixelFormat,	__imp__ChoosePixelFormat@8
dllimport	SetPixelFormat,		__imp__SetPixelFormat@12
dllimport	SwapBuffers,		__imp__SwapBuffers@4

;kernel32.dll:
dllimport	ExitProcess,		__imp__ExitProcess@4

;opengl32.dll:
dllimport	wglCreateContext,	__imp__wglCreateContext@4
dllimport	wglMakeCurrent,		__imp__wglMakeCurrent@8

;user32.dll:
dllimport	ChangeDisplaySettings,	__imp__ChangeDisplaySettingsA@8
dllimport	CreateWindowEx,		__imp__CreateWindowExA@48
dllimport	GetAsyncKeyState,	__imp__GetAsyncKeyState@4
dllimport	GetDC,			__imp__GetDC@4
dllimport	ShowCursor,		__imp__ShowCursor@4

;winmm.dll:
dllimport	waveOutGetPosition,	__imp__waveOutGetPosition@12
;dllimport	waveOutOpen,		__imp__waveOutOpen@24
;dllimport	waveOutPrepareHeader,	__imp__waveOutPrepareHeader@12
;dllimport	waveOutWrite,		__imp__waveOutWrite@12
