1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>WM_StartKeySharing</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">WM_StartKeySharing <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1> 15<h2>Syntax</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/wm.h> 18 19<A href="WMErrCode.html">WMErrCode</A> WM_StartKeySharing( <A href="WMKeySetBuf.html">WMKeySetBuf</A>* buf, u16 port ); 20</CODE></PRE></dd> 21</dl> 22 23<h2>Arguments</h2> 24<table border="1" width="100%"> 25 <tbody> 26 <TR> 27 <TD width="200"><EM><STRONG><FONT face="Courier New">buf</FONT></STRONG></EM></TD> 28 <TD width="800">Pointer to the buffer that stores key information. 29 The entity is the pointer to the <CODE>WMDataSharingInfo</CODE> structure.</TD> 30 </TR> 31 <TR> 32 <TD width="200"><EM><STRONG><FONT face="Courier New">port</FONT></STRONG></EM></TD> 33 <TD width="800">Sets the port number. Select a port number between 12 and 15 that is not being used elsewhere.</TD> 34 </TR> 35 </tbody> 36</table> 37 38<h2>Return Values</h2> 39<p>Returns the results of the <CODE><A href="WMErrCode.html">WMErrCode</A></CODE> enumerated type process.</p> 40 41<H2>Description</H2> 42<P>Enables the key sharing feature. This function can be run when the WM is in either the <a href="wm_state_diagram.html"><code>MP_PARENT</code></a> state or the <a href="wm_state_diagram.html"><code>MP_CHILD</code></a> state. This function was changed from asynchronous to synchronous.<BR>The <A href="WM_StartKeySharing.html"><CODE>WM_StartKeySharing</CODE></A>, <A href="WM_EndKeySharing.html"><CODE>WM_EndKeySharing</CODE></A>, and <A href="WM_GetKeySet.html"><CODE>WM_GetKeySet</CODE></A> functions were left to maintain compatibility, but they will be removed in the future. Use the Data Sharing functions instead.</P> 43 44<h2>See Also</h2> 45<p><A href="WM_EndKeySharing.html"><code>WM_EndKeySharing</code></A>, <A href="WM_GetKeySet.html"><code>WM_GetKeySet</code></A></p> 46 47<H2>Revision History</H2> 48<P> 492005/06/07 Changed argument, and made into synchronous function.<br />2004/10/22 Changed return value types.<BR>2004/08/02 Standardized structure names.<br />2004/07/29 Added to description.<br />2004/07/23 Initial version. 50</P> 51<hr><p>CONFIDENTIAL</p></body> 52</html> 53