Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

SIMCALLBACKis the callback function prototype that SIM Manager uses when sending notifications. This function is part of the SIM Manager API set that enables access to information stored on the SIM card.

Syntax

typedef void (*SIMCALLBACK) (
  DWORD 
dwNotifyCode,
  const void* 
pData,
  DWORD 
dwDataSize,
  DWORD 
dwParam
);

Parameters

dwNotifyCode

A code number that indicates the type of notification received. It can be one of the SIM_NOTIFY_ constants.

Value Description

SIM_NOTIFY_CARD_REMOVED

SIM card was removed; lpDatais NULL.

SIM_NOTIFY_FILE_REFRESH

Files on the SIM were refreshed; lpDatapoints to a SIMFILEREFRESHstructure.

SIM_NOTIFY_MSG_STORED

A message was stored to the SIM; lpDatapoints to a SIMMESSAGECHANGEstructure.

SIM_NOTIFY_MSG_DELETED

A message was removed from the SIM; lpDatapoints to a SIMMESSAGECHANGEstructure.

SIM_NOTIFY_PBE_STORED

A phone book entry was stored to the SIM; lpDatapoints to a SIMPBECHANGEstructure.

SIM_NOTIFY_PBE_DELETED

A phone book entry was removed from the SIM; lpDatapoints to a SIMPBECHANGEstructure.

SIM_NOTIFY_MSG_RECEIVED

Class 2 Short Message Service (SMS) was sent directly to the SIM; lpDatapoints to a SIMMESSAGECHANGEstructure.

SIM_NOTIFY_RADIOOFF

The radio has been turned off but the AT interpreter is still on; lpDatais NULL.

SIM_NOTIFY_RADIOON

The radio is present and is now on; lpDatais NULL.

SIM_NOTIFY_RADIOPRESENT

A radio module/driver was installed; lpDatapoints to a DWORDthat is 0 if the radio is OFF and 1 if the radio is ON.

SIM_NOTIFY_RADIOREMOVED

A radio module/driver has been removed; lpDatais NULL.

pData

Points to the data structure that is specific to the notification.

dwDataSize

Size of the data structure in bytes.

dwParam

Parameter argument that is passed to the SimInitializefunction.

Requirements

Header simmgr.h
Library cellcore.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also