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 );
Indicates which notifications to receive. Set to SIM_INIT_SIMCARD_NOTIFICATIONS (0x00000001) if notifications are wanted. Otherwise, set to zero.
Function callback for notifications. This parameter may be NULL if notifications are not wanted.
Parameter to pass on each notification function call. This parameter may be NULL.
Points to a HSIM handle to use on subsequent function calls.
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
Send Feedback on this topic to the authors