Error message when you call the WTSQueryUserConfig() function in Windows Server 2003: "ERROR_INVALID_PARAMETER (87)" (911863)



The information in this article applies to:

  • Microsoft Windows Server 2003, Datacenter Edition
  • Microsoft Windows Server 2003, Enterprise Edition
  • Microsoft Windows Server 2003, Standard Edition
  • 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: 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


Modification Type:MajorLast Reviewed:12/20/2005
Keywords:kbNetBIOS kbDNS kbAPI kbtshoot kbprb KB911863 kbAudITPRO kbAudDeveloper