Monday, January 28, 2013

BLUETOOTH Walked In



How to: Configure Security on Windows Mobile Devices from a Command Prompt

Visual Studio 2008Other VersionsThis topic has not yet been rated - Rate this topicRapiConfig.exe is a desktop configuration tool that enables you to manage a Windows Mobile-based device's security model from a command prompt by using a Windows Mobile Device Center or ActiveSync connection.When running RapiConfig.exe, you must specify an XML configuration file that defines what actions to perform on the device. Visual Studio includes several sample XML provisioning files to perform the following tasks:Provision a device with a security model.Query a device for its security model.Add and remove certificates.Sample XML provisioning files and RapiConfig.exe are located at drive:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools. For more information, see Provisioning From a Desktop Computer Using Remote API and ActiveSync and Provisioning for Windows Mobile-Based Devices.Provision a Device with a Security ModelYou can set the security model of a device explicitly to test an application under the various security models. If the device is already locked by the original equipment manufacturer (OEM), then provisioning a different security model might not be possible. However, if the device is not locked, you can provision it with any security model.The following security model XML files are included with Visual Studio. The default location is drive:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools\SecurityModels.Locked.xml sets the following two-tier security model:Prompt before running applications.Do not run unsigned applications.Prompt.xml sets the following two-tier security model:Prompt before running applications.Run unsigned applications as unprivileged.Open.xml sets the following one-tier security model:Do not prompt.Run signed and unsigned applications as privileged.

To provision a device with a security model

Establish an ActiveSync connection to the device.Type the following command at a command prompt, where securityfile.xml is the security model XML file:RapiConfig.exe /P /M <securityfile.xml>Query a Device for its Security ModelYou can query a device to see what certificates are already installed in the device certificate store. You can use that information to select a certificate to sign your application.Querying is accomplished by running RapiConfig.exe and passing in a StoreQuery XML file, which contains the certificate store query. RapiConfig.exe then outputs an XML file that contains the result of the query.RapiConfig.exe, CertStoreQuery.xml, and several sample xml query files are located by default at drive:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools.

To query a device for its security model

Establish an ActiveSync connection to the device.Type the following command at a command prompt, where certstorequery.xml is the certificate store query XML file:Rapiconfig.exe /P /M <certstorequery.xml>View the generated RapiConfigOut.xml file.See Also

Other Resources

Security in Device Projects

ISdpWalk::WalkNode (Windows CE 5.0)

Windows CE 5.0This topic has not yet been rated - Rate this topicSend FeedbackThis method walks an SDP node.HRESULT WalkNode( NODEDATA* pData, ULONG state );

Parameters

pData[in] Pointer to the NodeData structure containing the contents of the current element. If the value of this parameter is either a sequence or an alternative, the state parameter is valid.state[in] State of the operation. When the container is found, the value of this parameter is nonzero. When the end of the container is reached, the value of this parameter is zero.

Remarks

If this method returns S_NO_RECURSE, the contents of the container were not walked.

Return Values

None.

Requirements

OS Versions: Windows CE .NET 4.0 and later.Header: Bthapi.h, Bthapi.idl.Link Library: Btdrt.lib.

See Also

NodeData | ISdpWalk

ISdpWalk::WalkStream (Windows CE 5.0)

Windows CE 5.0This topic has not yet been rated - Rate this topicSend FeedbackThis method walks a raw SDP stream.HRESULT WalkStream( UCHAR elementType, ULONG elementSize, UCHAR* pStream );

Parameters

elementType[in] Type of element.elementSize[in] Size of the element.pStream[in] Pointer to the stream.

Return Values

None.

Requirements

OS Versions: Windows CE .NET 4.0 and later.Header: Bthapi.h, Bthapi.idl.Link Library: Btdrt.lib.

See Also

ISdpWalk

Bluetooth Functions

0 out of 1 rated this helpful - Rate this topicThe following table lists the functions for Bluetooth.Note   Some of these functions are Winsock functions. However, the information that is presented in them is specific to Bluetooth.Programming elementDescriptionaccept (Bluetooth) (Windows CE)This function permits an incoming connection attempt on a socket.bind (Bluetooth) (Windows CE)This function associates a local address with a socket.connect (Bluetooth) (Windows CE)This function establishes a connection to a specified socket.getpeername (Bluetooth) (Windows CE)This function retrieves the name of the peer to which a socket is connected.getsockname (Bluetooth) (Windows CE)This function retrieves the local name for a socket.getsockopt (Bluetooth) (Windows CE)This function retrieves a socket option.setsockopt (Bluetooth) (Windows CE)This function sets a socket option.socket (Bluetooth) (Windows CE)This function creates a socket that is bound to a specific service provider.WSALookupServiceBegin (Bluetooth)(Windows CE)This function initiates a client query that is constrained by the information contained within a WSAQUERYSET structure.WSALookupServiceEnd (Bluetooth)(Windows CE)This function frees the handle after previous calls to the WSALookupServiceBegin and WSALookupServiceNext functions.WSALookupServiceNext (Bluetooth)(Windows CE)This function retrieves the results of an SDP search.WSASetService (Bluetooth) (Windows CE)This function adds, updates, or removes service records from the local SDP database.BthGetMode (PPC+SP)Retrieves the current mode of operation of the Bluetooth radio.BthSetMode (PPC+SP)Sets the Bluetooth mode of operation, reflects it in the control panel, and persists that state across hardware insertion and reboot.

See Also
Bluetooth API

1 out of 1 rated this helpful - Rate this topicThe Bluetooth API provides the functionality for wireless connectivity of mobile devices and peripheral devices that are in proximity to each other.The Bluetooth API provides the following enumeration and function sets for using the Bluetooth radio:Bluetooth EnumerationsBluetooth IOCTLsBluetooth FunctionsBluetooth InterfacesBluetooth Structures

See Also

Bluetooth





|


Bluetooth Interfaces

1 out of 1 rated this helpful - Rate this topicThe following table lists the interfaces for Bluetooth.Programming elementDescriptionISdpNodeContainer (Windows CE)This interface manages the contents of a node.ISdpRecord (Windows CE)This interface manages the contents of an SDP record.ISdpStream (Windows CE)This interface manages streamed data.ISdpWalk (Windows CE)This interface walks the stream.

See Also
















|









|

No comments:

Post a Comment