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 http-equiv="Content-Style-Type" content="text/css"> 7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 8<title>DWC_GetGsProfileId</title> 9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13<a name="dwc__account_8h_1e78321ccd6a60002a6eb7cbc8a0db75a"></a> 14<h1 align="left">DWC_GetGsProfileId</h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <dwc.h></CODE><BR> 20 <BR> 21 <PRE><CODE>int <a href=DWC_GetGsProfileId.html#dwc__account_8h_1e78321ccd6a60002a6eb7cbc8a0db75a>DWC_GetGsProfileId</a>(const DWCUserData *userdata, 22 const DWCFriendData *frienddata);</CODE></PRE></dd> 23</dl> 24 25<h2>Arguments</h2> 26 27<TABLE border="1" width="100%"> 28 <TBODY> 29 30 <TR> 31<TD width="13%"><EM><STRONG>userdata</STRONG></EM></TD> 32<TD width="87%">Pointer to the <CODE>DWCUserData</CODE> structure where the user data is stored.</TD> 33 </TR> 34 35 <TR> 36<TD width="13%"><EM><STRONG>frienddata</STRONG></EM></TD> 37<TD width="87%">Pointer to the <CODE>DWCFriendData</CODE> structure where the friend data is stored.</TD> 38 </TR> 39 40 </TBODY> 41</TABLE> 42 43<h2>Return Values</h2> 44 45<TABLE border="1" width="100%"> 46 <TBODY> 47 48 <TR> 49<TD width="13%"><EM><STRONG>Positive integer</STRONG></EM></TD> 50<TD width="87%">GS profile ID</TD> 51 </TR> 52 53 <TR> 54 <TD width="13%"><EM><STRONG>0</STRONG></EM></TD> 55<TD width="87%">Cannot get the profile ID because the friend code is invalid.</TD> 56 </TR> 57 58 <TR> 59 <TD width="13%"><EM><STRONG>-1</STRONG></EM></TD> 60<TD width="87%">Cannot obtain the profile ID because the login ID is stored.</TD> 61 </TR> 62 63 </TBODY> 64</TABLE> 65 66<H2>Description</H2> 67<p>Gets a GS profile ID from the friend data specified by <CODE>frienddata</CODE>. The GS profile ID can be obtained when the friend data type returned by <CODE><A href="DWC_GetFriendDataType.html">DWC_GetFriendDataType</a></CODE> is a friend code and from an established friend.</p> 68 69<H2>Revision History</H2> 70<DL> 71 72<DT><para>1.1.2</DT> 73<DD>Removed the text "Use only for debugging."</DD> 74 75</DL> 76<hr><p>CONFIDENTIAL</p></body> 77</html> 78