Creates, deletes, gets, queries, or updates representative OS/2 or Windows icons.
Authorization
Administrator; user (FLG_ACTION_GET and FLG_ACTION_QUERY only)
Syntax
APIRET APIENTRY FLGManageIcons( PSZ pszObjTypeID,
PSZ pszIconFileID,
FLGOPTIONS InOptions,
PFLGOPTIONS pOutOptions,
PFLGEXTCODE pExtCode );
Parameters
Choose one of the following platform options:
See Appendix D, Information Catalog Manager reason codes for an explanation of the returned reason codes.
Usage
Prerequisite:
Before you can call FLGManageIcons, you need to call FLGCreateReg to register the object type for which you want to manage icons.
Controlling updates to your information catalog
To keep your program as synchronized as possible with your information catalog, you should include a call to FLGCommit (see FLGCommit) after FLGManageIcons successfully creates, updates, or deletes icons. If FLGManageIcons does not create, update, or delete icons successfully, you should include a call to FLGRollback (see FLGRollback).
Figure 123 shows the C language code required to issue the FLGManageIcons call. This sample code updates a Windows icon in the Information Catalog Manager.
Figure 123. Sample C language call to FLGManageIcons
APIRET rc; // reason code from FLGManageIcons
UCHAR pszObjTypeID[FLG_OBJTYPID_LEN + 1];
UCHAR pszIconFileID[FLG_ICON_FILE_ID_MAXLEN + 1];
FLGOPTIONS Options = 0; // initialize option
FLGEXTCODE xc=0; // extended code
.
. /* provide values for input parameters */
.
Options = Options | FLG_ACTION_UPDATE | FLG_PLATFORM_WINDOWS;
rc = FLGManageIcons (pszObjTypeID,
pszIconFileID,
Options,
NULL,
&xc);