Partager via


sndAlias macro

The sndAlias macro creates an alias identifier from two characters, for use with the PlaySound function.

Syntax

DWORD sndAlias(
    ch0,
    ch1
);

Parameters

  • ch0
    Character describing the sound alias.

  • ch1
    Character describing the sound alias.

Return value

Returns an alias identifier corresponding to the two supplied characters.

Remarks

This macro is defined as follows:

sndAlias(ch0, ch1)    (SND_ALIAS_START + (DWORD)(BYTE)(ch0) | 
    ((DWORD)(BYTE)(ch1) << 8)) 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)