• WTSSendMessageA handle?

    From T@21:1/5 to All on Fri Nov 18 23:55:40 2022
    Hi All,

    Windows 11-pro 22H2 https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify
    a handle opened by the WTSOpenServer function,
    or specify WTS_CURRENT_SERVER_HANDLE to indicate
    the RD Session Host server on which your application
    is running.


    If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
    how to I get my "handle to an RD Session Host server"?

    Many thanks,
    -T

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 19 01:30:04 2022
    On 11/19/22 01:24, JJ wrote:
    On Fri, 18 Nov 2022 23:55:40 -0800, T wrote:
    Hi All,

    Windows 11-pro 22H2
    https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify
    a handle opened by the WTSOpenServer function,
    or specify WTS_CURRENT_SERVER_HANDLE to indicate
    the RD Session Host server on which your application
    is running.

    If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
    how to I get my "handle to an RD Session Host server"?

    Many thanks,
    -T

    It's there in the text you just posted.

    Hi JJ,

    WTS_CURRENT_SERVER_HANDLE is a constant set to 0

    I am after the actual handle as I am working in
    an RDP environment. It is not zero.

    You can get that handle with


    C++

    HANDLE WTSOpenServerA(
    [in] LPSTR pServerName
    );


    Now all I am missing is the call to get my
    local computer's server name (and its syntax)

    -T

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to All on Sat Nov 19 16:24:38 2022
    On Fri, 18 Nov 2022 23:55:40 -0800, T wrote:
    Hi All,

    Windows 11-pro 22H2 https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify
    a handle opened by the WTSOpenServer function,
    or specify WTS_CURRENT_SERVER_HANDLE to indicate
    the RD Session Host server on which your application
    is running.

    If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
    how to I get my "handle to an RD Session Host server"?

    Many thanks,
    -T

    It's there in the text you just posted.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 19 01:19:34 2022
    T24gMTEvMTgvMjIgMjM6NTUsIFQgd3JvdGU6DQo+IEhpIEFsbCwNCj4gDQo+IFdpbmRvd3Mg MTEtcHJvIDIySDINCj4gaHR0cHM6Ly9sZWFybi5taWNyb3NvZnQuY29tL2VuLXVzL3dpbmRv d3Mvd2luMzIvYXBpL3d0c2FwaTMyL25mLXd0c2FwaTMyLXd0c3NlbmRtZXNzYWdlYQ0KPiAN Cj4gV1RTU2VuZE1lc3NhZ2VBIHN0YXRlczoNCj4gDQo+ICDCoMKgIFtpbl0gaFNlcnZlcg0K PiANCj4gIMKgwqAgQSBoYW5kbGUgdG8gYW4gUkQgU2Vzc2lvbiBIb3N0IHNlcnZlci4gU3Bl Y2lmeQ0KPiAgwqDCoCBhIGhhbmRsZSBvcGVuZWQgYnkgdGhlIFdUU09wZW5TZXJ2ZXIgZnVu Y3Rpb24sDQo+ICDCoMKgIG9yIHNwZWNpZnkgV1RTX0NVUlJFTlRfU0VSVkVSX0hBTkRMRSB0 byBpbmRpY2F0ZQ0KPiAgwqDCoCB0aGUgUkQgU2Vzc2lvbiBIb3N0IHNlcnZlciBvbiB3aGlj aCB5b3VyIGFwcGxpY2F0aW9uDQo+ICDCoMKgIGlzIHJ1bm5pbmcuDQo+IA0KPiANCj4gSWYg SSBjaG9vc2UgTk9UIHRvIHVzZSAiV1RTX0NVUlJFTlRfU0VSVkVSX0hBTkRMRSIsDQo+IGhv dyB0byBJIGdldCBteSAiaGFuZGxlIHRvIGFuIFJEIFNlc3Npb24gSG9zdCBzZXJ2ZXIiPw0K PiANCj4gTWFueSB0aGFua3MsDQo+IC1UDQoNCg0KSXQgaXMgYSBjYWxsIHRvDQoNCkMrKw0K DQpIQU5ETEUgV1RTT3BlblNlcnZlckEoDQogICBbaW5dIExQU1RSIHBTZXJ2ZXJOYW1lDQop Ow0KDQoNCkJ1dCB3aGF0IGlzIHRoZSBjYWxsIHRvIGdldCBteSBsb2NhbCBjb21wdXRlcidz DQpzZXJ2ZXIncyBuYW1lPw0KDQpJIHN1cHBvc2UgSSBjb3VsZCBhbHdheXMgdXNlOg0KDQpz ZXQgfCBncmVwIC1pIGt2bQ0KQ09NUFVURVJOQU1FPUtWTS1XMTENCkxPR09OU0VSVkVSPVxc S1ZNLVcxMQ0KDQphbmQgdHJ5IHRvIGZpZ3VyZSBvdXQgd2hhdCB0aGUgZm9ybWF0IGlzLg0K XFwgb3Igbm8gXFwgZXRjLg0KDQpBIHN5c3RlbSBjYWxsIHdvdWxkIHNvbHZlIHRoYXQNCg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to All on Sat Nov 19 18:41:27 2022
    On Sat, 19 Nov 2022 01:30:04 -0800, T wrote:
    On 11/19/22 01:24, JJ wrote:
    On Fri, 18 Nov 2022 23:55:40 -0800, T wrote:
    Hi All,

    Windows 11-pro 22H2
    https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify
    a handle opened by the WTSOpenServer function,
    or specify WTS_CURRENT_SERVER_HANDLE to indicate
    the RD Session Host server on which your application
    is running.

    If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
    how to I get my "handle to an RD Session Host server"?

    Many thanks,
    -T

    It's there in the text you just posted.

    Hi JJ,

    WTS_CURRENT_SERVER_HANDLE is a constant set to 0

    I am after the actual handle as I am working in
    an RDP environment. It is not zero.

    You can get that handle with

    C++

    HANDLE WTSOpenServerA(
    [in] LPSTR pServerName
    );

    Now all I am missing is the call to get my
    local computer's server name (and its syntax)

    -T

    `GetComputerName()` can be used to get the local computer name. But using
    that name is same as using `WTS_CURRENT_SERVER_HANDLE`. The local computer
    name will always resolve to `127.0.0.1` which is same as `localhost` when looked up from local computer.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 19 15:45:06 2022
    On 11/19/22 03:41, JJ wrote:
    On Sat, 19 Nov 2022 01:30:04 -0800, T wrote:
    On 11/19/22 01:24, JJ wrote:
    On Fri, 18 Nov 2022 23:55:40 -0800, T wrote:
    Hi All,

    Windows 11-pro 22H2
    https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify
    a handle opened by the WTSOpenServer function,
    or specify WTS_CURRENT_SERVER_HANDLE to indicate
    the RD Session Host server on which your application
    is running.

    If I choose NOT to use "WTS_CURRENT_SERVER_HANDLE",
    how to I get my "handle to an RD Session Host server"?

    Many thanks,
    -T

    It's there in the text you just posted.

    Hi JJ,

    WTS_CURRENT_SERVER_HANDLE is a constant set to 0

    I am after the actual handle as I am working in
    an RDP environment. It is not zero.

    You can get that handle with

    C++

    HANDLE WTSOpenServerA(
    [in] LPSTR pServerName
    );

    Now all I am missing is the call to get my
    local computer's server name (and its syntax)

    -T

    `GetComputerName()` can be used to get the local computer name. But using that name is same as using `WTS_CURRENT_SERVER_HANDLE`. The local computer name will always resolve to `127.0.0.1` which is same as `localhost` when looked up from local computer.


    What is the difference between GetComputerName and

    C++

    int gethostname(
    [out] char *name,
    [in] int namelen
    );

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 19 22:08:31 2022
    T24gMTEvMTkvMjIgMjE6MzUsIFQgd3JvdGU6DQo+IE9uIDExLzE5LzIyIDE1OjQ1L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dXN0IG5vdGljZWQgdGhhdCAi W291dF0gY2hhciAqbmFtZSwiDQppcyBpbiBVVEYxNiBmb3JtYXQuDQo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to All on Sun Nov 20 21:07:01 2022
    On Sat, 19 Nov 2022 22:08:31 -0800, T wrote:
    On 11/19/22 21:35, T wrote:
    On 11/19/22 15:45, T wrote:

    What is the difference between GetComputerName and

    C++

    int gethostname(
       [out] char *name,
       [in]  int  namelen
    );



    Trivia.  I just noticed that "[out] char *name,"
    is in UTF16 format.

    Oops. My bad. It is utf8

    "Host name" is not same as "computer name".

    `GetComputerName()` returns the computer name as specified in the "System properties" Control Panel.

    `gethostname()` returns the (network) host name as specified in the `HOSTS` file, which is by default is `localhost`.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sun Nov 20 13:19:09 2022
    T24gMTEvMjAvMjIgMDY6MDcsIEpKIHdyb3RlOg0KPiBPbiBTYXQsIDE5IE5vdiAyMDIyIDIy OjA4OjMxIC0wODAwLCBUIHdyb3RlOg0KPj4gT24gMTEvMTkvMjIgMjE6MzUsIFQgd3JvdGU6 DQo+Pj4gT24gMTEvMTkvMjIgMTU6NDUsIFQgd3JvdGU6DQo+Pj4+DQo+Pj4+IFdoYXQgaXMg dGhlIGRpZmZlcmVuY2UgYmV0d2VlbiBHZXRDb21wdXRlck5hbWUgYW5kDQo+Pj4+DQo+Pj4+ IEMrKw0KPj4+Pg0KPj4+PiBpbnQgZ2V0aG9zdG5hbWUoDQo+Pj4+ICDCoMKgIFtvdXRdIGNo YXIgKm5hbWUsDQo+Pj4+ICDCoMKgIFtpbl3CoCBpbnTCoCBuYW1lbGVuDQo+Pj4+ICk7DQo+ Pj4+DQo+Pj4+DQo+Pj4NCj4+PiBUcml2aWEuwqAgSSBqdXN0IG5vdGljZWQgdGhhdCAiW291 dF0gY2hhciAqbmFtZSwiDQo+Pj4gaXMgaW4gVVRGMTYgZm9ybWF0Lg0KPj4NCj4+IE9vcHMu ICBNeSBiYWQuICBJdCBpcyB1dGY4DQo+IA0KPiAiSG9zdCBuYW1lIiBpcyBub3Qgc2FtZSBh cyAiY29tcHV0ZXIgbmFtZSIuDQo+IA0KPiBgR2V0Q29tcHV0ZXJOYW1lKClgIHJldHVybnMg dGhlIGNvbXB1dGVyIG5hbWUgYXMgc3BlY2lmaWVkIGluIHRoZSAiU3lzdGVtDQo+IHByb3Bl cnRpZXMiIENvbnRyb2wgUGFuZWwuDQo+IA0KPiBgZ2V0aG9zdG5hbWUoKWAgcmV0dXJucyB0 aGUgKG5ldHdvcmspIGhvc3QgbmFtZSBhcyBzcGVjaWZpZWQgaW4gdGhlIGBIT1NUU2ANCj4g ZmlsZSwgd2hpY2ggaXMgYnkgZGVmYXVsdCBpcyBgbG9jYWxob3N0YC4NCg0KDQoNCldUU1Nl bmRNZXNzYWdlQSBzdGF0ZXM6DQoNCiAgICAgW2luXSBoU2VydmVyDQoNCiAgICAgQSBoYW5k bGUgdG8gYW4gUkQgU2Vzc2lvbiBIb3N0IHNlcnZlci4gU3BlY2lmeSBhDQogICAgIGhhbmRs ZSBvcGVuZWQgYnkgdGhlIFdUU09wZW5TZXJ2ZXIgZnVuY3Rpb24NCg0KU28gd2hpY2ggb2Yg R2V0Q29tcHV0ZXJOYW1lIGFuZCBnZXRob3N0bmFtZSBzaG91bGQgSSB1c2U/DQo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to All on Mon Nov 21 08:23:59 2022
    On Sun, 20 Nov 2022 13:19:09 -0800, T wrote:

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify a
    handle opened by the WTSOpenServer function

    So which of GetComputerName and gethostname should I use?

    GetComputerName, since Windows networking prioritize NetBIOS name.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Mon Nov 21 03:27:09 2022
    On 11/20/22 17:23, JJ wrote:
    On Sun, 20 Nov 2022 13:19:09 -0800, T wrote:

    WTSSendMessageA states:

    [in] hServer

    A handle to an RD Session Host server. Specify a
    handle opened by the WTSOpenServer function

    So which of GetComputerName and gethostname should I use?

    GetComputerName, since Windows networking prioritize NetBIOS name.


    Thank you!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)