There are many powerful functions available in the Windows API,
so there is little doubt that some developers will want to a call Windows API function from time to time.
As there is not always a FIVEWIN GURU who has time to help I tried to find out how to do this by my self.
How I change a API declaration to FWH
1) LIB "" at the end of the declaration
2) Change the ALIAS clause to PASCAL FROM
3) delete all: ByVal, ByRef
4) change all As String, Long, ... to Uppercase
5) to call the function I found out that you have to use instead of a vbNullString NIL in FWH
example: hwndClient = FindWindowEx(hWnd, 0, "mdiclient", NIL)
DLL32 Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
ByVal hwndParent As Long, _
ByVal hwndChildAfter As Long, _
ByVal lpszClass As String, _
ByVal lpszWindow As String) As Long
DLL32 Function FindWindowEx ( hwndParent AS LONG, hwndChildAfter AS LONG, lpszClass AS STRING,;
lpszWindow AS STRING) AS LONG PASCAL FROM "FindWindowExA" LIB "user32"
links:
http://www.johnsmiley.com/cis18/Smiley026.pdf