include vcomm.inc
VxDCall VCOMM_Map_Name_To_Resource<OFFSET32 PortName>
or eax, eax
jz error_handler
mov dwResourceHandle, eax
Returns a handle to a named resource. This handle is used in calls to the contention manager of a VCOMM resource.
ACQUIRE_RESOURCE, VCOMM_Map_Name_To_Resource, RELEASE_RESOURCE, STEAL_RESOURCE, _VCOMM_Get_Contention_Handler