Share via


Print Server Application Development (Windows CE 5.0)

Send Feedback

Windows CE includes Print Server functionality. This functionality enables clients to access files and other resources, such as printers, from a server over a network using TCP/IP.

The Print Server uses the Common Internet File System (CIFS). This is an extension of the Server Message Block (SMB) file sharing protocol. CIFS enables a network-enabled application to access and manipulate files and directories on a remote server in the same way that it the application accesses and manipulates files and directories on the local system.

Print Servers support user-level authentication. This means that any client attempting to access a share on a server must provide a user name and password. When authenticated, the user can then access all shares that are not protected by share-level security on a server.

Windows CE provides a Web-based network configuration utility to configure your server, and manage both share and user permissions. This sample configuration utility is located in the %_WINCEROOT%\Public\Servers\oak\Samples\remoteadmin\modules\smbprint directory. To access the Web-based configuration page for your server, type the following information in the address bar in your Internet browser:

Http://<IP address of your server device>/remoteadmin

You can also modify these settings using the registry. For more information, see Print Server Registry Settings.

Print Server uses the IOCTL_SERVICE_REFRESH I/O control (IOCTL) and device.exe to reload these settings if they are changed without rebooting the device.

To reload your server settings

  1. Call the CreateFile function to open a handle to the "SMB1" service.
  2. To send the IOCTL, call DeviceIoControl on the open service. DeviceIoControl then calls the service-related xxx_IOControl (Services.exe) function, and passes in IOCTL_SERVICE_REFRESH as the dwCode parameter.

See Also

CreateFile | DeviceIoControl | xxx_IOControl (Services.exe) | Controlling a Running Service | Print Server Registry Settings

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.