Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
6.3 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. MOFCOMP.RC
  5. Abstract:
  6. Resource definitions
  7. History:
  8. --*/
  9. #include "strings.h"
  10. #define WBEM_E_FAILED 0x80041001
  11. #define WBEM_E_NOT_FOUND WBEM_E_FAILED + 1
  12. #define WBEM_E_ACCESS_DENIED WBEM_E_NOT_FOUND + 1
  13. #define WBEM_E_PROVIDER_FAILURE WBEM_E_ACCESS_DENIED + 1
  14. #define WBEM_E_TYPE_MISMATCH WBEM_E_PROVIDER_FAILURE + 1
  15. #define WBEM_E_OUT_OF_MEMORY WBEM_E_TYPE_MISMATCH + 1
  16. #define WBEM_E_INVALID_CONTEXT WBEM_E_OUT_OF_MEMORY + 1
  17. #define WBEM_E_INVALID_PARAMETER WBEM_E_INVALID_CONTEXT + 1
  18. #define WBEM_E_NOT_AVAILABLE WBEM_E_INVALID_PARAMETER + 1
  19. #define WBEM_E_CRITICAL_ERROR WBEM_E_NOT_AVAILABLE + 1
  20. #define WBEM_E_INVALID_STREAM WBEM_E_CRITICAL_ERROR + 1
  21. #define WBEM_E_NOT_SUPPORTED WBEM_E_INVALID_STREAM + 1
  22. #define WBEM_E_INVALID_SUPERCLASS WBEM_E_NOT_SUPPORTED + 1
  23. #define WBEM_E_INVALID_NAMESPACE WBEM_E_INVALID_SUPERCLASS + 1
  24. #define WBEM_E_INVALID_OBJECT WBEM_E_INVALID_NAMESPACE + 1
  25. #define WBEM_E_INVALID_CLASS WBEM_E_INVALID_OBJECT + 1
  26. #define WBEM_E_PROVIDER_NOT_FOUND WBEM_E_INVALID_CLASS + 1
  27. #define WBEM_E_INVALID_PROVIDER_REGISTRATION WBEM_E_PROVIDER_NOT_FOUND + 1
  28. #define WBEM_E_PROVIDER_LOAD_FAILURE WBEM_E_INVALID_PROVIDER_REGISTRATION + 1
  29. #define WBEM_E_INITIALIZATION_FAILURE WBEM_E_PROVIDER_LOAD_FAILURE + 1
  30. #define WBEM_E_TRANSPORT_FAILURE WBEM_E_INITIALIZATION_FAILURE + 1
  31. #define WBEM_E_INVALID_OPERATION WBEM_E_TRANSPORT_FAILURE + 1
  32. #define WBEM_E_INVALID_QUERY WBEM_E_INVALID_OPERATION + 1
  33. #define WBEM_E_INVALID_QUERY_TYPE WBEM_E_INVALID_QUERY + 1
  34. #define WBEM_E_ALREADY_EXISTS WBEM_E_INVALID_QUERY_TYPE + 1
  35. #define WBEM_E_OVERRIDE_NOT_ALLOWED WBEM_E_ALREADY_EXISTS + 1
  36. #define WBEM_E_PROPAGATED_QUALIFIER WBEM_E_OVERRIDE_NOT_ALLOWED + 1
  37. #define WBEM_E_PROPAGATED_PROPERTY WBEM_E_PROPAGATED_QUALIFIER + 1
  38. #define WBEM_E_UNEXPECTED WBEM_E_PROPAGATED_PROPERTY + 1
  39. #define WBEM_E_ILLEGAL_OPERATION WBEM_E_UNEXPECTED + 1
  40. #define WBEM_E_CANNOT_BE_KEY WBEM_E_ILLEGAL_OPERATION + 1
  41. #define WBEM_E_INCOMPLETE_CLASS WBEM_E_CANNOT_BE_KEY + 1
  42. #define WBEM_E_INVALID_SYNTAX WBEM_E_INCOMPLETE_CLASS + 1
  43. #define WBEM_E_NONDECORATED_OBJECT WBEM_E_INVALID_SYNTAX + 1
  44. #define WBEM_E_READ_ONLY WBEM_E_NONDECORATED_OBJECT + 1
  45. #define WBEM_E_PROVIDER_NOT_CAPABLE WBEM_E_READ_ONLY + 1
  46. #define WBEM_E_CLASS_HAS_CHILDREN WBEM_E_PROVIDER_NOT_CAPABLE + 1
  47. #define WBEM_E_CLASS_HAS_INSTANCES WBEM_E_CLASS_HAS_CHILDREN + 1
  48. #define WBEM_E_QUERY_NOT_IMPLEMENTED WBEM_E_CLASS_HAS_INSTANCES + 1
  49. #define WBEM_E_ILLEGAL_NULL WBEM_E_QUERY_NOT_IMPLEMENTED + 1
  50. #define WBEM_E_INVALID_QUALIFIER_TYPE WBEM_E_ILLEGAL_NULL + 1
  51. #define WBEM_E_INVALID_PROPERTY_TYPE WBEM_E_INVALID_QUALIFIER_TYPE + 1
  52. #define WBEM_E_VALUE_OUT_OF_RANGE WBEM_E_INVALID_PROPERTY_TYPE + 1
  53. #define WBEM_E_CANNOT_BE_SINGLETON WBEM_E_VALUE_OUT_OF_RANGE + 1
  54. #define WBEM_E_INVALID_CIM_TYPE WBEM_E_CANNOT_BE_SINGLETON + 1
  55. STRINGTABLE
  56. {
  57. USAGE1, "\nusage: mofcomp [-check] [-N:<Path>]\n"
  58. USAGE1A," [-class:updateonly|-class:createonly]\n"
  59. USAGE1B," [-instance:updateonly|-instance:createonly]\n"
  60. USAGE1C," [-B:<filename>] [-P:<Password>] [-U:<UserName>]\n"
  61. USAGE1D," [-A:<Authority>] [-WMI] [-AUTORECOVER]\n"
  62. USAGE1E," [-MOF:<path>] [-MFL:<path>] [-AMENDMENT:<Locale>]\n"
  63. USAGE1G," <MOF filename>\n\n");
  64. USAGE2, " -check Syntax check only\n"
  65. USAGE3, " -N:<path> Load into this namespace by default\n"
  66. USAGE4, " -class:updateonly Do not create new classes\n"
  67. USAGE4a," -class:safeupdate Update unless conflicts exist\n"
  68. USAGE4b," -class:forceupdate Update resolving conflicts if possible\n"
  69. USAGE5, " -class:createonly Do not change existing classes\n"
  70. USAGE6, " -instance:updateonly Do not create new instances\n"
  71. USAGE7, " -instance:createonly Do not change existing instances\n"
  72. USAGE8, " -U:<UserName> User Name\n"
  73. USAGE9, " -P:<Password> Login password\n"
  74. USAGE10," -A:<Authority> Example: NTLMDOMAIN:Domain\n"
  75. USAGE11," -B:<destination filename> Creates a binary MOF file, does not add to DB\n"
  76. USAGE12," -WMI Do Windows Driver Model (WDM) checks, requires -B switch\n"
  77. USAGE12A," -AUTORECOVER Adds MOF to list of files compiled during DB recovery\n"
  78. USAGE12B," -Amendment:<LOCALE> splits MOF into language neutral and specific versions\n"
  79. USAGE12C," where locale is of the form ""MS_4??""\n"
  80. USAGE12D," -MOF:<path> name of the language neutral output\n"
  81. USAGE12E," -MFL:<path> name of the language specific output\n"
  82. USAGE13,"\n Example c:>mofcomp -N:root\default yourmof.mof\n"
  83. WMI_ARG_ERROR, "The -WMI switch must be used with the -B switch.\n"
  84. PARSING_MSG ,"Parsing MOF file: %ls\n"
  85. FILE_NOT_FOUND, "File '%s' not found!\n"
  86. SUCCESS, "MOF file has been successfully parsed\n"
  87. DONE, "Done!\n"
  88. WMI_LAUNCH_ERROR, "Error launching wmimofck.exe, Last error = 0x%0x"
  89. CCI_ERROR, "Failed to CoCreateInstance on mofcomp object, error = 0x%0x"
  90. COMINIT_ERROR, "Failed to CoInitialize, error = 0x%0x"
  91. COMPILER_ERROR, "Compiler returned error 0x%0x"
  92. WMI_NOT_SETUP, "The -WMI switch requires installation of the Driver Development Kit."
  93. LONGVERSION, "Microsoft (R) 32-bit MOF Compiler Version %s\n"
  94. SHORTVERSION, "Microsoft (R) 32-bit MOF Compiler\n"
  95. COPYRIGHT, "Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.\n"
  96. USAGE1F," [-ER:<ResourceName>] [-L:<ResourceLocale>] \n"
  97. USAGE12F," -ER:<ResourceName> extracts binary mof from named resource\n"
  98. USAGE12G," -L:<ResourceLocale> optional specific locale number when using -ER switch\n"
  99. }
  100. #include <windows.h>
  101. #include <ntverp.h>
  102. #define VER_FILETYPE VFT_APP
  103. #define VER_FILESUBTYPE VFT2_UNKNOWN
  104. #define VER_FILEDESCRIPTION_STR "mofcomp"
  105. #define VER_INTERNALNAME_STR "mofcomp.exe"
  106. #define VER_ORIGINALFILENAME_STR "mofcomp.exe"
  107. #include "common.ver"