On your Windows client you've a DB connection I presume? What you could do is run the 4ge through a stored procedure invoked from a Windows program that connects with the database. Looks a bit of a roundabout way but thats the sollution I can think of since I'm not familiar with programming rpc's. Thinking of that, maybe the perl community has some good solutions for that.
Good luck