All Frameworks  Class Hierarchy  This Framework  Indexes

VPMInterfaces Macro VPMCheckingObjectSecuredMethod

Macro VPMCheckingObjectSecuredMethod (iPtr,iMeth,oHres)
Controls Access to the secured method of an object.

Role: This macro controls access to an object's method.

Precondition:

Usage:

Example:
 void myFactory::DeleteAGivenObject(CATIVpmFactoryObject *iObj)
 {
   HRESULT hr = S_OK;
   VPMCheckingObjectSecuredMethod(iObj,Delete,&hr);
   if (VPM_ACCESS_GRANTED(hr)) {
      // OK! Let's continue ...
   }
 }
Parameters:
iPtr
A pointer on the object to check.
iMeth
The object's method name.
Warning! It must be non-quoted string (symbol, e.g: Create)
oHres
A pointer on the HRESULT code.
See also:
VPMCheckingGlobalMethod, VPMGenericFactorySecuredMethod, VPMSecuredMethod, VPM_ACCESS_GRANTED, VPM_ACCESS_DENIED

This object is included in the file: VPMSecurity.h

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