I try to establish a connection to the service control manage on the remote computer.
At the beginning, I used function WNetAddConnect3 with administrator account of the remote computer and it success.
After that, I use OpenSCManager but it errors with error code 5 : "Access Denied".
Code: OpenSCManager(_T("192.168.7.154", NULL, SC_MANAGER_ALL_ACCESS);
[192.168.7.154 : This is ip of remote computer]
I met this error with some target computer, but another not.
I don't known why this error happen. :(
Can somebody help me to fix the problem ?!
Thank a lot.