home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sysmgmt / sms / vbsmsapi / common / smsinfo.bas < prev    next >
Encoding:
BASIC Source File  |  1996-10-15  |  10.9 KB  |  342 lines

  1. Option Explicit
  2. '// **************************************************************************
  3. '//
  4. '//  File: SMSINFO.H
  5. '//
  6. '//  Copyright (c) 1995 Microsoft Corp.
  7. '//
  8. '//  This is an auxiliary header file for the SMS API.
  9. '//  It contains manifests used in scalars and filters.
  10. '//
  11. '//  GFF@SEA          17-Mar-95   VBified.
  12. '//
  13. '// **************************************************************************
  14. '
  15. '#ifndef _SMSINFO_H_
  16. '#define _SMSINFO_H_
  17. '
  18. '
  19. '// ==========================================================================
  20. '//
  21. '//  Package folders.
  22. '//
  23. '// ==========================================================================
  24. '
  25. '//
  26. '//  These defines are used in Share and Workstation permissions scalars.
  27. '//  These scalars must be a combination of any (or none) of these defines.
  28. '//
  29.  Global Const PACKAGE_USER_READ = &H1&
  30.  Global Const PACKAGE_USER_WRITE = &H2&
  31.  Global Const PACKAGE_GUEST_READ = &H4&
  32.  Global Const PACKAGE_GUEST_WRITE = &H8&
  33. '
  34. '
  35. '//
  36. '//  Values for scalar: 'Platforms'
  37. '//  ----------------------------------------------
  38. '// Both the Workstation Command Line folder and the Program Item folders
  39. '// have a 'Platforms' scalar. The values are identical.
  40. '// NOTE: This list may be periodically updated by Microsoft when new
  41. '// versions of SMS are released.
  42. '//
  43.  Global Const PLTFRM_WIN16 = &H1&
  44.  Global Const PLTFRM_WIN32_X86 = &H2&
  45.  Global Const PLTFRM_WIN32_MIPS = &H4&
  46.  Global Const PLTFRM_WIN32_ALPHA = &H8&
  47.  Global Const PLTFRM_DOS5 = &H10&
  48.  Global Const PLTFRM_DOS6 = &H20&
  49.  Global Const PLTFRM_MACINTOSH = &H40&
  50.  Global Const PLTFRM_WIN95 = &H80&
  51.  Global Const PLTFRM_MSDOS = PLTFRM_DOS5 + PLTFRM_DOS6
  52. '
  53. '
  54. '// ========================================================================
  55. '// This is a list of the platforms that are supported for PDF files
  56. '// in SMS 1.2. This list is for reference.
  57. '//      "Macintosh"
  58. '//      "MS-DOS 5.0"
  59. '//      "MS-DOS 6.0"
  60. '//      "MS-DOS 6.2"
  61. '//      "MS-DOS 6.21"
  62. '//      "MS-DOS 6.22"
  63. '//      "Windows 3.1"
  64. '//      "Windows NT 3.1 (Alpha)"
  65. '//      "Windows NT 3.1 (MIPS)"
  66. '//      "Windows NT 3.1 (x86)"
  67. '//      "Windows NT 3.5 (Alpha)"
  68. '//      "Windows NT 3.5 (MIPS)"
  69. '//      "Windows NT 3.5 (x86)"
  70. '//      "Windows NT 3.51 (Alpha)"
  71. '//      "Windows NT 3.51 (MIPS)"
  72. '//      "Windows NT 3.51 (x86)"
  73. '//      "Windows NT 4.0 (Alpha)"
  74. '//      "Windows NT 4.0 (MIPS)"
  75. '//      "Windows NT 4.0 (x86)"
  76. '//      "Windows95"
  77. '// ========================================================================
  78. '
  79. '
  80. '
  81. '
  82. '// ==========================================================================
  83. '//
  84. '//  Program Item folders.
  85. '//
  86. '// ==========================================================================
  87. '
  88. '//
  89. '//  Values for scalar: 'Drive mode'.
  90. '//  ----------------------------------------------
  91. '// This scalar corresponds directly to the 'Drive Mode' group of radio
  92. '// buttons in the 'Program Item Properties' dialogue (share package
  93. '// job only). One of these must be selected.
  94. '//
  95.  Global Const PI_DRIVEMODE_UNC = 1
  96.  Global Const PI_DRIVEMODE_ANY_LETTER = 2
  97.  Global Const PI_DRIVEMODE_SPECIFIC_LETTER = 3
  98. '
  99. '
  100. '
  101. '// ==========================================================================
  102. '//
  103. '//  Workstation Command Line (WCL) Job folder.
  104. '//  ------------------------------------------
  105. '//
  106. '// ==========================================================================
  107. '
  108. '
  109. '//
  110. '//  Scalar: Flags
  111. '//  ----------------------------------------------
  112. '// This scalar covers the 'Automated Command Line' and
  113. '// 'System (Background) Task' check boxes in the Command Line
  114. '// Properties dialogue.
  115. '// Note that setting the flags to BACKGROUND_TASK also sets the
  116. '// AUTOMATED_COMMAND_LINE bit.
  117. '//
  118.  Global Const WCL_AUTOMATED_COMMAND_LINE = &H1
  119.  Global Const WCL_BACKGROUND_TASK = &H3
  120. '
  121. '
  122. '
  123. '// ==========================================================================
  124. '//
  125. '//  Job folders.
  126. '//
  127. '//  General values that are common to all types of job folders
  128. '//  ----------------------------------------------------------
  129. '//
  130. '// ==========================================================================
  131. '
  132. '
  133. '// ==========================================================================
  134. '//
  135. '//      Job types as strings.
  136. '//
  137. '// ==========================================================================
  138. '
  139.  Global Const STR_JOBTYPE_INSTALL = "Install"
  140.  Global Const STR_JOBTYPE_SERVER = "Server"
  141.  Global Const STR_JOBTYPE_RMPKG = "Remove package"
  142.  Global Const STR_JOBTYPE_SYSTEM = "System"
  143.  Global Const STR_JOBTYPE_MINIJOB = "Minijob"
  144. '
  145. '
  146. '// ==========================================================================
  147. '//
  148. '//      Job stati as strings.
  149. '//
  150. '// ==========================================================================
  151. '
  152.  Global Const STR_JOB_PENDING = "Pending"
  153.  Global Const STR_JOB_ACTIVE = "Active"
  154.  Global Const STR_JOB_CANCELLED = "Cancelled"
  155.  Global Const STR_JOB_COMPLETE = "Complete"
  156.  Global Const STR_JOB_FAILED = "Failed"
  157.  Global Const STR_JOB_ACTIVE_FAILED = "Active failed"
  158.  Global Const STR_JOB_ACTIVE_UNKNOWN = "Unknown"
  159. '
  160. '
  161. '//
  162. '//  Values for scalar: 'Limit to sites'
  163. '//  ----------------------------------------------
  164. '// This can be either JOBTGT_SITE or JOBTGT_SITEGROUP. If either of
  165. '// these are set then the scalar 'Include subsites' can be set.
  166. '// If neither site nor sitegroup limiting is required then this scalar
  167. '// should be set to JOBTGT_NOSITELIMIT (default).
  168. '//
  169.  Global Const JOBTGT_NOSITELIMIT = 0
  170.  Global Const JOBTGT_SITEGROUP = 1
  171.  Global Const JOBTGT_SITE = 2
  172. '
  173. '
  174. '//
  175. '//  Values for scalar: 'Include subsites'
  176. '//  ----------------------------------------------
  177. '// This can be set to either 1 or 0. If the 'Limit to sites'
  178. '// scalar is not set then this scalar will be ignored.
  179. '//
  180.  Global Const JOBTGT_NOSUBSITES = 0
  181.  Global Const JOBTGT_INCLUDESUBSITES = 1
  182. '
  183. '
  184. '//
  185. '//  Values for scalar: 'Job status'
  186. '//  ----------------------------------------------
  187. '// This scalar corresponds to the 'Overall Status' display in
  188. '// in the 'Job Status' dialogue. It is a read-only scalar, the values
  189. '// are presented here for clarity.
  190. '//
  191.  Global Const JOBSTAT_PENDING = 1
  192.  Global Const JOBSTAT_ACTIVE = 2
  193.  Global Const JOBSTAT_CANCELLED = 3
  194.  Global Const JOBSTAT_COMPLETE = 4
  195.  Global Const JOBSTAT_FAILED = 5
  196.  Global Const JOBSTAT_RETRYING = 6
  197. '
  198. '
  199. '//
  200. '//  Values for scalar: 'Priority'
  201. '//  ----------------------------------------------
  202. '// This scalar corresponds to the 'Priority' edit control in the
  203. '// 'Job Schedule' dialogue box.
  204. '//
  205.  Global Const JOBPRI_HIGH = 1
  206.  Global Const JOBPRI_MEDIUM = 2
  207.  Global Const JOBPRI_LOW = 3
  208. '
  209. '//
  210. '//  Values for scalar: 'Repeat mode'
  211. '//  ----------------------------------------------
  212. '// This scalar corresponds to the 'Repeat' edit control in the
  213. '// 'Job Schedule' dialogue box.
  214. '//
  215.  Global Const JOBRPT_NEVER = 1
  216.  Global Const JOBRPT_DAILY = 2
  217.  Global Const JOBRPT_WEEKLY = 3
  218.  Global Const JOBRPT_BIWEEKLY = 4
  219.  Global Const JOBRPT_MONTHLY = 5
  220. '
  221. '
  222. '//
  223. '//  Values for scalar: 'Cancel mode'
  224. '//  ----------------------------------------------
  225. '// This scalar has no direct equivalent in any dialogue box. It corresponds
  226. '// instead to the 'Cancel Job' menu selection in the Edit menu when the
  227. '// focus is on the Jobs window.
  228. '//
  229.  Global Const JOBCANCEL_DONT_CANCEL = 0
  230.  Global Const JOBCANCEL_CANCEL = 1
  231. '
  232. '// ==========================================================================
  233. '//
  234. '//  Job folders: Remove package job.
  235. '//  --------------------------------
  236. '//
  237. '// ==========================================================================
  238. '
  239. '//
  240. '//  Scalar: Package type
  241. '//  ----------------------------------------------
  242. '//  This scalar is either workstation, server, or both as below.
  243. '//
  244.  Global Const RMPKGJOB_PKGTYPE_WKSTA = &H1                               '*/
  245.  Global Const RMPKGJOB_PKGTYPE_SERVER = &H2                              '*/
  246.  Global Const RMPKGJOB_PKGTYPE_BOTH = RMPKGJOB_PKGTYPE_WKSTA + RMPKGJOB_PKGTYPE_SERVER '*/
  247. '
  248. '//
  249. '//  Scalar: Job tasks
  250. '//  ----------------------------------------------
  251. '//
  252.  Global Const RMPKGJOB_TASKS_RM_ALL = 1
  253.  Global Const RMPKGJOB_TASKS_RM_SELECTED = 2
  254. '
  255. '//  Setting 'Job tasks' to TASKS_RM_SELECTED means that the user
  256. '//  must set the 'Site group' scalar to a valid name.
  257. '
  258. '
  259. '//  Setting the 'Job target' scalar to TGT_SITEGROUP means that the user
  260. '//  must provide, in the 'Site limit name' scalar, a name of a machine group.
  261. '//  The TGT_INCLUDESUBSITES flag is only valid if TGT_SITEGROUP has also
  262. '//  been specified.
  263. '
  264. '
  265. '
  266. '// ==========================================================================
  267. '//
  268. '//  Job folders: Run command on workstation job.
  269. '//  --------------------------------------------
  270. '//
  271. '// ==========================================================================
  272. '
  273. '//
  274. '//  Scalar: Job target
  275. '//  ----------------------------------------------
  276. '// Select from one of the following values. These correspond directly
  277. '// to the radio buttons in the 'Job Target' group in the Job Details
  278. '// dialogue for a run command on workstation job.
  279. '//
  280.  Global Const WKSTAJOB_TGT_QUERY = 1
  281.  Global Const WKSTAJOB_TGT_MACHGROUP = 2
  282.  Global Const WKSTAJOB_TGT_MACHPATH = 3
  283. '
  284. '//
  285. '//  Scalar: Distribute phase
  286. '//  ----------------------------------------------
  287. '// This scalar corresponds to the 'Distribute Phase' group.
  288. '// The value can be either, both, or neither of the following values,
  289. '// ie 0, 1, 2, or 3.
  290. '//
  291.  Global Const WKSTAJOB_DIST_EXISTING = &H1
  292.  Global Const WKSTAJOB_DIST_SPECIFIED = &H2
  293. '
  294. '//
  295. '//  Scalar: Send phase
  296. '//  ----------------------------------------------
  297. '// These values correspond to the 'Only if not previously sent' and
  298. '// 'Even if previously sent' radio buttons in the SMS Admin for the
  299. '// send phase group for a Run Command on Workstation job.
  300. '//
  301.  Global Const WKSTAJOB_SEND_IF_NOT_SENT = 1
  302.  Global Const WKSTAJOB_SEND_ALWAYS = 2
  303. '
  304. '
  305. '
  306. '// ==========================================================================
  307. '//
  308. '//  Job folders: Share package job.
  309. '//  -------------------------------
  310. '//
  311. '// ==========================================================================
  312. '
  313. '
  314. '//
  315. '//  Scalar: Send phase
  316. '//  ----------------------------------------------
  317. '// These values correspond to the 'Only if not previously sent' and
  318. '// 'Even if previously sent' radio buttons in the SMS Admin for the
  319. '// send phase group for a Share package job.
  320. '//
  321.  Global Const SHAREJOB_SEND_IF_NOT_SENT = 1
  322.  Global Const SHAREJOB_SEND_ALWAYS = 2
  323. '
  324. '
  325. '//
  326. '//  Scalar: Distribute phase
  327. '//  ----------------------------------------------
  328. '// This scalar corresponds to the 'Distribute Phase' group.
  329. '// The value can be either, both, or neither of the following values,
  330. '// ie 0, 1, 2, or 3.
  331. '//
  332.  Global Const SHAREJOB_DIST_EXISTING = &H1
  333.  Global Const SHAREJOB_DIST_SPECIFIED = &H2
  334. '
  335. '
  336. '
  337. '
  338. '
  339. '#endif  // _SMSINFO_H_
  340. '
  341. '/* EOF: smsinfo.h */
  342.