 |
WTSOpenServer ..msdn Add comment W32 Constants Translate this page |
 |
 |
Opens a handle to the specified terminal server.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HANDLE WTSOpenServer(
LPTSTR pServerName
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER WTSOpenServer IN Wtsapi32;
STRING pServerName
|
 |
 |
 |
| Parameters: |
 |
pServerName
[in] Pointer to a null-terminated string specifying the NetBIOS name of the terminal server. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a handle to the specified server. |
 |
 |
| My comment: |
 |
When you are finished with the handle returned by WTSOpenServer, call the WTSCloseServer function to close it.
You do not need to open a handle for operations performed on the terminal server on which your application is running. Use the constant WTS_CURRENT_SERVER_HANDLE instead. |
 |
 |
| Word Index links for the WTSOpenServer : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-12-29 15:55:28 | | Modified: | 2006-12-29 15:57:45 | Visited in last 7 days: 13 |