home *** CD-ROM | disk | FTP | other *** search
- #include <wfc.h>
- #pragma hdrstop
-
- /*
- ** Author: Samuel R. Blackburn
- ** CI$: 76300,326
- ** Internet: sammy@sed.csc.com
- **
- ** You can use it any way you like.
- */
-
- CAccessAllowedEntry::CAccessAllowedEntry()
- {
- Empty();
- }
-
- CAccessAllowedEntry::~CAccessAllowedEntry()
- {
- Empty();
- }
-
- void CAccessAllowedEntry::Empty( void )
- {
- // ACE_HEADER
- Header.AceType = 0;
- Header.AceFlags = 0;
- Header.AceSize = 0;
-
- // ACE_MASK
- Mask = 0;
-
- SidStart = 0;
- }
-
- CAccessControlEntryHeader::CAccessControlEntryHeader()
- {
- Empty();
- }
-
- CAccessControlEntryHeader::~CAccessControlEntryHeader()
- {
- Empty();
- }
-
- void CAccessControlEntryHeader::Empty( void )
- {
- AceType = 0;
- AceFlags = 0;
- AceSize = 0;
- }
-
- CAccessControlList::CAccessControlList()
- {
- Empty();
- }
-
- CAccessControlList::~CAccessControlList()
- {
- Empty();
- }
-
- void CAccessControlList::Empty( void )
- {
- AclRevision = ACL_REVISION;
- Sbz1 = 0;
- AclSize = 0;
- AceCount = 0;
- Sbz2 = 0;
- }
-
- CAccessDeniedEntry::CAccessDeniedEntry()
- {
- Empty();
- }
-
- CAccessDeniedEntry::~CAccessDeniedEntry()
- {
- Empty();
- }
-
- void CAccessDeniedEntry::Empty( void )
- {
- // ACE_HEADER
- Header.AceType = 0;
- Header.AceFlags = 0;
- Header.AceSize = 0;
-
- // ACE_MASK
- Mask = 0;
-
- SidStart = 0;
- }
-
- CBitmapCoreHeader::CBitmapCoreHeader()
- {
- Empty();
- }
-
- CBitmapCoreHeader::~CBitmapCoreHeader()
- {
- Empty();
- }
-
- void CBitmapCoreHeader::Empty( void )
- {
- bcSize = sizeof( tagBITMAPCOREHEADER );
- bcWidth = 0;
- bcHeight = 0;
- bcPlanes = 0;
- bcBitCount = 0;
- }
-
- CBitmapFileHeader::CBitmapFileHeader()
- {
- Empty();
- }
-
- CBitmapFileHeader::~CBitmapFileHeader()
- {
- Empty();
- }
-
- void CBitmapFileHeader::Empty( void )
- {
- bfType = 'BM';
- bfSize = 0;
- bfReserved1 = 0;
- bfReserved2 = 0;
- bfOffBits = 0;
- }
-
- CBitmapInfoHeader::CBitmapInfoHeader()
- {
- Empty();
- }
-
- CBitmapInfoHeader::~CBitmapInfoHeader()
- {
- Empty();
- }
-
- void CBitmapInfoHeader::Empty( void )
- {
- biSize = sizeof( tagBITMAPINFOHEADER );
- biWidth = 0;
- biHeight = 0;
- biPlanes = 0;
- biBitCount = 0;
- biCompression = 0;
- biSizeImage = 0;
- biXPelsPerMeter = 0;
- biYPelsPerMeter = 0;
- biClrUsed = 0;
- biClrImportant = 0;
- }
-
- CColorAdjustment::CColorAdjustment()
- {
- Empty();
- }
-
- CColorAdjustment::~CColorAdjustment()
- {
- Empty();
- }
-
- void CColorAdjustment::Empty( void )
- {
- caSize = sizeof( tagCOLORADJUSTMENT );
- caFlags = 0;
- caIlluminantIndex = 0;
- caRedGamma = 0;
- caGreenGamma = 0;
- caBlueGamma = 0;
- caReferenceBlack = 0;
- caReferenceWhite = 0;
- caContrast = 0;
- caBrightness = 0;
- caColorfulness = 0;
- caRedGreenTint = 0;
- }
-
- CMemoryStatus::CMemoryStatus()
- {
- Empty();
- }
-
- CMemoryStatus::~CMemoryStatus()
- {
- Empty();
- }
-
- void CMemoryStatus::Empty( void )
- {
- dwLength = sizeof( MEMORYSTATUS );
- dwMemoryLoad = 0;
- dwTotalPhys = 0;
- dwAvailPhys = 0;
- dwTotalPageFile = 0;
- dwAvailPageFile = 0;
- dwTotalVirtual = 0;
- dwAvailVirtual = 0;
- }
-
- COFStruct::COFStruct()
- {
- Empty();
- }
-
- COFStruct::~COFStruct()
- {
- Empty();
- }
-
- void COFStruct::Empty( void )
- {
- cBytes = sizeof( _OFSTRUCT );
- fFixedDisk = 0;
- nErrCode = 0;
- Reserved1 = 0;
- Reserved2 = 0;
-
- int index = 0;
-
- while( index < OFS_MAXPATHNAME )
- {
- szPathName[ index ] = 0;
- index++;
- }
- }
-
- COutlineTextMetricA::COutlineTextMetricA()
- {
- Empty();
- }
-
- COutlineTextMetricA::~COutlineTextMetricA()
- {
- Empty();
- }
-
- void COutlineTextMetricA::Empty( void )
- {
- otmSize = sizeof( _OUTLINETEXTMETRICA );
-
- // TEXTMETRICA
- otmTextMetrics.tmHeight = 0;
- otmTextMetrics.tmAscent = 0;
- otmTextMetrics.tmDescent = 0;
- otmTextMetrics.tmInternalLeading = 0;
- otmTextMetrics.tmExternalLeading = 0;
- otmTextMetrics.tmAveCharWidth = 0;
- otmTextMetrics.tmMaxCharWidth = 0;
- otmTextMetrics.tmWeight = 0;
- otmTextMetrics.tmOverhang = 0;
- otmTextMetrics.tmDigitizedAspectX = 0;
- otmTextMetrics.tmDigitizedAspectY = 0;
- otmTextMetrics.tmFirstChar = 0;
- otmTextMetrics.tmLastChar = 0;
- otmTextMetrics.tmDefaultChar = 0;
- otmTextMetrics.tmBreakChar = 0;
- otmTextMetrics.tmItalic = 0;
- otmTextMetrics.tmUnderlined = 0;
- otmTextMetrics.tmStruckOut = 0;
- otmTextMetrics.tmPitchAndFamily = 0;
- otmTextMetrics.tmCharSet = 0;
-
- otmFiller = 0;
-
- // PANOSE
- otmPanoseNumber.bFamilyType = 0;
- otmPanoseNumber.bSerifStyle = 0;
- otmPanoseNumber.bWeight = 0;
- otmPanoseNumber.bProportion = 0;
- otmPanoseNumber.bContrast = 0;
- otmPanoseNumber.bStrokeVariation = 0;
- otmPanoseNumber.bArmStyle = 0;
- otmPanoseNumber.bLetterform = 0;
- otmPanoseNumber.bMidline = 0;
- otmPanoseNumber.bXHeight = 0;
-
- otmfsSelection = 0;
- otmfsType = 0;
- otmsCharSlopeRise = 0;
- otmsCharSlopeRun = 0;
- otmItalicAngle = 0;
- otmEMSquare = 0;
- otmAscent = 0;
- otmDescent = 0;
- otmLineGap = 0;
- otmsCapEmHeight = 0;
- otmsXHeight = 0;
-
- // RECT
- otmrcFontBox.left = 0;
- otmrcFontBox.top = 0;
- otmrcFontBox.right = 0;
- otmrcFontBox.bottom = 0;
-
- otmMacAscent = 0;
- otmMacDescent = 0;
- otmMacLineGap = 0;
- otmusMinimumPPEM = 0;
-
- // POINT
- otmptSubscriptSize.x = 0;
- otmptSubscriptSize.y = 0;
- otmptSubscriptOffset.x = 0;
- otmptSubscriptOffset.y = 0;
- otmptSuperscriptSize.x = 0;
- otmptSuperscriptSize.y = 0;
- otmptSuperscriptOffset.x = 0;
- otmptSuperscriptOffset.y = 0;
-
- otmsStrikeoutSize = 0;
- otmsStrikeoutPosition = 0;
- otmsUnderscoreSize = 0;
- otmsUnderscorePosition = 0;
- otmpFamilyName = NULL;
- otmpFaceName = NULL;
- otmpStyleName = NULL;
- otmpFullName = NULL;
- }
-
- COutlineTextMetricW::COutlineTextMetricW()
- {
- Empty();
- }
-
- COutlineTextMetricW::~COutlineTextMetricW()
- {
- Empty();
- }
-
- void COutlineTextMetricW::Empty( void )
- {
- otmSize = sizeof( _OUTLINETEXTMETRICW );
-
- // TEXTMETRICW
- otmTextMetrics.tmHeight = 0;
- otmTextMetrics.tmAscent = 0;
- otmTextMetrics.tmDescent = 0;
- otmTextMetrics.tmInternalLeading = 0;
- otmTextMetrics.tmExternalLeading = 0;
- otmTextMetrics.tmAveCharWidth = 0;
- otmTextMetrics.tmMaxCharWidth = 0;
- otmTextMetrics.tmWeight = 0;
- otmTextMetrics.tmOverhang = 0;
- otmTextMetrics.tmDigitizedAspectX = 0;
- otmTextMetrics.tmDigitizedAspectY = 0;
- otmTextMetrics.tmFirstChar = 0;
- otmTextMetrics.tmLastChar = 0;
- otmTextMetrics.tmDefaultChar = 0;
- otmTextMetrics.tmBreakChar = 0;
- otmTextMetrics.tmItalic = 0;
- otmTextMetrics.tmUnderlined = 0;
- otmTextMetrics.tmStruckOut = 0;
- otmTextMetrics.tmPitchAndFamily = 0;
- otmTextMetrics.tmCharSet = 0;
-
- otmFiller = 0;
-
- // PANOSE
- otmPanoseNumber.bFamilyType = 0;
- otmPanoseNumber.bSerifStyle = 0;
- otmPanoseNumber.bWeight = 0;
- otmPanoseNumber.bProportion = 0;
- otmPanoseNumber.bContrast = 0;
- otmPanoseNumber.bStrokeVariation = 0;
- otmPanoseNumber.bArmStyle = 0;
- otmPanoseNumber.bLetterform = 0;
- otmPanoseNumber.bMidline = 0;
- otmPanoseNumber.bXHeight = 0;
-
- otmfsSelection = 0;
- otmfsType = 0;
- otmsCharSlopeRise = 0;
- otmsCharSlopeRun = 0;
- otmItalicAngle = 0;
- otmEMSquare = 0;
- otmAscent = 0;
- otmDescent = 0;
- otmLineGap = 0;
- otmsCapEmHeight = 0;
- otmsXHeight = 0;
-
- // RECT
- otmrcFontBox.left = 0;
- otmrcFontBox.top = 0;
- otmrcFontBox.right = 0;
- otmrcFontBox.bottom = 0;
-
- otmMacAscent = 0;
- otmMacDescent = 0;
- otmMacLineGap = 0;
- otmusMinimumPPEM = 0;
-
- // POINT
- otmptSubscriptSize.x = 0;
- otmptSubscriptSize.y = 0;
- otmptSubscriptOffset.x = 0;
- otmptSubscriptOffset.y = 0;
- otmptSuperscriptSize.x = 0;
- otmptSuperscriptSize.y = 0;
- otmptSuperscriptOffset.x = 0;
- otmptSuperscriptOffset.y = 0;
-
- otmsStrikeoutSize = 0;
- otmsStrikeoutPosition = 0;
- otmsUnderscoreSize = 0;
- otmsUnderscorePosition = 0;
- otmpFamilyName = NULL;
- otmpFaceName = NULL;
- otmpStyleName = NULL;
- otmpFullName = NULL;
- }
-
- CPerfCounterDefinition::CPerfCounterDefinition()
- {
- Empty();
- }
-
- CPerfCounterDefinition::~CPerfCounterDefinition()
- {
- Empty();
- }
-
- void CPerfCounterDefinition::Empty( void )
- {
- ByteLength = sizeof( PERF_COUNTER_DEFINITION );
- CounterNameTitleIndex = 0;
- CounterNameTitle = NULL;
- CounterHelpTitleIndex = 0;
- CounterHelpTitle = NULL;
- DefaultScale = 0;
- DetailLevel = 0;
- CounterType = 0;
- CounterSize = 0;
- CounterOffset = 0;
- }
-
- CPerfInstanceDefinition::CPerfInstanceDefinition()
- {
- Empty();
- }
-
- CPerfInstanceDefinition::~CPerfInstanceDefinition()
- {
- Empty();
- }
-
- void CPerfInstanceDefinition::Empty( void )
- {
- ByteLength = sizeof( PERF_INSTANCE_DEFINITION );
- ParentObjectTitleIndex = 0;
- ParentObjectInstance = 0;
- UniqueID = 0;
- NameOffset = 0;
- NameLength = 0;
- }
-
- CPixelFormatDescriptor::CPixelFormatDescriptor()
- {
- Empty();
- }
-
- CPixelFormatDescriptor::~CPixelFormatDescriptor()
- {
- Empty();
- }
-
- void CPixelFormatDescriptor::Empty( void )
- {
- nSize = sizeof( tagPIXELFORMATDESCRIPTOR );
- nVersion = 0;
- dwFlags = 0;
- iPixelType = 0;
- cColorBits = 0;
- cRedBits = 0;
- cRedShift = 0;
- cGreenBits = 0;
- cGreenShift = 0;
- cBlueBits = 0;
- cBlueShift = 0;
- cAlphaBits = 0;
- cAlphaShift = 0;
- cAccumBits = 0;
- cAccumRedBits = 0;
- cAccumGreenBits = 0;
- cAccumBlueBits = 0;
- cAccumAlphaBits = 0;
- cDepthBits = 0;
- cStencilBits = 0;
- cAuxBuffers = 0;
- iLayerType = 0;
- bReserved = 0;
- dwLayerMask = 0;
- dwVisibleMask = 0;
- dwDamageMask = 0;
- }
-
- CRasterizerStatus::CRasterizerStatus()
- {
- Empty();
- }
-
- CRasterizerStatus::~CRasterizerStatus()
- {
- Empty();
- }
-
- void CRasterizerStatus::Empty( void )
- {
- nSize = sizeof( _RASTERIZER_STATUS );
- wFlags = 0;
- nLanguageID = 0;
- }
-
- CSecurityAttributes::CSecurityAttributes()
- {
- Empty();
- }
-
- CSecurityAttributes::~CSecurityAttributes()
- {
- Empty();
- }
-
- void CSecurityAttributes::Empty( void )
- {
- nLength = sizeof( SECURITY_ATTRIBUTES );
- lpSecurityDescriptor = NULL;
- bInheritHandle = FALSE;
- }
-
- CSecurityQualityOfService::CSecurityQualityOfService()
- {
- Empty();
- }
-
- CSecurityQualityOfService::~CSecurityQualityOfService()
- {
- Empty();
- }
-
- void CSecurityQualityOfService::Empty( void )
- {
- Length = sizeof( SECURITY_QUALITY_OF_SERVICE );
-
- // SECURITY_IMPERSONATION_LEVEL
- ImpersonationLevel = SecurityAnonymous;
-
- // SECURITY_CONTEXT_TRACKING_MODE
- ContextTrackingMode = FALSE;
-
- //BOOLEAN
- EffectiveOnly = FALSE;
- }
-
- CSystemAuditEntry::CSystemAuditEntry()
- {
- Empty();
- }
-
- CSystemAuditEntry::~CSystemAuditEntry()
- {
- Empty();
- }
-
- void CSystemAuditEntry::Empty( void )
- {
- // ACE_HEADER
- Header.AceType = 0;
- Header.AceFlags = 0;
- Header.AceSize = 0;
-
- // ACCESS_MASK
- Mask = 0;
-
- SidStart = 0;
- }
-
- CTextMetricA::CTextMetricA()
- {
- Empty();
- }
-
- CTextMetricA::~CTextMetricA()
- {
- Empty();
- }
-
- void CTextMetricA::Empty( void )
- {
- tmHeight = 0;
- tmAscent = 0;
- tmDescent = 0;
- tmInternalLeading = 0;
- tmExternalLeading = 0;
- tmAveCharWidth = 0;
- tmMaxCharWidth = 0;
- tmWeight = 0;
- tmOverhang = 0;
- tmDigitizedAspectX = 0;
- tmDigitizedAspectY = 0;
- tmFirstChar = 0;
- tmLastChar = 0;
- tmDefaultChar = 0;
- tmBreakChar = 0;
- tmItalic = 0;
- tmUnderlined = 0;
- tmStruckOut = 0;
- tmPitchAndFamily = 0;
- tmCharSet = 0;
- }
-
- CTextMetricW::CTextMetricW()
- {
- Empty();
- }
-
- CTextMetricW::~CTextMetricW()
- {
- Empty();
- }
-
- void CTextMetricW::Empty( void )
- {
- tmHeight = 0;
- tmAscent = 0;
- tmDescent = 0;
- tmInternalLeading = 0;
- tmExternalLeading = 0;
- tmAveCharWidth = 0;
- tmMaxCharWidth = 0;
- tmWeight = 0;
- tmOverhang = 0;
- tmDigitizedAspectX = 0;
- tmDigitizedAspectY = 0;
- tmFirstChar = 0;
- tmLastChar = 0;
- tmDefaultChar = 0;
- tmBreakChar = 0;
- tmItalic = 0;
- tmUnderlined = 0;
- tmStruckOut = 0;
- tmPitchAndFamily = 0;
- tmCharSet = 0;
- }
-
- CWindowPlacement::CWindowPlacement()
- {
- Empty();
- }
-
- CWindowPlacement::~CWindowPlacement()
- {
- Empty();
- }
-
- void CWindowPlacement::Empty( void )
- {
- length = sizeof( tagWINDOWPLACEMENT );
- flags = 0;
- showCmd = 0;
-
- // POINT
- ptMinPosition.x = 0;
- ptMinPosition.y = 0;
- ptMaxPosition.x = 0;
- ptMaxPosition.y = 0;
-
- // RECT
- rcNormalPosition.left = 0;
- rcNormalPosition.top = 0;
- rcNormalPosition.right = 0;
- rcNormalPosition.bottom = 0;
- }
-
- #if 0
-
- class CSystemAuditEntry : public _SYSTEM_AUDIT_ACE
- {
- public:
-
- CSystemAuditEntry()
- {
- ::ZeroMemory( (_SYSTEM_AUDIT_ACE *) this, sizeof( _SYSTEM_AUDIT_ACE ) );
- }
-
- ~CSystemAuditEntry()
- {
- ::ZeroMemory( (_SYSTEM_AUDIT_ACE *) this, sizeof( _SYSTEM_AUDIT_ACE ) );
- }
- };
-
- #if defined( _WINUSER_ )
-
- class CFilterKeys : public tagFILTERKEYS
- {
- public:
-
- CFilterKeys()
- {
- ::ZeroMemory( (tagFILTERKEYS *) this, sizeof( tagFILTERKEYS ) );
- cbSize = sizeof( tagFILTERKEYS );
- }
-
- ~CFilterKeys()
- {
- ::ZeroMemory( (tagFILTERKEYS *) this, sizeof( tagFILTERKEYS ) );
- }
- };
-
- class CStickyKeys : public tagSTICKYKEYS
- {
- public:
-
- CStickyKeys()
- {
- ::ZeroMemory( (tagSTICKYKEYS *) this, sizeof( tagSTICKYKEYS ) );
- cbSize = sizeof( tagSTICKYKEYS );
- }
-
- ~CStickyKeys()
- {
- ::ZeroMemory( (tagSTICKYKEYS *) this, sizeof( tagSTICKYKEYS ) );
- }
- };
-
- class CMouseKeys : public tagMOUSEKEYS
- {
- public:
-
- CMouseKeys()
- {
- ::ZeroMemory( (tagMOUSEKEYS *) this, sizeof( tagMOUSEKEYS ) );
- cbSize = sizeof( tagMOUSEKEYS );
- }
-
- ~CMouseKeys()
- {
- ::ZeroMemory( (tagMOUSEKEYS *) this, sizeof( tagMOUSEKEYS ) );
- }
- };
-
- class CToggleKeys : public tagTOGGLEKEYS
- {
- public:
-
- CToggleKeys()
- {
- ::ZeroMemory( (tagTOGGLEKEYS *) this, sizeof( tagTOGGLEKEYS ) );
- cbSize = sizeof( tagTOGGLEKEYS );
- }
-
- ~CToggleKeys()
- {
- ::ZeroMemory( (tagTOGGLEKEYS *) this, sizeof( tagTOGGLEKEYS ) );
- }
- };
-
- class CAccessTimeout : public tagACCESSTIMEOUT
- {
- public:
-
- CAccessTimeout()
- {
- ::ZeroMemory( (tagACCESSTIMEOUT *) this, sizeof( tagACCESSTIMEOUT ) );
- cbSize = sizeof( tagACCESSTIMEOUT );
- }
-
- ~CAccessTimeout()
- {
- ::ZeroMemory( (tagACCESSTIMEOUT *) this, sizeof( tagACCESSTIMEOUT ) );
- }
- };
-
- class CSoundSentryA : public tagSOUNDSENTRYA
- {
- public:
-
- CSoundSentryA()
- {
- ::ZeroMemory( (tagSOUNDSENTRYA *) this, sizeof( tagSOUNDSENTRYA ) );
- cbSize = sizeof( tagSOUNDSENTRYA );
- }
-
- ~CSoundSentryA()
- {
- ::ZeroMemory( (tagSOUNDSENTRYA *) this, sizeof( tagSOUNDSENTRYA ) );
- }
- };
-
- class CSoundSentryW : public tagSOUNDSENTRYW
- {
- public:
-
- CSoundSentryW()
- {
- ::ZeroMemory( (tagSOUNDSENTRYW *) this, sizeof( tagSOUNDSENTRYW ) );
- cbSize = sizeof( tagSOUNDSENTRYW );
- }
-
- ~CSoundSentryW()
- {
- ::ZeroMemory( (tagSOUNDSENTRYW *) this, sizeof( tagSOUNDSENTRYW ) );
- }
- };
-
- #if defined( UNICODE )
- #define CSoundSentry CSoundSentryW
- #else
- #define CSoundSentry CSoundSentryA
- #endif // UNICODE
-
- #endif // _WINUSER_
-
- #if defined( _INC_VFW )
-
- class CCompVars : public COMPVARS
- {
- public:
-
- CCompVars()
- {
- ::ZeroMemory( (COMPVARS *) this, sizeof( COMPVARS ) );
- cbSize = sizeof( COMPVARS );
- }
-
- ~CCompVars()
- {
- ::ZeroMemory( (COMPVARS *) this, sizeof( COMPVARS ) );
- }
- };
-
- #endif // _INC_VFW
-
- #if defined( _WINGDI_ )
-
- class CDocInfoA : public _DOCINFOA
- {
- public:
-
- CDocInfoA()
- {
- ::ZeroMemory( (LPDOCINFOA) this, sizeof( DOCINFOA ) );
- cbSize = sizeof( DOCINFOA );
- }
-
- ~CDocInfoA()
- {
- ::ZeroMemory( (LPDOCINFOA) this, sizeof( DOCINFOA ) );
- }
- };
-
- class CDocInfoW : public _DOCINFOW
- {
- public:
-
- CDocInfoW()
- {
- ::ZeroMemory( (LPDOCINFOW) this, sizeof( DOCINFOW ) );
- cbSize = sizeof( DOCINFOW );
- }
-
- ~CDocInfoW()
- {
- ::ZeroMemory( (LPDOCINFOW) this, sizeof( DOCINFOW ) );
- }
- };
-
- #if defined( UNICODE )
- #define CDocInfo CDocInfoW
- #else
- #define CDocInfo CDocInfoA
- #endif // UNICODE
-
- #endif // _WINGDI_
-
- #endif // 0
-