05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FUNCTION REFERENCE<br />

HASACCESS (RIGHTS)<br />

HASACCESS (RIGHTS)<br />

ARGUMENT TYPE DESCRIPTION<br />

rights int The required access rights.<br />

DESCRIPTION<br />

Returns a value of true or false depending on whether the current user has access rights<br />

defined by the rights parameter. This parameter comprises a bit-mask representing the<br />

various user-defined rights, with bit 0 (ie. the bit with a value of 0x01) representing User<br />

Right 1, bit 1 (ie. the bit with a value of 0x02) representing User Right 2 and so on. The<br />

function is typically used in programs that perform a number of actions that might be subject<br />

to security, and that might otherwise not occur.<br />

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

int<br />

EXAMPLE<br />

if( HasAccess(1)) {<br />

Data1 := 0;<br />

Data2 := 0;<br />

Data3 := 0;<br />

}<br />

REVISION 6 PAGE 359

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!