cor_vsetstatus

Use this function to write values and a formatted message to the cor_status structure.

Syntax

COR_STATUS* __cdecl cor_vsetstatus(int result, int source, int code, int ref,

                const TCHAR * msg, COR_STATUS* status)

Input Arguments

result

COR_WARNING, COR_SUCCESS, or COR_FAILURE:

0 - Error detected - non fatal.

1 - No error, all errors corrected.

2 - Fatal error detected.

source

Error source; the code that identifies the source subsystem.

code

Error code. See cor_stat.h.

ref

Error reference , used to distinguish the difference between two errors with the same error code.

msg

Error message.

Note: The message can contain format arguments and format specifiers to control how the message will appear if output to the status log by cor_logstatus.

Output Arguments

status

Pointer to the status block (COR_STATUS structure) that is set with input argument values.

Return Value

COR_STATUS

More information

Point Management API general subroutines.