All Frameworks  Class Hierarchy  This Framework  Indexes

VPMInterfaces Macro VPMSecuredMethod

Macro VPMSecuredMethod (iMeth,oHres)
Declares an object's method as secured.

Role: This macro controls access to the object's method where it is implemented.

Precondition:

Usage: Example:
 void myClass::aSecuredMethod(...)
 {
   HRESULT hr = S_OK;
   VPMSecuredMethod(aSecuredMethod,&hr);
   if (VPM_ACCESS_GRANTED(hr)) {
      // OK! Let's continue ...
   }
 }
Parameters:
iMeth
The object's method name.
Warning! It must be non-quoted string (symbol, e.g: Delete, Modify, etc).
oHres
A pointer on the HRESULT code.
See also:
VPMCheckingObjectSecuredMethod, VPM_ACCESS_GRANTED, VPM_ACCESS_DENIED

This object is included in the file: VPMSecurity.h

Copyright © 2003, Dassault Systèmes. All rights reserved.