![]() Here we have to use the Platform SDK because the wProductType member is defined only in OSVERSIONINFOEX structure from WinNT.h PSDK and is not in OSVERSIONINFOEX structure from WINBASE.h VC98. VER_SET_CONDITION macro with VER_PRODUCT_TYPE attribute type and.OSVERSIONINFOEX structure that contains operating system version information,.So first of all we have to decide if the application runs on a workstation or on a server. Also a text message that indicates what type of TS session the application execution request is being initiated from: if the app runs on the server console session, if the app runs on a remote session or if the TS is not installed. Using the codeįrom a Terminal Service client session or from the console, running the first instance of WTSMonitor (that opens in the tray!) we will see a dialog CWTSMonitorDlg with the list of information related with TS activity. Also I want to demonstrate how to use the WTS API to display information about the TS activity ("Session Name", "Session ID", "State", "User", "Station", "Domain", "Type", "Client Product ID", "Client Display Info", "Client Address Info", "Client Folder") or to do some actions ("Send Message", "Terminate Process"). WTSMonitor - with the help of a mutex - is developed in this way. Because of this, that application should know if from the console or from some other session someone runs an instance of it and act in consequence. Terminal Services is a multi-session environment that provides remote computers, access to Windows based programs running on the server. It’s a small Windows Terminal Services monitor aware if some session tries to run another instance of it. ![]() I want to propose an application that runs in a Terminal Services environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |