Zitat von
Remko:
When I pass a PWideChar as second parameter for WinStationShadow nothing happens (no remote control), when I pass ULONG 0 it works.
Pass nil or an empty string. Both are supposed to yield the default behavior you get with ULONG and 0.
Zitat von
Remko:
So could param 3 for WinStationShadowStop also be Servername?
I will also have to test WinStationConnectW as the Unknown ULONG there could also be Servername.
Yap, test it.
Since RpcWinStationShadow() gets called and it calls
NdrClientCall2(), a badly documented function from RPCRT4.dll, it will be a pain to analyze it in depth. But at least I can tell you the parameters which are passed during that call (the first two and the variable ones). But still it depends on the other side what it does with it, so finding that out is not worth much.