Microsoft KB Archive/911863

= Error message when you call the WTSQueryUserConfig function in Windows Server 2003: &quot;ERROR_INVALID_PARAMETER (87)&quot; =

Article ID: 911863

Article Last Modified on 10/11/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter x64 Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Server 2003, Standard x64 Edition

-





SYMPTOMS
When you pass a full Domain Name System (DNS) server name to the pServerName parameter of the WTSQueryUserConfig function in Microsoft Windows Server 2003, you may receive an error message that is similar to the following:

ERROR_INVALID_PARAMETER (87)



CAUSE
This problem occurs because the WTSQueryUserConfig function accepts only NetBIOS names that are 16 bytes in length.



RESOLUTION
To resolve this problem, use the NetBIOS server name instead of using the DNS server name when you call the WTSQueryUserConfig function in Windows Server 2003.



MORE INFORMATION
This problem does not occur on a Microsoft Windows 2000 Server-based computer because Windows 2000 Server supports both the NetBIOS server name and the DNS server name.

For more information, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/aa383839.aspx

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

292631 How to call WTSSetUserConfig and WTSQueryUserConfig from Visual Basic

Additional query words: Win2K3 Win2003 Windows2003 WTSQueryUserConfig API ERROR_INVALID_PARAMETER

Keywords: kbtshoot kbapi kbdns kbnetbios kbprb KB911863

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.