hi all,
I am stuck by the problem of enabling and disabling Remote Desktop protocal.
anybody has a solution for this, this will be of great help to me.
bye and thank you
MOINUDDIN
hi all,
I am stuck by the problem of enabling and disabling Remote Desktop protocal.
anybody has a solution for this, this will be of great help to me.
bye and thank you
MOINUDDIN
Enabling and disabling Remote desktop, Programetically
StringMon
http://msdn.microsoft.com/newsgroups/default.aspx
Brian
antimatty
I believe that Remote Desktop is controlled via a Registry key. Please see this link for details:
http://www.windowsdevcenter.com/pub/a/windows/2004/05/04/serverhacks_remote.html
If that's the case then in your program all you need to do is alter the value of the registry key (as detailed at the above link) to turn Remote Desktop on and off.
If you're working in managed/.NET code then I think you should find classes and functions to read/write registry values in the Microsoft::Win32 namespace. My C++ is barely passable (why am I posting in this forum then
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfmicrosoftwin32.asp
The examples at the above link should help you along a bit.
If you're writing an unmanaged application (like an old school Win32 app, I suppose) then you'll need to use the functions in the Win32 API. I believe the function to use is RegSetValue() or RegSetValueEx(). Like I said, my C++ is barely passable but here's a link to the functions:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/winprog/winprog/r_functions.asp
And here's some detail about working with the registry in the Win32 API:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/sysinfo/base/registry.asp
Hope that helps a bit, but sorry if it doesn't
Ramana Gali
hi this information was quite helpful to me.
thank and regards,
MOINUDDIN PASHA