/**************************************************************************************** * NAME: TimeOfDay.cpp * * OVERVIEW * * APIs for getting the Time of Day constraint * * Copyright (C) Microsoft Corporation, 1998 - 1999 . All Rights Reserved. * * History: * 2/14/98 Created by Byao * *****************************************************************************************/ #include "precompiled.h" // // declarations for IAS mapping APIs // #include "textmap.h" // // declaration for the API #include "TimeOfDay.h" #include "iasdebug.h" static BYTE bitSetting[8] = { 0x80, 0x40, 0x20, 0x10, 0x8, 0x4, 0x2, 0x1}; //+--------------------------------------------------------------------------- // // Function: ReverseHourMap // // Synopsis: reverse each byte in the hour map // // we have to do this because LogonUI changes the way HourMap is stored(they // reversed all the bit. We need to do this so our conversion code can leave // intact. // // Arguments: [in] BYTE* map - hour map // [in] INT nByte - how many bytes are in this hour map // // History: byao 4/10/98 10:33:57 PM // //+--------------------------------------------------------------------------- void ReverseHourMap(BYTE *map, int nByte) { int i, j; BYTE temp; for (i=0; i