b_cros
asked on
Win32 api, remote admin type stuff
I'm looking at writing some C++ code to help with remote administration of NT servers. I am familar with C, and not sure if I need to learn more about C++ in order to develope some utilities. I have some Perl scripts that I would like to replace with custom C/C++ routines for things like: retrieving a list of drives and free space on a remote NT server; check remote servers services to verify "automatic/started" status. I know there is a resource kit utility for the service stuff, but I would still like to try to develop some of these for myself. Sample code would be great, but even some pointers on "read up on rpc", "read up on dcom", "no, you can't do this without some additional tools" would help. Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The information provided was excellent, but I didn't really get an answer to the remote disk information. Thanx.
The services API (and 'OpenSCManager()' in particular) take a machine name as a parameter that can be used to specify the target computer.
But I also don't have a clue on the drive space issue...