次の方法で共有


SIMERRORCLASS (Compact 2013)

3/26/2014

This macro returns the SIM Manager Error Class Constants value portion of a SIM Manager HRESULT.

Syntax

#define SIMERRORCLASS(simerror) \
((unsigned long) (((simerror)>>8) & 0xff))

Parameters

  • simerror
    A SIM Manager HRESULT value.

Return Value

The SIM Manager Error Class Constants value portion of a SIM Manager HRESULT.

Example

HRESULT hr;
HRESULT hr_error_class;

hr = SIM_E_SIMFAILURE; // value = 0x88000021, class = 0x02, error = 0x01

hr_error_class = SIMERRORCLASS( hr );

// hr_error_class = will contain the value 0x02 = SIM_ERRORCLASS_SIM

Requirements

Header

simmgr.h

Library

sim.lib

See Also

Reference

SIM Manager Macros
MAKE_SIMERROR
SIM Manager Error Constants