Writing a Custom Declaration

To write a custom declaration, you first must create a procedure that points to the Windows CE API and associated DLL you want to call. Then you must create parameters and return values that map to the parameters and return values in the Windows CE API.

However, before you can create a custom declaration, you need to identify the DLL that contains the procedure you want to call. To view the contents of a DLL, you can use the emulator.

    To use the emulator to view the contents of a DLL

  1. Browse to the emulator directory.
  2. Right-click the DLL file you want to view.
  3. Choose QuickView from the popup menu.

    QuickView lists information about the DLL, including which procedures the DLL imports and exports.

After determining the procedure and DLL you want to use, you can begin writing the declaration.