Hello,
In the source file winceunits\mmsystem.pp, the SND_ALIAS_* constant definitions are incorrect.
They are currently defined as:
SND_ALIAS_SYSTEMASTERISK = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('*')));
SND_ALIAS_SYSTEMQUESTION = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('?')));
SND_ALIAS_SYSTEMHAND = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('H')));
SND_ALIAS_SYSTEMEXIT = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('E')));
SND_ALIAS_SYSTEMSTART = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('S')));
SND_ALIAS_SYSTEMWELCOME = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('W')));
SND_ALIAS_SYSTEMEXCLAMATION = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('!')));
SND_ALIAS_SYSTEMDEFAULT = SND_ALIAS_START+
(DWORD(AnsiChar('S')) or
DWORD(AnsiChar('D')));
The problem is that the second DWORD should be shifted left 8 and it is not, resulting in an invalid constant.
HTH.
NOTE: the definitions in winunits-base do not have this problem because they are numeric constants directly. IOW, they are correct (at least they look like they are correct - didn't check more than a couple of them.)