IN_SetPermissions

All Editions image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

The IN_SetPermissions function sets the permissions for the specified document, page, or layer.

Syntax

int IN_SetPermissions( objectID, perms )

Parameters

Values

Meaning

IN_OBJECT objectID

identifier of the document, page, or layer to modify

ULONG perms

IN_PERM_READ(1) read

IN_PERM_WRITE (2) write

IN_PERM_CREATE (4) create

IN_PERM_MODIFY (8) modify

IN_PERM_DELETE (16) delete

IN_PERM_PRINT (32) print

IN_PERM_VISIBILITY (64) visibility

IN_PERM_STATIC (128) static. Applies to layers. Static layers are not added to the Layers window.

IN_PERM_USER1 (256) user defined

IN_PERM_USER2 (512) user defined

(Can be concatenated or ORed)

Release information

Added to Imagenation for Windows in Release 4.41.

As of Release 5.1, also available in Imagenation for UNIX.

See also

Getting and setting document permissions