How to create a CAB provisioning format (.cpf) file for the Mobile Devices?
1. Create a valid provisioning XML file named _setup.xml.
Here is an example xml file which can be use to change a device's Bluetooth radio into Discoverable mode.
<wap-provisioningdoc>
<characteristic type="Bluetooth">
<parm name="BtMode" value="2"/>
</characteristic>
</wap-provisioningdoc>
Possible BtMode (Bluetooth Mode) values are:
0 - Off
1 - On
2 - Discoverable
2. Use the makecab utility, which is included with the Smartphone SDK and the Pocket PC SDK, to create a .cab file.
// For Smartphone
makecab _setup.xml myprovxml.cab
// For Pocket PC
makecab /D COMPRESS=OFF _setup.xml name.cpf
Note : Pocket PC does not support compressed .cpf files.
3. Rename the resulting .cab file to .cpf
4. Copy the .cpf file to the device and install it.
5. and thats all, it will set the device's Bluetooth setting to Discoverable Mode
-- Mihir