nn::nex::SafetyExecutive::RegisterInvalidOperationCallback Member Function

Syntax

void RegisterInvalidOperationCallback(
     InvalidOperationCallback pfInvalidOperationCallback
);

Parameters

Name Description
pfInvalidOperationCallback [in] Specifies a callback function to be executed by the system when a system operation is rejected.

Return Values

None.

Description

Registers a callback function for determining what executes if a system operation is denied.

The callback function registered using this function is called by the system when a system operation Operation is denied by the SafetyExecutive class. Execution of system operations can be denied by having the callback function registered using the RegisterCustomOperationCheck function return false.

When a system operation is denied, it may be due to a bug in game software or cheating behavior on the part of a player. Either issue can be resolved by using this function to register a callback function ahead of time. For example, in a debug build used during game development, the program can be crashed after indicating the fact that a system operation was denied in a log report, thus allowing the developer to revise the game code. In a release build for product shipment, you can even execute an operation such as sending notification to the server if a system operation is denied and the possible cause is determined to be cheating behavior by a player.

See Also

GetInstance, RegisterCustomOperationCheck

Revision History

2011/01/27
Initial version.

CONFIDENTIAL