I am developing an application that members of desktop support use to perform certain support functions. One of these is to send a popup message to a user on the network.
Having found out that sending messages using the msg.exe thats built in to Vista and above is not possible VB.NET in Visual Studio I have learnt that an API call to WTSSENDMESSAGE is what I need.
However, I cannot find any useful code I can use to acheive this, coupled with the fact that I am not a programmer. I just find code that works and change it to my needs.
The best info I could find for this is:
Declare Function WTSSendMessage Lib "wtsapi32.dll" ( _
ByVaL hServer As Long, _
ByVaL SessionId As Long, _
ByVaL pTitle As String, _
ByVaL TitleLength As Long, _
ByVaL pMessage As String, _
ByVaL MessageLength As Long, _
ByVaL Style As Long, _
ByVaL timeout As Long, _
ByRef pResponse As Long, _
ByVaL bWait As Long) As Long
And this link has details and examples in C++
Can anyone turn this into something useful? I will have to textboxes in the form called:
With a button that sends it: