Shachar, thank you for the detailed response.
MSDN says that message returns number of TCHARS. It looks like two-byte MBCS character has 2 TCHARS. Nasty staff :-(
Andriy
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com