Windows For Devices Articles

  • Home > Windows For Devices Articles

        Serial mouse driver for Windows CE

        Staff | Date: Sep 3, 2003 | Comments: 1



        Microsoft has released source code for a Windows CE Serial Mouse driver, as a download from WindowsForDevices.com. The Serial Mouse driver was eliminated from Windows CE prior to the release of Windows CE .NET v4.0. Sermouse.c is the source file which was written to support a generic serial mouse interface to a standard serial COM port on a CEPC.


        This driver source is provided "as is" without warranty of any kind, either expressed or implied.

        Here are further comments from the readme.txt file contained in the download package . . .
        The driver is written as a basic streams interface, however it only uses the Init and Deinit functions. These are the required entry points needed by DEVICE.EXE in order to load as a device driver.

        The driver reads the registry to get which COM port to use via the function

        GetCommPort(). Example registry:
        IF CEPC_SERMOUSE
        [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SerMouse]
        "Index"=dword:1
        "Dll"="SerMouse.dll"
        "Prefix"="SRM"
        "Order"=dword:1
        "Port"=dword:1
        ENDIF


        Implemenation note: You could make a Mouse Set Speed utility by allowing an app to do a CreateFile on "SRM1:" and making IOCTL calls. Thus you'd also have to implement SRM_Open, SRM_Close, SRM_IOControl.



        Download Serial Mouse driver

        Please note: The driver source is provided "as is" without warranty of any kind, either expressed or implied.