Invalid characters for WTSQuerySessionInformation?
- From: "Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx>
- Date: Thu, 17 May 2007 09:46:26 +0900
Windows XP, probably SP2.
We have been told that in some foreign versions of Windows XP, the Unicode version of WTSQuerySessionInformationW is failing to retrieve a username if the name includes an at sign "@".
I am thinking of preparing a test to find which characters WTSQuerySessionInformationW can't deal with. Intuitively I feel that Unicode characters "$", backslash, forward slash, quotation mark, and a few others might also be troublesome. But first I tried to find if there's any documentation on such restrictions, and couldn't find any.
Also intuitively I think there are probably other APIs that need testing too. We've already abandoned use of WTSQuerySessionInformationA, instead calling WTSQuerySessionInformationW and WideCharToMultiByte instead. (I attempted to describe that workaround twice in postings that have been censored from this newsgroup.) Does anyone know what characters are troublesome for any APIs, whether ANSI or Unicode, that deal with usernames?
.
- Follow-Ups:
- Re: Invalid characters for WTSQuerySessionInformation?
- From: Norman Diamond
- Re: Invalid characters for WTSQuerySessionInformation?
- From: Ivan Brugiolo [MSFT]
- Re: Invalid characters for WTSQuerySessionInformation?
- Prev by Date: Re: Anonymous Pipes fail to work under Vista Protected Mode?
- Next by Date: Re: Create process before HKLM\...\Run
- Previous by thread: Re: Anonymous Pipes fail to work under Vista Protected Mode?
- Next by thread: Re: Invalid characters for WTSQuerySessionInformation?
- Index(es):
Relevant Pages
|