Network Folder

Windows CE does not support drive letters; mounted file systems supply defined roots exposed in a top-level directory. For the redirector file system, the reserved root is \Network. To facilitate writing shells that are alert to network resources, the redirector maps paths in \Network to locally connected resources.

A registry key was added to enable a project to expose the \Network folder. This is disabled by default, but can be overridden by setting the DWORD value RegisterFSRoot under the HKEY_LOCAL_MACHINE\Comm\Redir key to a nonzero value. If this value exists and is nonzero, the \Network folder appears in top-level enumerations, for example, dir \*.*, on the device.

The \Network folders can only be managed with the WNet API functions FindFirstFile and FindNextFile. Create folders in \Network with the WNetAddConnection3 function and remove folders with the WNetCancelConnection2 function.

Folders are added to and removed from \Network using the standard WNetAddConnection and WNetCancelConnection functions. Only persistent connections are enumerated in \Network, so if the device is warm booted, folders in \Network remain the same.