A version of this page is also available for

Windows Embedded CE 6.0 R3


The SimInitialize function must be called by applications in order to use any of the functions in this API. Passing in a function callback is required only for applications that wish to obtain notifications. This function is part of the SIM Manager API set that enables access to information stored on the SIM card.


HRESULT SimInitialize (
  DWORD dwFlags,
  SIMCALLBACK lpfnCallBack,
  DWORD dwParam,
  LPHSIM lphSim


  • dwFlags
    Indicates which notifications to receive. Set to SIM_INIT_SIMCARD_NOTIFICATIONS (0x00000001) if notifications are wanted. Otherwise, set to zero.
  • lpfnCallBack
    Function callback for notifications. This parameter may be NULL if notifications are not wanted.
  • dwParam
    Parameter to pass on each notification function call. This parameter may be NULL.
  • lphSim
    Points to a HSIM handle to use on subsequent function calls.

Return Value

HRESULTs are either S_OK for success, or one of the SIM_E error constants defined in the SIM Manager Error Constants table.


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


SIM Manager Structures