SimInitialize
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.
HRESULTs are either S_OK for success, or one of the SIM_E error constants defined in the SIM Manager Error Constants table.