Click to See Complete Forum and Search --> : Mapped Drives, again, but this time on a remote machine


Malcolm
November 17th, 2003, 07:50 AM
I've seen hundreds of threads on here relating to drive mappings etc but they all seem to relate to the local machine. I need to be able to see the drive mappings on a remote machine.

I can't get NetEnumResource to work (but would this give me that Info anyway?)

I don't believe I am being lazy here - honest, I've trawled through here and CodeProject.Com and can't find any hints related to remote machines and determining drive mappings.

I don't want a complete answer - just shoving in the right direction.

Cheers

vicodin451
November 17th, 2003, 07:56 AM
What is "NetEnumResource"? A search of the MSDN Library turned up 0 hits.

What code have you tried to "see the drive mappings on a remote machine"?

Malcolm
November 17th, 2003, 08:03 AM
I missed the W off - WNetEnumResource

I used WNetOpenResource, with a scope of RESOURCE_CONNECTED and a type of RESOURCETYPE_DISK, but got garbage back.

I don't have the code / results with me. I was hoping to get some pointers whilst offsite and get back on site and try them there.

Thanks for taking the time to reply.