you use declare statement:
Code:
Declare Function FunctionName Lib "dllname" (byval a as Long, byval b as Long, byval Whatever as Any....) As Long
You could check out the file Win32api in your winapi dir, which has a lot of declare statements you can have as samples.

And yes you can pass hDC to modify the image.