Send Feedback

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 Values

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


Smartphone: Smartphone 2002 and later
Pocket PC: Pocket PC 2002 and later
OS Versions: Windows CE 3.0 and later
Header: simmgr.h
Library: cellcore.lib

See Also

SIM Manager Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.