the MoveToEx APi has a lpPoint As POINTAPI parameter and it says in the api guide....
Points to a POINT structure in which the previous current position is stored. If this parameter is a NULL pointer, the previous position is not returned."
The question is that I don't need to get the last position returned so how do I send the null parameter. Using 0 doesn't work because it needs a POINTAPI variable so what do I use.
Secondly if I change a Function API to a Sub and don't get it to return a value will this affect stability of the API and will it make it quicker if a return value isn't needed.
Declare Function MoveToEx Lib "gdi32" Alias "MoveToEx" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As POINTAPI) As Long
Declare Sub MoveToEx Lib "gdi32" Alias "MoveToEx" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As POINTAPI)