nn::nex::SafetyExecutive::RegisterCustomOperationCheck Member Function

Syntax

void RegisterCustomOperationCheck(
     CustomOperationCheck pfCustomOperationCheck
);

Parameters

Name Description
pfCustomOperationCheck [in] Registers a callback function for determining whether to allow or deny an operation. Returns true if the given operation is accepted; otherwise, false must be returned.

Return Values

None.

Description

Registers a callback function for determining whether to allow or deny a system operation (Operation).

The callback function specified by this function determines whether the operation represented by the system operation (Operation) is illegal. Use of the registered callback function allows you to work around bugs in the application code and reduce cheating behavior by players.

Even if this function is registered, by default it does not determine whether to accept or reject system operations from the local station (from self). The TrustLocalStation function must be called in order to call the callback function specified by pfCustomOperationCheck even for system operations attempted by the local station.

See Also

GetInstance, RegisterInvalidOperationCallback

Revision History

2011/01/27
Initial version.

CONFIDENTIAL