• Moderator
    Kronos
    Posts: 2239 from 2003/2/24
    One of the ideas I have for PastePass 1.0 is that the PassTool (to encrypt you password against your registered username) should get a GUI and do all what is need for your.

    For that it needs to be able to write crypted pass into the Tooltype of an icon and to my suprise there isn't a proper API for that.

    Tooltypes seem to be stored as a pointer to array of strings in struct DiskObject, so my guess is:

    add: create an array of STRPTR 1 bigger than the one in the DiskObject, copy all existing entries into it, add new Tooltype at end, put that pointer into *do_ToolTypes and call PutDiskObject().
    In order to leave no dangling memory I would than have to put the old pointer back in before calling FreeDiskObject()

    change: all the same, just replacing that one string instead of the whole array.

    Sounds like an awfully complicated and not really clean method....

    [ Edited by Kronos 21.05.2015 - 18:00 ]
  • »21.05.15 - 17:55
    Profile