WinQueueFromID()

Definiton:

HMQ    APIENTRY WinQueueFromID( HAB hab, USHORT pid, USHORT tid);

Add to your *.def file:

IMPORTS WinQueueFromID =PMMERGE.5313