Partager via


SimWriteRecord (Compact 2013)

3/26/2014

This function writes a record to the SIM.

Syntax

HRESULT SimWriteRecord (
  HSIM hSim,
  DWORD dwAddress,
  DWORD dwRecordType,
  DWORD dwIndex,
  LPBYTE lpData,
  DWORD dwByteCount
);

Parameters

  • [in] hSim
    Points to a valid HSIM handle.
  • [in] dwAddress
    A unique ID specifying the name of the SIM record.
  • [in] dwIndex
    Used when the dwRecordType value is SIM_RECORDTYPE_CYCLIC or SIM_RECORDTYPE_LINEAR. Otherwise, this parameter is ignored.
  • [in] lpData
    A pointer to storage to write the record from.
  • [in] dwByteCount
    The number of bytes to write.

Return Value

HRESULT is 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

sim.lib

See Also

Reference

SIM Manager Functions
SIMRECORDINFO
SimGetRecordInfo
SimReadRecord
SimWriteRecord