No navigation frame on the left?  Click here.

NetShareCheck

 

Usual caveat -- all Net*() functions are Unicode-only on NT, even if the headers say otherwise.

NetShareCheck() tests whether a directory (or, more generally, a device like LPT1) is reachable from the outside through a share. This includes being located in the subtree of a shared directory: if C:\FOO is shared, then C:\FOO\BAR is, too. (This makes NetShareCheck() pretty useless, because by default, every disk volume has an administrative share associated with its root directory.) Also note that devices -- drive letters, names of LPTs, etc. -- must be in upper case.

nshc.cpp, 3 KB