Windows-Server-2003/ds/adsi/include/formcnst.hxx

54 lines
1.6 KiB
C++
Raw Normal View History

2024-08-04 01:28:15 +02:00
#ifndef _HXX_FORMCNST
#define _HXX_FORMCNST
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: formcnst.hxx
//
// Contents: Global constants, macros, and inline functions for forms
// project.
//
// History: 24-Oct-94 KrishnaG appropriated from the Forms project
//
//----------------------------------------------------------------------------
// Max num of params in event
const int EVENTPARAMS_MAX = 16;
//+------------------------------------------------------------------------
//
// Ole Automation constants
//
//-------------------------------------------------------------------------
#define VB_TRUE ((VARIANT_BOOL)-1) // TRUE for VARIANT_BOOL
#define VB_FALSE ((VARIANT_BOOL)0) // FALSE for VARIANT_BOOL
//+------------------------------------------------------------------------
//
// Macros for dealing with BOOLean properties
//
//-------------------------------------------------------------------------
#define EQUAL_BOOL(_x_,_y_) (((_x_) && (_y_)) || (!(_x_) && !(_y_)))
#define ENSURE_BOOL(_x_) ((_x_) ? TRUE : FALSE)
#define ISBOOL(_x_) ((_x_) == TRUE || (_x_) == FALSE)
//+------------------------------------------------------------------------
//
// Handle changes in IsEqual*
//
//-------------------------------------------------------------------------
#undef IsEqualIID
#define IsEqualIID(a, b) (a == b)
#undef IsEqualCLSID
#define IsEqualCLSID(a, b) (a == b)
#endif // #ifndef _HXX_FORMCNST