Wait and Notify Flags

An application can set a wait or a notify flag on a device command sent with mciSendString or mciSendCommand. These two flags are mutually exclusive and are available on all commands except some system commands.

┌───────────────┬─────────────────────────────────────────────┐
│Flag           │Description                                  │
├───────────────┼─────────────────────────────────────────────┤
│wait           │The command is executed synchronously.  The  │
│               │function waits until the requested action is │
│               │complete before returning to the application.│
├───────────────┼─────────────────────────────────────────────┤
│notify         │The command is executed asynchronously,      │
│               │allowing control to be returned immediately  │
│               │to the application.  When the requested      │
│               │action is complete, an MM_MCINOTIFY message  │
│               │is sent to the application window procedure. │
└───────────────┴─────────────────────────────────────────────┘

Note: If a command is issued without a wait flag or notify flag specified, the command is executed asynchronously, and the application is never notified.