# CleanupMSEvents

Releases resources acquired by SetupMSEvents.

### Synopsis

`void CleanupMSEvents (MSEventHandle mseHandle)`

### Description

Releases all resources acquired internally by `SetupMSEvents()`. Any ports or signals which were allocated by `SetupMSEvents()` are deleted. If mseHandle is less than or equal to zero, this function quietly returns without doing anything.

### Arguments

mseHandle
  MSEventHandle returned by SetupMSEvents().

### Implementation

Library call implemented in lib3do.lib.

### Associated Files

lib3do.lib, msgutils.h

### See Also

``SetupMSEvents`, DispatchMSEvents`