/*
 * DPlayReceive
 *
 * Wrapper for DirectPlay Receive API
 */
HRESULT DPlayReceive(LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize)
{
	HRESULT hr = E_FAIL;

	if (glpDP)
		hr = IDirectPlayX_Receive(glpDP, lpidFrom, lpidTo, dwFlags, lpData, lpdwDataSize);
	
	return hr;
}
Example #2
0
//=========================================================================================================
//	NetPlayReceive
//=========================================================================================================
HRESULT NetPlayReceive(LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, LPDWORD lpdwDataSize)
{
	HRESULT		Hr;
    assert(g_lpDP);

	Hr = IDirectPlayX_Receive(g_lpDP, lpidFrom, lpidTo, dwFlags, lpData, lpdwDataSize);

	if (Hr != DP_OK)
	{
		if (Hr != DPERR_NOMESSAGES)
			DoDPError(Hr);
	}

	return Hr;
}