adReset

GameSpy SDK

adReset

Return the SDK back to its initialization point.

AdResult adReset(
AdInterfacePtr * theInterface );
RoutineRequired HeaderDistribution
adReset<ad.h>SDKZIP

Return Value

This function returns AdResult_NO_ERROR upon success. Otherwise a valid AdResult error condition is returned. (see remarks)

Parameters

theInterface
[in] AdInterfacePtr to be reset

Remarks

This function will return the SDK back to its starting point. The internal position and ad info lists will be cleared. All usage data will be cleared.

AdResult_INVALID_PARAMETERS will be returned if theInterface is invalid.

Example

	AdInterfacePtr anInterface  = NULL;
	AdResult       aResult      = AdResult_NO_ERROR;

		// Set run-time parameters
		AdInitParams anInitParams;
		memset(&anInitParams;, 0, sizeof(AdInitParams));
		anInitParams.mGameId = GAME_ID;
anInitParams.mOfflineFilePath = "ad";
		
		printf("Initializing the Ad SDK\r\n");
		aResult = adInitialize(&anInitParams;, &anInterface;);
		if (aResult != AdResult_NO_ERROR)
		{
			printf("adInitialize failed (%d)\r\n", aResult);
			return 0;
		}

Section Reference: Gamespy Advertising SDK

See Also: adInitialize