You are not passing a null value.
Use the decls below to do it.
Use the decls below to do it.
.lib "user32.dll" FindWindow%( class$,Text$ ):"FindWindowA" FindWindowByClassname%( class$,thenull% ):"FindWindowA"