Microsoft KB Archive/254072

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 21:46, 16 July 2020 by X010 (talk | contribs) (1 revision imported: importing part 2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

INFO: Terminal Server APIs Are Only Supported on Windows NT 4.0, Terminal Server Edition

Q254072



The information in this article applies to:


  • Microsoft Win32 Application Programming Interface (API), included with:
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows NT Server versions 4.0, 4.0 SP4
    • Microsoft Windows NT Workstation versions 4.0, 4.0 SP4





SUMMARY

The Windows Terminal Server APIs are only supported on computers running Windows 2000 or Windows NT 4.0, Terminal Server Edition with Service Pack 4 or later installed.



MORE INFORMATION

The Terminal Server API entry points reside in the Wtsapi32.dll file. Because this DLL is not included with the Workstation, Server, or Enterprise Server Edition of Windows NT 4.0, applications that implicitly link to those APIs fail to load.

One solution is to link the application with the Wtsapi32.dll delay loaded. For information on how to link the application with the Wtsapi32.dll delay loaded, see the Visual C++ 6.0 documentation. If your application verifies that it is running on Terminal Server before calling the Terminal Server APIs, then it does not have to load the Wtsapi32.dll file, and everything will work correctly.

Another alternative is to use explicit linking using the LoadLibrary and GetProcAddress APIs.

All versions of Windows 2000 include the Terminal Server API entry points so applications can be implicitly linked to Terminal Server APIs safely. When the APIs are not running on Windows 2000, the APIs return simple failure.

Additional query words:

Keywords : kbAPI kbKernBase kbDSupport kbGrpDSKernBase kbTermServ
Issue type : kbinfo
Technology : kbAudDeveloper kbWin32sSearch kbWin32API


Last Reviewed: October 22, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.