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_GetLastMatchType</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__match_8h_108b4351e3f3eb46addc0d78ff26ba898"></a>
14<h1 align="left">DWC_GetLastMatchType</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>int <a href=DWC_GetLastMatchType.html#dwc__match_8h_108b4351e3f3eb46addc0d78ff26ba898>DWC_GetLastMatchType</a>(void);</CODE></PRE></dd>
22</dl>
23
24<h2>Arguments</h2>
25
26<p>None.</p>
27
28<h2>Return Values</h2>
29
30<TABLE border="1" width="100%">
31  <TBODY>
32
33    <TR>
34      <TD width="13%"><EM><STRONG>-1</STRONG></EM></TD>
35      <TD width="87%">FriendsMatch library is not initialized.</TD>
36    </TR>
37
38    <TR>
39      <TD width="13%"><EM><STRONG>DWC_MATCH_TYPE_ANYBODY</STRONG></EM></TD>
40      <TD width="87%">Peer matchmaking with friend unspecified.</TD>
41    </TR>
42
43    <TR>
44      <TD width="13%"><EM><STRONG>DWC_MATCH_TYPE_FRIEND</STRONG></EM></TD>
45      <TD width="87%">Peer matchmaking with friend specified.</TD>
46    </TR>
47
48    <TR>
49      <TD width="13%"><EM><STRONG>DWC_MATCH_TYPE_SC_SV</STRONG></EM></TD>
50      <TD width="87%">Server host for server-client matchmaking.</TD>
51    </TR>
52
53    <TR>
54      <TD width="13%"><EM><STRONG>DWC_MATCH_TYPE_SC_CL</STRONG></EM></TD>
55      <TD width="87%">Client host for server-client matchmaking.</TD>
56    </TR>
57
58  </TBODY>
59</TABLE>
60
61<H2>Description</H2>
62<p>Gets the most recent type of matchmaking performed.</p><p>Returns -1 if the FriendsMatch library has not been initialized using <CODE><a href=DWC_InitFriendsMatch.html#dwc__main_8h_186c2f56943c3a20c05d73d4a2abad609>DWC_InitFriendsMatch</a></CODE>. Returns <CODE><a href=Macro.html#dwc__match_8h_161dadd085c1777f559549e05962b2c9ea95c4c76f967aca136989c1fa9609e17>DWC_MATCH_TYPE_ANYBODY</a></CODE> = 0 from the time of initialization until the start of the first matchmaking.</p>
63
64<H2>Revision History</H2>
65<DL>
66
67</DL>
68<hr><p>CONFIDENTIAL</p></body>
69</html>
70