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:
- It must be used in a non static class method body
(it is using this)
- It must be used at the beginning of the method
- The (class,iMethod) must be declared using
ENOVRegisterClassMethod macro,
with ENOVSecSECURED characteristic
(class being one of the classes of this' classes hierarchy).
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