Partager via


Locating a Printer on a Network (Windows Embedded CE 6.0)

1/6/2010

Windows Embedded CE supports basic network printing and enables a user to select a network printer by UNC name. Specifying a printer by UNC requires a user to provide the network printer location in the format \\Server\Share.

Windows Embedded CE makes no attempt to retrieve data about the target printer or the type of output that it requires. When a network print job is queued, the redirector creates a thread to track the status of the print job. Windows Embedded CE does not support print queue manipulation. Also, some Windows-based desktop operating system print servers do not support the Windows Embedded CE print job status completion notification. When using these print servers the user will not receive notification when a print job completes.

To find a printer on a network using WNet

  1. Create a network resource list.

    For more information about creating a network resource list, see Determining Available Network Resources.

  2. To enumerate only the print resources, change the dwType parameter in WNetOpenEnum to RESOURCETYPE_PRINT.

See Also

Concepts

Managing Network Connections with WNet
Windows Networking API/Redirector Application Development