home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libreg / include / VerReg.h < prev   
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  68 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. /* VerReg.h
  19.  * XP Version Registry functions (prototype)
  20.  */
  21. #ifndef _VERREG_H_
  22. #define _VERREG_H_
  23.  
  24. #include "NSReg.h"
  25.  
  26. typedef struct _version
  27. {
  28.    int32   major;
  29.    int32   minor;
  30.    int32   release;
  31.    int32   build;
  32.    int32   check;
  33. } VERSION;
  34.  
  35.  
  36. /* CreateRegistry flags */
  37. #define CR_NEWREGISTRY 1
  38.  
  39. XP_BEGIN_PROTOS
  40. /* ---------------------------------------------------------------------
  41.  * Version Registry Operations
  42.  * ---------------------------------------------------------------------
  43.  */
  44. VR_INTERFACE(REGERR) VR_Close(void);
  45. VR_INTERFACE(REGERR) VR_PackRegistry(void);
  46. VR_INTERFACE(REGERR) VR_CreateRegistry(char *installation, char *programPath, char *versionStr);
  47. VR_INTERFACE(REGERR) VR_GetVersion(char *component_path, VERSION *result);
  48. VR_INTERFACE(REGERR) VR_GetPath(char *component_path, uint32 sizebuf, char *buf);
  49. VR_INTERFACE(REGERR) VR_GetDefaultDirectory(char *component_path, uint32 sizebuf, char *buf);
  50. VR_INTERFACE(REGERR) VR_SetDefaultDirectory(char *component_path, char *directory);
  51. VR_INTERFACE(REGERR) VR_Install(char *component_path, char *filepath, char *version, int bDirectory);
  52. VR_INTERFACE(REGERR) VR_Remove(char *component_path);
  53. VR_INTERFACE(REGERR) VR_InRegistry(char *path);
  54. VR_INTERFACE(REGERR) VR_ValidateComponent(char *path);
  55. VR_INTERFACE(REGERR) VR_Enum(REGENUM *state, char *buffer, uint32 buflen);
  56.  
  57.  
  58. #ifndef STANDALONE_REGISTRY
  59. VR_INTERFACE(void) VR_Initialize(void* env);
  60. #endif
  61.  
  62. XP_END_PROTOS
  63.  
  64. #endif   /* _VERREG_H_ */
  65.  
  66. /* EOF: VerReg.h */
  67.  
  68.