Partager via


Creating a Welcome Application

You can create a welcome application that runs when the user starts a device for the first time. This application can request such information as the name of the user and a name for the device.

To create a welcome application for Windows CE

  1. Add the application to the startup group by creating a link to your application and modifying a Project.bib file and .dat file to put the link to your application in the startup folder on the image.

    The following example shows the code that you need to add to your Project.bib file.

    welcome.lnk      $(_FLATRELEASEDIR)\welcome.lnk       NK SH
    

    The following example shows the code that you need to add to your Project.dat file.

    Directory("\Windows\Startup"):-File("welcome.lnk","\Windows\startup\welcome.lnk")
    

    For information about these files, see Binary Image Builder File and File System File.

    You can also use the launch sequence in the registry to automatically launch your application. For information about using the launch sequence in the registry, see Configuring the Process Boot Phase.

    When your application finishes, your application should delete the link from the startup folder.

  2. Ensure that your application runs to completion and that users have completed any necessary steps before using the operating system and before other applications start.

    For example, you could make your application window the topmost window on the system. You also need to handle attempts from other applications to obtain the focus. The following example shows how to make your application window the topmost window.

    // Put the window on top and show it.
    SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, 
    SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
    
  3. Include a call to the TouchCalibrate function before doing anything that requires user input, if your device uses a touch screen.

See Also

Creating a Custom Shell | Control Panel Components

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.