Share via


SimInitialize (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

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

Parameters

  • 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.

Requirements

Header simmgr.h
Library cellcore.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

SIM Manager Structures

Concepts

SIM Manager Functions