Share via


Network Folder

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Windows Embedded 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 run-time image 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 be enumerated using the FindFirstFile and FindNextFile functions.

Folders are added to and removed from \Network using the standard WnetAddConnection3 and WnetCancelConnection2 functions. Only persistent connections (specify CONNECT_UPDATE_PROFILE flag to WNetAddConnection3) are enumerated in \Network. If the device is warm booted, folders in \Network remain the same.

See Also

Concepts

Windows Networking API/Redirector Application Development
Accessing Remote File Systems
Windows Networking API/Redirector Security
Windows Networking API/Redirector Registry Settings