Mobile SDK for Windows Apps2.0
Transforming Windows apps into Mobile apps
|
CMPAPI - Result definitions for Citrix Mobility Pack. More...
#include <cmptypes.h>
Go to the source code of this file.
Defines | |
#define | STATUS_CODE(Component, Status) (((Component)<<16) | (Status)) |
#define | CMP_SUCCESS(code) (((code) & 0xFFFF) == 0) |
#define | CMP_FAILURE(code) (!CMP_SUCCESS(code)) |
#define | CMP_COMPONENT_CODE(status) ((status) >>16) |
#define | SET_CMPRESULT(prc, rc) if(prc) *prc = rc |
CMPAPI - Result definitions for Citrix Mobility Pack.
#define CMP_COMPONENT_CODE | ( | status | ) | ((status) >>16) |
#define CMP_FAILURE | ( | code | ) | (!CMP_SUCCESS(code)) |
Determine if the status code represents a failure
#define CMP_SUCCESS | ( | code | ) | (((code) & 0xFFFF) == 0) |
Determine if the status code is successful
#define SET_CMPRESULT | ( | prc, | |
rc | |||
) | if(prc) *prc = rc |
#define STATUS_CODE | ( | Component, | |
Status | |||
) | (((Component)<<16) | (Status)) |
Status code macro that combines the component with the status