home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / REGUTILS.H < prev    next >
Text File  |  1997-02-28  |  5KB  |  113 lines

  1. /* @(#)Z 1.9 com/src/registry/DumpReg/RegUtils.h, odconfig, od96os2, odos29646d 96/11/15 15:49:38 (96/10/29 09:28:56) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odconfig
  6.  *
  7.  *   CLASSES: none
  8.  *
  9.  *   ORIGINS: 27
  10.  *
  11.  *
  12.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13.  *   All Rights Reserved
  14.  *   Licensed Materials - Property of IBM
  15.  *   US Government Users Restricted Rights - Use, duplication or
  16.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17.  *       
  18.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24.  *   OR PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26. /*====END_GENERATED_PROLOG========================================
  27.  */
  28.  
  29.  
  30. // default common messages for registry utilities
  31. // ----------------------------------------------
  32. #define MSGCAT_NOTOPEN "Could not open message catalog ODRegUtl.cat.\n"
  33. #define MISSING_ARG "%s: Missing argument.\n\n"
  34. #define PART_HANDLER_LIST "The Part Handler list is %s\n\n"
  35. #define UPDATE_MADE "%s: Update made to the Part Registry will be\n\
  36.    in effect for new OpenDoc sessions only. Existing\n\
  37.    OpenDoc session will not contain the update made to\n\
  38.    the Part Registry.\n"
  39. #define REG_CHKS "%s: Please check for the following problems:\n\
  40.    1) You must register your part with SOM by running sc on your idl file.\n\
  41.    2) Your SOMIR environment variable must contain the Interface Repository you registered with.\n\
  42.       (i.e. opendoc.ir) \n\
  43.    3) Your part\'s dll directory must be in the search path defined in the appropriate environment variable.\n\
  44.       (PATH or LIBPATH) \n\
  45.    4) Names are case sensitive! and must be the class name for register and \n\
  46.       deregister utilities. \n\n\
  47. Please check these items and run again. \n"
  48.  
  49.  
  50. char *err[] = {  "SUCCESSFUL",
  51.                  "INVALID_CLASSNAME",
  52.                  "COULD_NOT_LOAD_CLASS",
  53.                  "NOT_A_PART_HANDLER_CLASS",
  54.                  "PART_HANDLER_INFO_REPLACED_SUCCESSFULLY",
  55.                  "PART_HANDLER_WAS_NOT_FOUND", 
  56.                  "PART_KIND_WAS_NOT_FOUND",
  57.                  "YOUR_BUFFER_TOO_SMALL"
  58.              };
  59.  
  60.  
  61. // default odRegPart messages
  62. // --------------------------
  63. #define REGPART_USAGE "Usage: odRegPrt <partname>\n\
  64.    where <partname> is the (Case Sensitive) class name of the new part handler\n"
  65. #define REGPART_PART_NAME "Part name = %s\n"
  66. #define REGPART_ERR "%s: %s returned when attempted to install\n\
  67.    the part handler.\n"
  68.  
  69. // default odDeRegPt messages
  70. // --------------------------
  71. #define DEREGPART_USAGE "Usage: odDeRgPt <partname>\n\
  72.    where <partname> is the (Case Sensitive) class name of the registered\n\
  73.                     part handler\n"
  74. #define DEREGPART_ERR "%s: %s returned when attempted to remove\n\
  75.    a registered part handler.\n"
  76.  
  77. // default odDumpRg messages
  78. // -------------------------
  79.  
  80. #define DUMPREG_USAGE "\n\
  81. Usage:\n\ 
  82.        odDumpRg                     - Returns lists of info from registry file\n\
  83.  -or-  odDumpRg 1 \"yourPartKind\"    - Given a partKind, returns a partHandler\n\
  84.  -or-  odDumpRg 2 \"yourPartHandler\" - Given a partHandler, returns partHandler\n\
  85.                                         info\n\
  86.  -or-  odDumpRg 3 \"yourPartHandler\" \"yourPartKind\" \n\
  87.                   - Given a partHandler, returns partHandler info\n"
  88.  
  89.  
  90. #define DUMPREG_PART_KIND_LIST "The Part Kind list is %s\n\n"
  91. #define DUMPREG_PART_LIST "The Part Handler list for %s is %s\n"
  92. #define DUMPREG_PERF_PART_LIST "The Preferred Part Handler for %s is %s\n\n"
  93. #define DUMPREG_PART_HANDLE_INFO "The Part Handler Info for %s is: \n"
  94. #define DUMPREG_PART_HANDLE_NAME "PartHandlerName %s\n"
  95. #define DUMPREG_PART_CLASS_NAME "PartHandlerClassName %s\n"
  96. #define DUMPREG_PART_HANDLE_DISPLAY_NAME "PartHandlerDisplayName %s\n"
  97. #define DUMPREG_OLE_CLASS_ID "ole2ClassID %s\n"
  98. #define DUMPREG_PART_KIND_INFO "The Part Kind Info for %s is: \n"
  99. #define DUMPREG_PART_KIND_NAME "PartKindName %s\n"
  100. #define DUMPREG_PART_KIND_DISPLAY_NAME "PartKindDisplayName %s\n"
  101. #define DUMPREG_PART_KIND_TYPE_NAME "PartKindTypeName %s\n"
  102. #define DUMPREG_PART_KIND_CATEGORY "PartKindCategories %s\n\n"
  103. #define DUMPREG_PART_KIND_DisplayName "PartKindDisplayName %s\n\n"
  104. #define DUMPREG_PART_Handler_DisplayName "PartHandlerDisplayName %s\n\n"
  105. #define DUMPREG_ERR1 "%s: %s returned when attempted to retrieve\n\
  106.    data from the Part Registry.\n\n"
  107. #define DUMPREG_ERR2 "%s: Not able to get the Part Handler list for\n\
  108.    %s\n\n"
  109.  
  110.  
  111.  
  112.  
  113.