NSpGame_EnableAdvertising
You can use the NSpGame_EnableAdvertising function to enable or disable advertising.
OSStatus NSpGame_EnableAdvertising ( NSpGameReference inGame, NSpProtocolReference inProtocol, Boolean inEnable);
inGame- An opaque reference to your game object.
inProtocol- An opaque reference to a protocol for which you wish to stop advertising, or
NULLto stop advertising on all protocols.inEnable- A value of
trueto start advertising orfalseto stop advertising.- function result
- A result code of
noErr, or a NetSprocket or Open Transport result code.DESCRIPTION
You should set theinEnableparameter totrueorfalse, depending on whether you want to start advertising or stop advertising. TheNSpGame_Hostfunction automatically advertises the game, unless you passedkNSpGameFlag_DontAdvertisein itsinFlagsfield.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help