Sheesh, I just read your message again and noticed it was via remote desktop control. did you lookup WTSDisconnectSession and WTSEnumerateSessions? Do they work with Remote Desktop Control? (I've never tried so I don't know if the TS api will work or not)...
Do any of the calls in wtsapi32 work?
>no as i said i' ve allready test the ExitWindowsEx function which doesn't work. The other two functions descibed in the second link are for restaring the server, but that is out of the question!
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"