# FindMsgPort

Finds a message port by name.

### Synopsis

`Item FindMsgPort( const char *name )`

### Description

This macro finds a message port with the specified name. The search is not case-sensitive (that is, the kernel does not distinguish uppercase and lowercase letters in message port names). You can use this macro in place of `FindNamedItem()` to find a message port.

### Arguments

name
  The name of the message port to find.

### Return Value

The macro returns the item number of the message port that was found or an error code if an error occurs.

### Implementation

Macro implemented in msgport.h V20.

### Associated Files

msgport.h
  ANSI C Macro

### See Also

``CreateMsgPort`()`

#