Fax Api Windows 2000 - Fax Events

I am trying to trap the windows events fired by fax server from delphi
application,I called FaxInitializeEventQueue , passed it the base message
still none of the events are trapped in the Client Application
Also I am trying to use the windows api provided by Windows 2000 for sending
fax but having problems porting the datatypes to delphi for the structures
Can anyone pls help me with this