home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / custom.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  66 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. // The main file used to provide customization (locking) of preferences to
  19. // OEM partners and/or MIS directors for the Enterprise market....
  20. //#define WFE_FILE 1
  21.  
  22. #include "stdafx.h"
  23.  
  24. #include "custom.h"
  25. #include "resource.h"
  26. #include "mainfrm.h"
  27. #include "xp.h"
  28. #include "sechash.h"
  29. #include "prefapi.h"
  30.  
  31. BOOL CUST_IsCustomAnimation(int * iFrames)
  32. {
  33.     char *pFile;
  34.     BOOL bRet = FALSE;
  35.  
  36.     // set iFrames to default
  37.  
  38.     PREF_CopyConfigString("toolbar.logo.win_small_file",&pFile);
  39.     if (pFile) {
  40.         if (*pFile) bRet = TRUE;
  41.         XP_FREE(pFile);
  42.         pFile = NULL;
  43.     }
  44.     PREF_CopyConfigString("toolbar.logo.win_large_file",&pFile);
  45.     if (pFile) {
  46.         if (*pFile) bRet = TRUE;
  47.         XP_FREE(pFile);
  48.         pFile = NULL;
  49.     }
  50.     if (bRet) {
  51.         int32 iTmp;
  52.         PREF_GetConfigInt("toolbar.logo.frames",&iTmp);
  53.         if (iTmp > 0 && iTmp <1000) // pure arbitrary bounds check
  54.             if (iFrames) *iFrames = iTmp;
  55.     }
  56.     return bRet;
  57. }
  58.  
  59. void CUST_LoadCustomPaletteEntries() 
  60. {
  61.     int idx;
  62.     char * entry;
  63.     char szBuf[24];
  64.     int red = 0,green = 0,blue = 0;
  65. }
  66.