2023-09-29 12:34:51 +03:00
|
|
|
#include "unix_private.h"
|
|
|
|
|
2023-10-02 16:27:37 +03:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
|
|
|
|
2023-09-29 12:34:51 +03:00
|
|
|
/* ISteamUtils_SteamUtils002 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils002_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils002_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils002_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils002 *iface = (struct u_ISteamUtils_SteamUtils002 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils004 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils004_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils004_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils004_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils004 *iface = (struct u_ISteamUtils_SteamUtils004 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils005 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils005_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils005_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils005_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils005 *iface = (struct u_ISteamUtils_SteamUtils005 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils006 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils006_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils006_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils006_GetAPICallResult_params *)args;
|
|
|
|
struct u_ISteamUtils_SteamUtils005 *iface = (struct u_ISteamUtils_SteamUtils005 *)params->linux_side;
|
2023-09-29 12:34:51 +03:00
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils007 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils007_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils007_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils007_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils007 *iface = (struct u_ISteamUtils_SteamUtils007 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils008 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils008_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils008_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils008_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils008 *iface = (struct u_ISteamUtils_SteamUtils008 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils009 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils009_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils009_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils009_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils009 *iface = (struct u_ISteamUtils_SteamUtils009 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ISteamUtils_SteamUtils010 */
|
|
|
|
|
2023-09-30 14:08:49 +03:00
|
|
|
NTSTATUS ISteamUtils_SteamUtils010_GetAPICallResult( void *args )
|
2023-09-29 12:34:51 +03:00
|
|
|
{
|
2023-09-30 14:08:49 +03:00
|
|
|
struct ISteamUtils_SteamUtils010_GetAPICallResult_params *params = (struct ISteamUtils_SteamUtils010_GetAPICallResult_params *)args;
|
2023-09-29 12:34:51 +03:00
|
|
|
struct u_ISteamUtils_SteamUtils010 *iface = (struct u_ISteamUtils_SteamUtils010 *)params->linux_side;
|
|
|
|
int u_callback_len = params->cubCallback;
|
|
|
|
void *u_callback;
|
|
|
|
|
|
|
|
if (!(u_callback = alloc_callback_wtou( params->iCallbackExpected, params->pCallback, &u_callback_len )))
|
|
|
|
{
|
|
|
|
params->_ret = FALSE;
|
2023-09-30 14:08:49 +03:00
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
params->_ret = iface->GetAPICallResult( params->hSteamAPICall, u_callback, u_callback_len,
|
|
|
|
params->iCallbackExpected, params->pbFailed );
|
|
|
|
if (params->_ret && u_callback != params->pCallback)
|
|
|
|
{
|
|
|
|
convert_callback_utow( params->iCallbackExpected, u_callback, u_callback_len,
|
|
|
|
params->pCallback, params->cubCallback );
|
|
|
|
HeapFree( GetProcessHeap(), 0, u_callback );
|
|
|
|
}
|
2023-09-30 14:08:49 +03:00
|
|
|
|
|
|
|
return 0;
|
2023-09-29 12:34:51 +03:00
|
|
|
}
|