2.2.72 FAX_EVENT_NEW_CALL

The FAX_EVENT_NEW_CALL structure defines notifications regarding a new incoming call. This structure is embedded in the FAX_EVENT_EX (section 2.2.67) and FAX_EVENT_EX_1 (section 2.2.68) structures as a union field.

This data structure is custom marshaled as follows and uses the custom-marshaling rules defined in section 2.2.1.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Fixed_Portion

...

...

Variable_Data (variable)

...

Fixed_Portion (12 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

hCall

dwDeviceId

lpwstrCallerIdOffset

hCall (4 bytes): Call handle of the new incoming call.

dwDeviceId (4 bytes): Identifier of the fax device on which the new incoming call has arrived.

lpwstrCallerIdOffset (4 bytes): Offset to the lpwstrCallerId field in the Variable_Data block of the structure holding a null-terminated Unicode string that contains the caller ID for the incoming call. It is set to zero if no caller ID information is available.

Variable_Data (variable):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

lpwstrCallerId (variable)

...

lpwstrCallerId (variable): A null-terminated Unicode string that contains the caller ID for the incoming call.