Developer

API Reference

IUSERCODEMANAGER_Allocate()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
Brew Release
Brew MP 1.0.2
See Also
IUSERCODEMANAGER_Free()
Description
This function allocates a 16 bit unsigned user code that is unique to the applet
Interface
IUSERCODEMANAGER
Prototype
   int IUSERCODEMANAGER_Allocate (IUserCodeManager* po, uint16* pnUserCode)

Parameters
   po :         poiner to the IUserCodeManager interface object
   pnUserCode : the address of where to store the user code
Return
   SUCCESS - *pnUserCode points to a new unique user code
   Any other value is an error code, eg ENOMEMORY

Comments :
Side Effects : Set of currently allocated user codes re-persisted using IPersistentStorage
  • Follow