/binding/win32/ntstatus.d

http://github.com/wilkie/djehuty · D · 16268 lines · 1740 code · 1804 blank · 12724 comment · 0 complexity · 278696f0d8e6f7ad8dfe8c89eee19816 MD5 · raw file

Large files are truncated click here to view the full file

  1. /*
  2. * ntstatus.d
  3. *
  4. * This is a binding of ntstatus.h to D. The original notices are preserved
  5. * below.
  6. *
  7. * Author: Dave Wilkinson
  8. * Originated: November 24th 2009
  9. *
  10. */
  11. module binding.win32.ntstatus;
  12. import binding.win32.windef;
  13. import binding.win32.winnt;
  14. typedef LONG NTSTATUS;
  15. /*++ BUILD Version: 0005 // Increment this if a change has global effects
  16. Copyright (c) Microsoft Corporation. All rights reserved.
  17. Module Name:
  18. ntstatus.h
  19. Abstract:
  20. Constant definitions for the NTSTATUS values.
  21. Author:
  22. Portable Systems Group 30-Mar-1989
  23. Revision History:
  24. Notes:
  25. This file is generated by the MC tool from the ntstatus.mc file.
  26. Please add new error values to the end of the file. To do otherwise
  27. will jumble the error values.
  28. --*/
  29. // begin_ntsecapi
  30. /*lint -save -e767 */ // Don't complain about different definitions // winnt
  31. /////////////////////////////////////////////////////////////////////////
  32. //
  33. // Please update FACILITY_MAXIMUM_VALUE when adding new facility values.
  34. //
  35. //
  36. /////////////////////////////////////////////////////////////////////////
  37. /////////////////////////////////////////////////////////////////////////
  38. //
  39. // Standard Success values
  40. //
  41. //
  42. /////////////////////////////////////////////////////////////////////////
  43. //
  44. // The success status codes 0 - 63 are reserved for wait completion status.
  45. // FacilityCodes 0x5 - 0xF have been allocated by various drivers.
  46. //
  47. const auto STATUS_SUCCESS = (cast(NTSTATUS)0x00000000L) ; // ntsubauth
  48. //
  49. // Values are 32 bit values laid out as follows:
  50. //
  51. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  52. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  53. // +---+-+-+-----------------------+-------------------------------+
  54. // |Sev|C|R| Facility | Code |
  55. // +---+-+-+-----------------------+-------------------------------+
  56. //
  57. // where
  58. //
  59. // Sev - is the severity code
  60. //
  61. // 00 - Success
  62. // 01 - Informational
  63. // 10 - Warning
  64. // 11 - Error
  65. //
  66. // C - is the Customer code flag
  67. //
  68. // R - is a reserved bit
  69. //
  70. // Facility - is the facility code
  71. //
  72. // Code - is the facility's status code
  73. //
  74. //
  75. // Define the facility codes
  76. //
  77. const auto FACILITY_VIDEO = 0x1B;
  78. const auto FACILITY_USB_ERROR_CODE = 0x10;
  79. const auto FACILITY_TRANSACTION = 0x19;
  80. const auto FACILITY_TERMINAL_SERVER = 0xA;
  81. const auto FACILITY_SXS_ERROR_CODE = 0x15;
  82. const auto FACILITY_NTSSPI = 0x9;
  83. const auto FACILITY_RPC_STUBS = 0x3;
  84. const auto FACILITY_RPC_RUNTIME = 0x2;
  85. const auto FACILITY_NTWIN32 = 0x7;
  86. const auto FACILITY_NDIS_ERROR_CODE = 0x23;
  87. const auto FACILTIY_MUI_ERROR_CODE = 0xB;
  88. const auto FACILITY_MONITOR = 0x1D;
  89. const auto FACILITY_MAXIMUM_VALUE = 0x37;
  90. const auto FACILITY_IPSEC = 0x36;
  91. const auto FACILITY_IO_ERROR_CODE = 0x4;
  92. const auto FACILITY_HYPERVISOR = 0x35;
  93. const auto FACILITY_HID_ERROR_CODE = 0x11;
  94. const auto FACILITY_GRAPHICS_KERNEL = 0x1E;
  95. const auto FACILITY_FWP_ERROR_CODE = 0x22;
  96. const auto FACILITY_FVE_ERROR_CODE = 0x21;
  97. const auto FACILITY_FIREWIRE_ERROR_CODE = 0x12;
  98. const auto FACILITY_FILTER_MANAGER = 0x1C;
  99. const auto FACILITY_DRIVER_FRAMEWORK = 0x20;
  100. const auto FACILITY_DEBUGGER = 0x1;
  101. const auto FACILITY_COMMONLOG = 0x1A;
  102. const auto FACILITY_CLUSTER_ERROR_CODE = 0x13;
  103. const auto FACILITY_ACPI_ERROR_CODE = 0x14;
  104. //
  105. // Define the severity codes
  106. //
  107. const auto STATUS_SEVERITY_WARNING = 0x2;
  108. const auto STATUS_SEVERITY_SUCCESS = 0x0;
  109. const auto STATUS_SEVERITY_INFORMATIONAL = 0x1;
  110. const auto STATUS_SEVERITY_ERROR = 0x3;
  111. //
  112. // MessageId: STATUS_WAIT_0
  113. //
  114. // MessageText:
  115. //
  116. // STATUS_WAIT_0
  117. //
  118. //const auto STATUS_WAIT_0 = (cast(NTSTATUS)0x00000000L) ; // winnt
  119. //
  120. // MessageId: STATUS_WAIT_1
  121. //
  122. // MessageText:
  123. //
  124. // STATUS_WAIT_1
  125. //
  126. const auto STATUS_WAIT_1 = (cast(NTSTATUS)0x00000001L);
  127. //
  128. // MessageId: STATUS_WAIT_2
  129. //
  130. // MessageText:
  131. //
  132. // STATUS_WAIT_2
  133. //
  134. const auto STATUS_WAIT_2 = (cast(NTSTATUS)0x00000002L);
  135. //
  136. // MessageId: STATUS_WAIT_3
  137. //
  138. // MessageText:
  139. //
  140. // STATUS_WAIT_3
  141. //
  142. const auto STATUS_WAIT_3 = (cast(NTSTATUS)0x00000003L);
  143. //
  144. // MessageId: STATUS_WAIT_63
  145. //
  146. // MessageText:
  147. //
  148. // STATUS_WAIT_63
  149. //
  150. const auto STATUS_WAIT_63 = (cast(NTSTATUS)0x0000003FL);
  151. //
  152. // The success status codes 128 - 191 are reserved for wait completion
  153. // status with an abandoned mutant object.
  154. //
  155. const auto STATUS_ABANDONED = (cast(NTSTATUS)0x00000080L);
  156. //
  157. // MessageId: STATUS_ABANDONED_WAIT_0
  158. //
  159. // MessageText:
  160. //
  161. // STATUS_ABANDONED_WAIT_0
  162. //
  163. //const auto STATUS_ABANDONED_WAIT_0 = (cast(NTSTATUS)0x00000080L) ; // winnt
  164. //
  165. // MessageId: STATUS_ABANDONED_WAIT_63
  166. //
  167. // MessageText:
  168. //
  169. // STATUS_ABANDONED_WAIT_63
  170. //
  171. const auto STATUS_ABANDONED_WAIT_63 = (cast(NTSTATUS)0x000000BFL);
  172. //
  173. // The success status codes 256, 257, 258, and 258 are reserved for
  174. // User APC, Kernel APC, Alerted, and Timeout.
  175. //
  176. //
  177. // MessageId: STATUS_USER_APC
  178. //
  179. // MessageText:
  180. //
  181. // STATUS_USER_APC
  182. //
  183. //const auto STATUS_USER_APC = (cast(NTSTATUS)0x000000C0L) ; // winnt
  184. //
  185. // MessageId: STATUS_KERNEL_APC
  186. //
  187. // MessageText:
  188. //
  189. // STATUS_KERNEL_APC
  190. //
  191. const auto STATUS_KERNEL_APC = (cast(NTSTATUS)0x00000100L);
  192. //
  193. // MessageId: STATUS_ALERTED
  194. //
  195. // MessageText:
  196. //
  197. // STATUS_ALERTED
  198. //
  199. const auto STATUS_ALERTED = (cast(NTSTATUS)0x00000101L);
  200. //
  201. // MessageId: STATUS_TIMEOUT
  202. //
  203. // MessageText:
  204. //
  205. // STATUS_TIMEOUT
  206. //
  207. const auto STATUS_TIMEOUT = (cast(NTSTATUS)0x00000102L) ; // winnt
  208. //
  209. // MessageId: STATUS_PENDING
  210. //
  211. // MessageText:
  212. //
  213. // The operation that was requested is pending completion.
  214. //
  215. //const auto STATUS_PENDING = (cast(NTSTATUS)0x00000103L) ; // winnt
  216. //
  217. // MessageId: STATUS_REPARSE
  218. //
  219. // MessageText:
  220. //
  221. // A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
  222. //
  223. const auto STATUS_REPARSE = (cast(NTSTATUS)0x00000104L);
  224. //
  225. // MessageId: STATUS_MORE_ENTRIES
  226. //
  227. // MessageText:
  228. //
  229. // Returned by enumeration APIs to indicate more information is available to successive calls.
  230. //
  231. const auto STATUS_MORE_ENTRIES = (cast(NTSTATUS)0x00000105L);
  232. //
  233. // MessageId: STATUS_NOT_ALL_ASSIGNED
  234. //
  235. // MessageText:
  236. //
  237. // Indicates not all privileges or groups referenced are assigned to the caller.
  238. // This allows, for example, all privileges to be disabled without having to know exactly which privileges are assigned.
  239. //
  240. const auto STATUS_NOT_ALL_ASSIGNED = (cast(NTSTATUS)0x00000106L);
  241. //
  242. // MessageId: STATUS_SOME_NOT_MAPPED
  243. //
  244. // MessageText:
  245. //
  246. // Some of the information to be translated has not been translated.
  247. //
  248. const auto STATUS_SOME_NOT_MAPPED = (cast(NTSTATUS)0x00000107L);
  249. //
  250. // MessageId: STATUS_OPLOCK_BREAK_IN_PROGRESS
  251. //
  252. // MessageText:
  253. //
  254. // An open/create operation completed while an oplock break is underway.
  255. //
  256. const auto STATUS_OPLOCK_BREAK_IN_PROGRESS = (cast(NTSTATUS)0x00000108L);
  257. //
  258. // MessageId: STATUS_VOLUME_MOUNTED
  259. //
  260. // MessageText:
  261. //
  262. // A new volume has been mounted by a file system.
  263. //
  264. const auto STATUS_VOLUME_MOUNTED = (cast(NTSTATUS)0x00000109L);
  265. //
  266. // MessageId: STATUS_RXACT_COMMITTED
  267. //
  268. // MessageText:
  269. //
  270. // This success level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted.
  271. // The commit has now been completed.
  272. //
  273. const auto STATUS_RXACT_COMMITTED = (cast(NTSTATUS)0x0000010AL);
  274. //
  275. // MessageId: STATUS_NOTIFY_CLEANUP
  276. //
  277. // MessageText:
  278. //
  279. // This indicates that a notify change request has been completed due to closing the handle which made the notify change request.
  280. //
  281. const auto STATUS_NOTIFY_CLEANUP = (cast(NTSTATUS)0x0000010BL);
  282. //
  283. // MessageId: STATUS_NOTIFY_ENUM_DIR
  284. //
  285. // MessageText:
  286. //
  287. // This indicates that a notify change request is being completed and that the information is not being returned in the caller's buffer.
  288. // The caller now needs to enumerate the files to find the changes.
  289. //
  290. const auto STATUS_NOTIFY_ENUM_DIR = (cast(NTSTATUS)0x0000010CL);
  291. //
  292. // MessageId: STATUS_NO_QUOTAS_FOR_ACCOUNT
  293. //
  294. // MessageText:
  295. //
  296. // {No Quotas}
  297. // No system quota limits are specifically set for this account.
  298. //
  299. const auto STATUS_NO_QUOTAS_FOR_ACCOUNT = (cast(NTSTATUS)0x0000010DL);
  300. //
  301. // MessageId: STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED
  302. //
  303. // MessageText:
  304. //
  305. // {Connect Failure on Primary Transport}
  306. // An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed.
  307. // The computer WAS able to connect on a secondary transport.
  308. //
  309. const auto STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED = (cast(NTSTATUS)0x0000010EL);
  310. //
  311. // MessageId: STATUS_PAGE_FAULT_TRANSITION
  312. //
  313. // MessageText:
  314. //
  315. // Page fault was a transition fault.
  316. //
  317. const auto STATUS_PAGE_FAULT_TRANSITION = (cast(NTSTATUS)0x00000110L);
  318. //
  319. // MessageId: STATUS_PAGE_FAULT_DEMAND_ZERO
  320. //
  321. // MessageText:
  322. //
  323. // Page fault was a demand zero fault.
  324. //
  325. const auto STATUS_PAGE_FAULT_DEMAND_ZERO = (cast(NTSTATUS)0x00000111L);
  326. //
  327. // MessageId: STATUS_PAGE_FAULT_COPY_ON_WRITE
  328. //
  329. // MessageText:
  330. //
  331. // Page fault was a demand zero fault.
  332. //
  333. const auto STATUS_PAGE_FAULT_COPY_ON_WRITE = (cast(NTSTATUS)0x00000112L);
  334. //
  335. // MessageId: STATUS_PAGE_FAULT_GUARD_PAGE
  336. //
  337. // MessageText:
  338. //
  339. // Page fault was a demand zero fault.
  340. //
  341. const auto STATUS_PAGE_FAULT_GUARD_PAGE = (cast(NTSTATUS)0x00000113L);
  342. //
  343. // MessageId: STATUS_PAGE_FAULT_PAGING_FILE
  344. //
  345. // MessageText:
  346. //
  347. // Page fault was satisfied by reading from a secondary storage device.
  348. //
  349. const auto STATUS_PAGE_FAULT_PAGING_FILE = (cast(NTSTATUS)0x00000114L);
  350. //
  351. // MessageId: STATUS_CACHE_PAGE_LOCKED
  352. //
  353. // MessageText:
  354. //
  355. // Cached page was locked during operation.
  356. //
  357. const auto STATUS_CACHE_PAGE_LOCKED = (cast(NTSTATUS)0x00000115L);
  358. //
  359. // MessageId: STATUS_CRASH_DUMP
  360. //
  361. // MessageText:
  362. //
  363. // Crash dump exists in paging file.
  364. //
  365. const auto STATUS_CRASH_DUMP = (cast(NTSTATUS)0x00000116L);
  366. //
  367. // MessageId: STATUS_BUFFER_ALL_ZEROS
  368. //
  369. // MessageText:
  370. //
  371. // Specified buffer contains all zeros.
  372. //
  373. const auto STATUS_BUFFER_ALL_ZEROS = (cast(NTSTATUS)0x00000117L);
  374. //
  375. // MessageId: STATUS_REPARSE_OBJECT
  376. //
  377. // MessageText:
  378. //
  379. // A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link.
  380. //
  381. const auto STATUS_REPARSE_OBJECT = (cast(NTSTATUS)0x00000118L);
  382. //
  383. // MessageId: STATUS_RESOURCE_REQUIREMENTS_CHANGED
  384. //
  385. // MessageText:
  386. //
  387. // The device has succeeded a query-stop and its resource requirements have changed.
  388. //
  389. const auto STATUS_RESOURCE_REQUIREMENTS_CHANGED = (cast(NTSTATUS)0x00000119L);
  390. //
  391. // MessageId: STATUS_TRANSLATION_COMPLETE
  392. //
  393. // MessageText:
  394. //
  395. // The translator has translated these resources into the global space and no further translations should be performed.
  396. //
  397. const auto STATUS_TRANSLATION_COMPLETE = (cast(NTSTATUS)0x00000120L);
  398. //
  399. // MessageId: STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY
  400. //
  401. // MessageText:
  402. //
  403. // The directory service evaluated group memberships locally, as it was unable to contact a global catalog server.
  404. //
  405. const auto STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY = (cast(NTSTATUS)0x00000121L);
  406. //
  407. // MessageId: STATUS_NOTHING_TO_TERMINATE
  408. //
  409. // MessageText:
  410. //
  411. // A process being terminated has no threads to terminate.
  412. //
  413. const auto STATUS_NOTHING_TO_TERMINATE = (cast(NTSTATUS)0x00000122L);
  414. //
  415. // MessageId: STATUS_PROCESS_NOT_IN_JOB
  416. //
  417. // MessageText:
  418. //
  419. // The specified process is not part of a job.
  420. //
  421. const auto STATUS_PROCESS_NOT_IN_JOB = (cast(NTSTATUS)0x00000123L);
  422. //
  423. // MessageId: STATUS_PROCESS_IN_JOB
  424. //
  425. // MessageText:
  426. //
  427. // The specified process is part of a job.
  428. //
  429. const auto STATUS_PROCESS_IN_JOB = (cast(NTSTATUS)0x00000124L);
  430. //
  431. // MessageId: STATUS_VOLSNAP_HIBERNATE_READY
  432. //
  433. // MessageText:
  434. //
  435. // {Volume Shadow Copy Service}
  436. // The system is now ready for hibernation.
  437. //
  438. const auto STATUS_VOLSNAP_HIBERNATE_READY = (cast(NTSTATUS)0x00000125L);
  439. //
  440. // MessageId: STATUS_FSFILTER_OP_COMPLETED_SUCCESSFULLY
  441. //
  442. // MessageText:
  443. //
  444. // A file system or file system filter driver has successfully completed an FsFilter operation.
  445. //
  446. const auto STATUS_FSFILTER_OP_COMPLETED_SUCCESSFULLY = (cast(NTSTATUS)0x00000126L);
  447. //
  448. // MessageId: STATUS_INTERRUPT_VECTOR_ALREADY_CONNECTED
  449. //
  450. // MessageText:
  451. //
  452. // The specified interrupt vector was already connected.
  453. //
  454. const auto STATUS_INTERRUPT_VECTOR_ALREADY_CONNECTED = (cast(NTSTATUS)0x00000127L);
  455. //
  456. // MessageId: STATUS_INTERRUPT_STILL_CONNECTED
  457. //
  458. // MessageText:
  459. //
  460. // The specified interrupt vector is still connected.
  461. //
  462. const auto STATUS_INTERRUPT_STILL_CONNECTED = (cast(NTSTATUS)0x00000128L);
  463. //
  464. // MessageId: STATUS_PROCESS_CLONED
  465. //
  466. // MessageText:
  467. //
  468. // The current process is a cloned process.
  469. //
  470. const auto STATUS_PROCESS_CLONED = (cast(NTSTATUS)0x00000129L);
  471. //
  472. // MessageId: STATUS_FILE_LOCKED_WITH_ONLY_READERS
  473. //
  474. // MessageText:
  475. //
  476. // The file was locked and all users of the file can only read.
  477. //
  478. const auto STATUS_FILE_LOCKED_WITH_ONLY_READERS = (cast(NTSTATUS)0x0000012AL);
  479. //
  480. // MessageId: STATUS_FILE_LOCKED_WITH_WRITERS
  481. //
  482. // MessageText:
  483. //
  484. // The file was locked and at least one user of the file can write.
  485. //
  486. const auto STATUS_FILE_LOCKED_WITH_WRITERS = (cast(NTSTATUS)0x0000012BL);
  487. //
  488. // MessageId: STATUS_RESOURCEMANAGER_READ_ONLY
  489. //
  490. // MessageText:
  491. //
  492. // The specified ResourceManager made no changes or updates to the resource under this transaction.
  493. //
  494. const auto STATUS_RESOURCEMANAGER_READ_ONLY = (cast(NTSTATUS)0x00000202L);
  495. //
  496. // MessageId: DBG_EXCEPTION_HANDLED
  497. //
  498. // MessageText:
  499. //
  500. // Debugger handled exception
  501. //
  502. const auto DBG_EXCEPTION_HANDLED = (cast(NTSTATUS)0x00010001L) ; // winnt
  503. //
  504. // MessageId: DBG_CONTINUE
  505. //
  506. // MessageText:
  507. //
  508. // Debugger continued
  509. //
  510. const auto DBG_CONTINUE = (cast(NTSTATUS)0x00010002L) ; // winnt
  511. //
  512. // MessageId: STATUS_FLT_IO_COMPLETE
  513. //
  514. // MessageText:
  515. //
  516. // The IO was completed by a filter.
  517. //
  518. const auto STATUS_FLT_IO_COMPLETE = (cast(NTSTATUS)0x001C0001L);
  519. /////////////////////////////////////////////////////////////////////////
  520. //
  521. // Standard Information values
  522. //
  523. /////////////////////////////////////////////////////////////////////////
  524. //
  525. // MessageId: STATUS_OBJECT_NAME_EXISTS
  526. //
  527. // MessageText:
  528. //
  529. // {Object Exists}
  530. // An attempt was made to create an object and the object name already existed.
  531. //
  532. const auto STATUS_OBJECT_NAME_EXISTS = (cast(NTSTATUS)0x40000000L);
  533. //
  534. // MessageId: STATUS_THREAD_WAS_SUSPENDED
  535. //
  536. // MessageText:
  537. //
  538. // {Thread Suspended}
  539. // A thread termination occurred while the thread was suspended. The thread was resumed, and termination proceeded.
  540. //
  541. const auto STATUS_THREAD_WAS_SUSPENDED = (cast(NTSTATUS)0x40000001L);
  542. //
  543. // MessageId: STATUS_WORKING_SET_LIMIT_RANGE
  544. //
  545. // MessageText:
  546. //
  547. // {Working Set Range Error}
  548. // An attempt was made to set the working set minimum or maximum to values which are outside of the allowable range.
  549. //
  550. const auto STATUS_WORKING_SET_LIMIT_RANGE = (cast(NTSTATUS)0x40000002L);
  551. //
  552. // MessageId: STATUS_IMAGE_NOT_AT_BASE
  553. //
  554. // MessageText:
  555. //
  556. // {Image Relocated}
  557. // An image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image.
  558. //
  559. const auto STATUS_IMAGE_NOT_AT_BASE = (cast(NTSTATUS)0x40000003L);
  560. //
  561. // MessageId: STATUS_RXACT_STATE_CREATED
  562. //
  563. // MessageText:
  564. //
  565. // This informational level status indicates that a specified registry sub-tree transaction state did not yet exist and had to be created.
  566. //
  567. const auto STATUS_RXACT_STATE_CREATED = (cast(NTSTATUS)0x40000004L);
  568. //
  569. // MessageId: STATUS_SEGMENT_NOTIFICATION
  570. //
  571. // MessageText:
  572. //
  573. // {Segment Load}
  574. // A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image.
  575. // An exception is raised so a debugger can load, unload or track symbols and breakpoints within these 16-bit segments.
  576. //
  577. const auto STATUS_SEGMENT_NOTIFICATION = (cast(NTSTATUS)0x40000005L) ; // winnt
  578. //
  579. // MessageId: STATUS_LOCAL_USER_SESSION_KEY
  580. //
  581. // MessageText:
  582. //
  583. // {Local Session Key}
  584. // A user session key was requested for a local RPC connection. The session key returned is a constant value and not unique to this connection.
  585. //
  586. const auto STATUS_LOCAL_USER_SESSION_KEY = (cast(NTSTATUS)0x40000006L);
  587. //
  588. // MessageId: STATUS_BAD_CURRENT_DIRECTORY
  589. //
  590. // MessageText:
  591. //
  592. // {Invalid Current Directory}
  593. // The process cannot switch to the startup current directory %hs.
  594. // Select OK to set current directory to %hs, or select CANCEL to exit.
  595. //
  596. const auto STATUS_BAD_CURRENT_DIRECTORY = (cast(NTSTATUS)0x40000007L);
  597. //
  598. // MessageId: STATUS_SERIAL_MORE_WRITES
  599. //
  600. // MessageText:
  601. //
  602. // {Serial IOCTL Complete}
  603. // A serial I/O operation was completed by another write to a serial port.
  604. // (The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
  605. //
  606. const auto STATUS_SERIAL_MORE_WRITES = (cast(NTSTATUS)0x40000008L);
  607. //
  608. // MessageId: STATUS_REGISTRY_RECOVERED
  609. //
  610. // MessageText:
  611. //
  612. // {Registry Recovery}
  613. // One of the files containing the system's Registry data had to be recovered by use of a log or alternate copy.
  614. // The recovery was successful.
  615. //
  616. const auto STATUS_REGISTRY_RECOVERED = (cast(NTSTATUS)0x40000009L);
  617. //
  618. // MessageId: STATUS_FT_READ_RECOVERY_FROM_BACKUP
  619. //
  620. // MessageText:
  621. //
  622. // {Redundant Read}
  623. // To satisfy a read request, the NT fault-tolerant file system successfully read the requested data from a redundant copy.
  624. // This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was unable to reassign the failing area of the device.
  625. //
  626. const auto STATUS_FT_READ_RECOVERY_FROM_BACKUP = (cast(NTSTATUS)0x4000000AL);
  627. //
  628. // MessageId: STATUS_FT_WRITE_RECOVERY
  629. //
  630. // MessageText:
  631. //
  632. // {Redundant Write}
  633. // To satisfy a write request, the NT fault-tolerant file system successfully wrote a redundant copy of the information.
  634. // This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was not able to reassign the failing area of the device.
  635. //
  636. const auto STATUS_FT_WRITE_RECOVERY = (cast(NTSTATUS)0x4000000BL);
  637. //
  638. // MessageId: STATUS_SERIAL_COUNTER_TIMEOUT
  639. //
  640. // MessageText:
  641. //
  642. // {Serial IOCTL Timeout}
  643. // A serial I/O operation completed because the time-out period expired.
  644. // (The IOCTL_SERIAL_XOFF_COUNTER had not reached zero.)
  645. //
  646. const auto STATUS_SERIAL_COUNTER_TIMEOUT = (cast(NTSTATUS)0x4000000CL);
  647. //
  648. // MessageId: STATUS_NULL_LM_PASSWORD
  649. //
  650. // MessageText:
  651. //
  652. // {Password Too Complex}
  653. // The Windows password is too complex to be converted to a LAN Manager password.
  654. // The LAN Manager password returned is a NULL string.
  655. //
  656. const auto STATUS_NULL_LM_PASSWORD = (cast(NTSTATUS)0x4000000DL);
  657. //
  658. // MessageId: STATUS_IMAGE_MACHINE_TYPE_MISMATCH
  659. //
  660. // MessageText:
  661. //
  662. // {Machine Type Mismatch}
  663. // The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load.
  664. //
  665. const auto STATUS_IMAGE_MACHINE_TYPE_MISMATCH = (cast(NTSTATUS)0x4000000EL);
  666. //
  667. // MessageId: STATUS_RECEIVE_PARTIAL
  668. //
  669. // MessageText:
  670. //
  671. // {Partial Data Received}
  672. // The network transport returned partial data to its client. The remaining data will be sent later.
  673. //
  674. const auto STATUS_RECEIVE_PARTIAL = (cast(NTSTATUS)0x4000000FL);
  675. //
  676. // MessageId: STATUS_RECEIVE_EXPEDITED
  677. //
  678. // MessageText:
  679. //
  680. // {Expedited Data Received}
  681. // The network transport returned data to its client that was marked as expedited by the remote system.
  682. //
  683. const auto STATUS_RECEIVE_EXPEDITED = (cast(NTSTATUS)0x40000010L);
  684. //
  685. // MessageId: STATUS_RECEIVE_PARTIAL_EXPEDITED
  686. //
  687. // MessageText:
  688. //
  689. // {Partial Expedited Data Received}
  690. // The network transport returned partial data to its client and this data was marked as expedited by the remote system. The remaining data will be sent later.
  691. //
  692. const auto STATUS_RECEIVE_PARTIAL_EXPEDITED = (cast(NTSTATUS)0x40000011L);
  693. //
  694. // MessageId: STATUS_EVENT_DONE
  695. //
  696. // MessageText:
  697. //
  698. // {TDI Event Done}
  699. // The TDI indication has completed successfully.
  700. //
  701. const auto STATUS_EVENT_DONE = (cast(NTSTATUS)0x40000012L);
  702. //
  703. // MessageId: STATUS_EVENT_PENDING
  704. //
  705. // MessageText:
  706. //
  707. // {TDI Event Pending}
  708. // The TDI indication has entered the pending state.
  709. //
  710. const auto STATUS_EVENT_PENDING = (cast(NTSTATUS)0x40000013L);
  711. //
  712. // MessageId: STATUS_CHECKING_FILE_SYSTEM
  713. //
  714. // MessageText:
  715. //
  716. // Checking file system on %wZ
  717. //
  718. const auto STATUS_CHECKING_FILE_SYSTEM = (cast(NTSTATUS)0x40000014L);
  719. //
  720. // MessageId: STATUS_FATAL_APP_EXIT
  721. //
  722. // MessageText:
  723. //
  724. // {Fatal Application Exit}
  725. // %hs
  726. //
  727. const auto STATUS_FATAL_APP_EXIT = (cast(NTSTATUS)0x40000015L);
  728. //
  729. // MessageId: STATUS_PREDEFINED_HANDLE
  730. //
  731. // MessageText:
  732. //
  733. // The specified registry key is referenced by a predefined handle.
  734. //
  735. const auto STATUS_PREDEFINED_HANDLE = (cast(NTSTATUS)0x40000016L);
  736. //
  737. // MessageId: STATUS_WAS_UNLOCKED
  738. //
  739. // MessageText:
  740. //
  741. // {Page Unlocked}
  742. // The page protection of a locked page was changed to 'No Access' and the page was unlocked from memory and from the process.
  743. //
  744. const auto STATUS_WAS_UNLOCKED = (cast(NTSTATUS)0x40000017L);
  745. //
  746. // MessageId: STATUS_SERVICE_NOTIFICATION
  747. //
  748. // MessageText:
  749. //
  750. // %hs
  751. //
  752. const auto STATUS_SERVICE_NOTIFICATION = (cast(NTSTATUS)0x40000018L);
  753. //
  754. // MessageId: STATUS_WAS_LOCKED
  755. //
  756. // MessageText:
  757. //
  758. // {Page Locked}
  759. // One of the pages to lock was already locked.
  760. //
  761. const auto STATUS_WAS_LOCKED = (cast(NTSTATUS)0x40000019L);
  762. //
  763. // MessageId: STATUS_LOG_HARD_ERROR
  764. //
  765. // MessageText:
  766. //
  767. // Application popup: %1 : %2
  768. //
  769. const auto STATUS_LOG_HARD_ERROR = (cast(NTSTATUS)0x4000001AL);
  770. //
  771. // MessageId: STATUS_ALREADY_WIN32
  772. //
  773. // MessageText:
  774. //
  775. // STATUS_ALREADY_WIN32
  776. //
  777. const auto STATUS_ALREADY_WIN32 = (cast(NTSTATUS)0x4000001BL);
  778. //
  779. // MessageId: STATUS_WX86_UNSIMULATE
  780. //
  781. // MessageText:
  782. //
  783. // Exception status code used by Win32 x86 emulation subsystem.
  784. //
  785. const auto STATUS_WX86_UNSIMULATE = (cast(NTSTATUS)0x4000001CL);
  786. //
  787. // MessageId: STATUS_WX86_CONTINUE
  788. //
  789. // MessageText:
  790. //
  791. // Exception status code used by Win32 x86 emulation subsystem.
  792. //
  793. const auto STATUS_WX86_CONTINUE = (cast(NTSTATUS)0x4000001DL);
  794. //
  795. // MessageId: STATUS_WX86_SINGLE_STEP
  796. //
  797. // MessageText:
  798. //
  799. // Exception status code used by Win32 x86 emulation subsystem.
  800. //
  801. const auto STATUS_WX86_SINGLE_STEP = (cast(NTSTATUS)0x4000001EL);
  802. //
  803. // MessageId: STATUS_WX86_BREAKPOINT
  804. //
  805. // MessageText:
  806. //
  807. // Exception status code used by Win32 x86 emulation subsystem.
  808. //
  809. const auto STATUS_WX86_BREAKPOINT = (cast(NTSTATUS)0x4000001FL);
  810. //
  811. // MessageId: STATUS_WX86_EXCEPTION_CONTINUE
  812. //
  813. // MessageText:
  814. //
  815. // Exception status code used by Win32 x86 emulation subsystem.
  816. //
  817. const auto STATUS_WX86_EXCEPTION_CONTINUE = (cast(NTSTATUS)0x40000020L);
  818. //
  819. // MessageId: STATUS_WX86_EXCEPTION_LASTCHANCE
  820. //
  821. // MessageText:
  822. //
  823. // Exception status code used by Win32 x86 emulation subsystem.
  824. //
  825. const auto STATUS_WX86_EXCEPTION_LASTCHANCE = (cast(NTSTATUS)0x40000021L);
  826. //
  827. // MessageId: STATUS_WX86_EXCEPTION_CHAIN
  828. //
  829. // MessageText:
  830. //
  831. // Exception status code used by Win32 x86 emulation subsystem.
  832. //
  833. const auto STATUS_WX86_EXCEPTION_CHAIN = (cast(NTSTATUS)0x40000022L);
  834. //
  835. // MessageId: STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE
  836. //
  837. // MessageText:
  838. //
  839. // {Machine Type Mismatch}
  840. // The image file %hs is valid, but is for a machine type other than the current machine.
  841. //
  842. const auto STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE = (cast(NTSTATUS)0x40000023L);
  843. //
  844. // MessageId: STATUS_NO_YIELD_PERFORMED
  845. //
  846. // MessageText:
  847. //
  848. // A yield execution was performed and no thread was available to run.
  849. //
  850. const auto STATUS_NO_YIELD_PERFORMED = (cast(NTSTATUS)0x40000024L);
  851. //
  852. // MessageId: STATUS_TIMER_RESUME_IGNORED
  853. //
  854. // MessageText:
  855. //
  856. // The resumable flag to a timer API was ignored.
  857. //
  858. const auto STATUS_TIMER_RESUME_IGNORED = (cast(NTSTATUS)0x40000025L);
  859. //
  860. // MessageId: STATUS_ARBITRATION_UNHANDLED
  861. //
  862. // MessageText:
  863. //
  864. // The arbiter has deferred arbitration of these resources to its parent
  865. //
  866. const auto STATUS_ARBITRATION_UNHANDLED = (cast(NTSTATUS)0x40000026L);
  867. //
  868. // MessageId: STATUS_CARDBUS_NOT_SUPPORTED
  869. //
  870. // MessageText:
  871. //
  872. // The device "%hs" has detected a CardBus card in its slot, but the firmware on this system is not configured to allow the CardBus controller to be run in CardBus mode.
  873. // The operating system will currently accept only 16-bit (R2) pc-cards on this controller.
  874. //
  875. const auto STATUS_CARDBUS_NOT_SUPPORTED = (cast(NTSTATUS)0x40000027L);
  876. //
  877. // MessageId: STATUS_WX86_CREATEWX86TIB
  878. //
  879. // MessageText:
  880. //
  881. // Exception status code used by Win32 x86 emulation subsystem.
  882. //
  883. const auto STATUS_WX86_CREATEWX86TIB = (cast(NTSTATUS)0x40000028L);
  884. //
  885. // MessageId: STATUS_MP_PROCESSOR_MISMATCH
  886. //
  887. // MessageText:
  888. //
  889. // The CPUs in this multiprocessor system are not all the same revision level. To use all processors the operating system restricts itself to the features of the least capable processor in the system. Should problems occur with this system, contact
  890. // the CPU manufacturer to see if this mix of processors is supported.
  891. //
  892. const auto STATUS_MP_PROCESSOR_MISMATCH = (cast(NTSTATUS)0x40000029L);
  893. //
  894. // MessageId: STATUS_HIBERNATED
  895. //
  896. // MessageText:
  897. //
  898. // The system was put into hibernation.
  899. //
  900. const auto STATUS_HIBERNATED = (cast(NTSTATUS)0x4000002AL) ;
  901. //
  902. // MessageId: STATUS_RESUME_HIBERNATION
  903. //
  904. // MessageText:
  905. //
  906. // The system was resumed from hibernation.
  907. //
  908. const auto STATUS_RESUME_HIBERNATION = (cast(NTSTATUS)0x4000002BL) ;
  909. //
  910. // MessageId: STATUS_FIRMWARE_UPDATED
  911. //
  912. // MessageText:
  913. //
  914. // Windows has detected that the system firmware (BIOS) was updated [previous firmware date = %2, current firmware date %3].
  915. //
  916. const auto STATUS_FIRMWARE_UPDATED = (cast(NTSTATUS)0x4000002CL);
  917. //
  918. // MessageId: STATUS_DRIVERS_LEAKING_LOCKED_PAGES
  919. //
  920. // MessageText:
  921. //
  922. // A device driver is leaking locked I/O pages causing system degradation. The system has automatically enabled tracking code in order to try and catch the culprit.
  923. //
  924. const auto STATUS_DRIVERS_LEAKING_LOCKED_PAGES = (cast(NTSTATUS)0x4000002DL);
  925. //
  926. // MessageId: STATUS_MESSAGE_RETRIEVED
  927. //
  928. // MessageText:
  929. //
  930. // The ALPC message being canceled has already been retrieved from the queue on the other side.
  931. //
  932. const auto STATUS_MESSAGE_RETRIEVED = (cast(NTSTATUS)0x4000002EL);
  933. //
  934. // MessageId: STATUS_SYSTEM_POWERSTATE_TRANSITION
  935. //
  936. // MessageText:
  937. //
  938. // The system powerstate is transitioning from %2 to %3.
  939. //
  940. const auto STATUS_SYSTEM_POWERSTATE_TRANSITION = (cast(NTSTATUS)0x4000002FL) ;
  941. //
  942. // MessageId: STATUS_ALPC_CHECK_COMPLETION_LIST
  943. //
  944. // MessageText:
  945. //
  946. // The receive operation was successful. Check the ALPC completion list for the received message.
  947. //
  948. const auto STATUS_ALPC_CHECK_COMPLETION_LIST = (cast(NTSTATUS)0x40000030L);
  949. //
  950. // MessageId: STATUS_SYSTEM_POWERSTATE_COMPLEX_TRANSITION
  951. //
  952. // MessageText:
  953. //
  954. // The system powerstate is transitioning from %2 to %3 but could enter %4.
  955. //
  956. const auto STATUS_SYSTEM_POWERSTATE_COMPLEX_TRANSITION = (cast(NTSTATUS)0x40000031L) ;
  957. //
  958. // MessageId: STATUS_ACCESS_AUDIT_BY_POLICY
  959. //
  960. // MessageText:
  961. //
  962. // Access to %1 is monitored by policy rule %2.
  963. //
  964. const auto STATUS_ACCESS_AUDIT_BY_POLICY = (cast(NTSTATUS)0x40000032L) ;
  965. //
  966. // MessageId: STATUS_ABANDON_HIBERFILE
  967. //
  968. // MessageText:
  969. //
  970. // A valid hibernation file has been invalidated and should be abandoned.
  971. //
  972. const auto STATUS_ABANDON_HIBERFILE = (cast(NTSTATUS)0x40000033L);
  973. //
  974. // MessageId: STATUS_BIZRULES_NOT_ENABLED
  975. //
  976. // MessageText:
  977. //
  978. // Business rule scripts are disabled for the calling application.
  979. //
  980. const auto STATUS_BIZRULES_NOT_ENABLED = (cast(NTSTATUS)0x40000034L);
  981. //
  982. // MessageId: DBG_REPLY_LATER
  983. //
  984. // MessageText:
  985. //
  986. // Debugger will reply later.
  987. //
  988. const auto DBG_REPLY_LATER = (cast(NTSTATUS)0x40010001L);
  989. //
  990. // MessageId: DBG_UNABLE_TO_PROVIDE_HANDLE
  991. //
  992. // MessageText:
  993. //
  994. // Debugger cannot provide handle.
  995. //
  996. const auto DBG_UNABLE_TO_PROVIDE_HANDLE = (cast(NTSTATUS)0x40010002L);
  997. //
  998. // MessageId: DBG_TERMINATE_THREAD
  999. //
  1000. // MessageText:
  1001. //
  1002. // Debugger terminated thread.
  1003. //
  1004. const auto DBG_TERMINATE_THREAD = (cast(NTSTATUS)0x40010003L) ; // winnt
  1005. //
  1006. // MessageId: DBG_TERMINATE_PROCESS
  1007. //
  1008. // MessageText:
  1009. //
  1010. // Debugger terminated process.
  1011. //
  1012. const auto DBG_TERMINATE_PROCESS = (cast(NTSTATUS)0x40010004L) ; // winnt
  1013. //
  1014. // MessageId: DBG_CONTROL_C
  1015. //
  1016. // MessageText:
  1017. //
  1018. // Debugger got control C.
  1019. //
  1020. const auto DBG_CONTROL_C = (cast(NTSTATUS)0x40010005L) ; // winnt
  1021. //
  1022. // MessageId: DBG_PRINTEXCEPTION_C
  1023. //
  1024. // MessageText:
  1025. //
  1026. // Debugger printed exception on control C.
  1027. //
  1028. const auto DBG_PRINTEXCEPTION_C = (cast(NTSTATUS)0x40010006L);
  1029. //
  1030. // MessageId: DBG_RIPEXCEPTION
  1031. //
  1032. // MessageText:
  1033. //
  1034. // Debugger received RIP exception.
  1035. //
  1036. const auto DBG_RIPEXCEPTION = (cast(NTSTATUS)0x40010007L);
  1037. //
  1038. // MessageId: DBG_CONTROL_BREAK
  1039. //
  1040. // MessageText:
  1041. //
  1042. // Debugger received control break.
  1043. //
  1044. const auto DBG_CONTROL_BREAK = (cast(NTSTATUS)0x40010008L) ; // winnt
  1045. //
  1046. // MessageId: DBG_COMMAND_EXCEPTION
  1047. //
  1048. // MessageText:
  1049. //
  1050. // Debugger command communication exception.
  1051. //
  1052. const auto DBG_COMMAND_EXCEPTION = (cast(NTSTATUS)0x40010009L) ; // winnt
  1053. //
  1054. // MessageId: STATUS_FLT_BUFFER_TOO_SMALL
  1055. //
  1056. // MessageText:
  1057. //
  1058. // {Buffer too small}
  1059. // The buffer is too small to contain the entry. No information has been written to the buffer.
  1060. //
  1061. const auto STATUS_FLT_BUFFER_TOO_SMALL = (cast(NTSTATUS)0x801C0001L);
  1062. /////////////////////////////////////////////////////////////////////////
  1063. //
  1064. // Standard Warning values
  1065. //
  1066. //
  1067. // Note: Do NOT use the value 0x80000000L, as this is a non-portable value
  1068. // for the NT_SUCCESS macro. Warning values start with a code of 1.
  1069. //
  1070. /////////////////////////////////////////////////////////////////////////
  1071. //
  1072. // MessageId: STATUS_GUARD_PAGE_VIOLATION
  1073. //
  1074. // MessageText:
  1075. //
  1076. // {EXCEPTION}
  1077. // Guard Page Exception
  1078. // A page of memory that marks the end of a data structure, such as a stack or an array, has been accessed.
  1079. //
  1080. //const auto STATUS_GUARD_PAGE_VIOLATION = (cast(NTSTATUS)0x80000001L) ; // winnt
  1081. //
  1082. // MessageId: STATUS_DATATYPE_MISALIGNMENT
  1083. //
  1084. // MessageText:
  1085. //
  1086. // {EXCEPTION}
  1087. // Alignment Fault
  1088. // A datatype misalignment was detected in a load or store instruction.
  1089. //
  1090. //const auto STATUS_DATATYPE_MISALIGNMENT = (cast(NTSTATUS)0x80000002L) ; // winnt
  1091. //
  1092. // MessageId: STATUS_BREAKPOINT
  1093. //
  1094. // MessageText:
  1095. //
  1096. // {EXCEPTION}
  1097. // Breakpoint
  1098. // A breakpoint has been reached.
  1099. //
  1100. //const auto STATUS_BREAKPOINT = (cast(NTSTATUS)0x80000003L) ; // winnt
  1101. //
  1102. // MessageId: STATUS_SINGLE_STEP
  1103. //
  1104. // MessageText:
  1105. //
  1106. // {EXCEPTION}
  1107. // Single Step
  1108. // A single step or trace operation has just been completed.
  1109. //
  1110. //const auto STATUS_SINGLE_STEP = (cast(NTSTATUS)0x80000004L) ; // winnt
  1111. //
  1112. // MessageId: STATUS_BUFFER_OVERFLOW
  1113. //
  1114. // MessageText:
  1115. //
  1116. // {Buffer Overflow}
  1117. // The data was too large to fit into the specified buffer.
  1118. //
  1119. const auto STATUS_BUFFER_OVERFLOW = (cast(NTSTATUS)0x80000005L);
  1120. //
  1121. // MessageId: STATUS_NO_MORE_FILES
  1122. //
  1123. // MessageText:
  1124. //
  1125. // {No More Files}
  1126. // No more files were found which match the file specification.
  1127. //
  1128. const auto STATUS_NO_MORE_FILES = (cast(NTSTATUS)0x80000006L);
  1129. //
  1130. // MessageId: STATUS_WAKE_SYSTEM_DEBUGGER
  1131. //
  1132. // MessageText:
  1133. //
  1134. // {Kernel Debugger Awakened}
  1135. // the system debugger was awakened by an interrupt.
  1136. //
  1137. const auto STATUS_WAKE_SYSTEM_DEBUGGER = (cast(NTSTATUS)0x80000007L);
  1138. //
  1139. // MessageId: STATUS_HANDLES_CLOSED
  1140. //
  1141. // MessageText:
  1142. //
  1143. // {Handles Closed}
  1144. // Handles to objects have been automatically closed as a result of the requested operation.
  1145. //
  1146. const auto STATUS_HANDLES_CLOSED = (cast(NTSTATUS)0x8000000AL);
  1147. //
  1148. // MessageId: STATUS_NO_INHERITANCE
  1149. //
  1150. // MessageText:
  1151. //
  1152. // {Non-Inheritable ACL}
  1153. // An access control list (ACL) contains no components that can be inherited.
  1154. //
  1155. const auto STATUS_NO_INHERITANCE = (cast(NTSTATUS)0x8000000BL);
  1156. //
  1157. // MessageId: STATUS_GUID_SUBSTITUTION_MADE
  1158. //
  1159. // MessageText:
  1160. //
  1161. // {GUID Substitution}
  1162. // During the translation of a global identifier (GUID) to a Windows security ID (SID), no administratively-defined GUID prefix was found.
  1163. // A substitute prefix was used, which will not compromise system security.
  1164. // However, this may provide a more restrictive access than intended.
  1165. //
  1166. const auto STATUS_GUID_SUBSTITUTION_MADE = (cast(NTSTATUS)0x8000000CL);
  1167. //
  1168. // MessageId: STATUS_PARTIAL_COPY
  1169. //
  1170. // MessageText:
  1171. //
  1172. // {Partial Copy}
  1173. // Due to protection conflicts not all the requested bytes could be copied.
  1174. //
  1175. const auto STATUS_PARTIAL_COPY = (cast(NTSTATUS)0x8000000DL);
  1176. //
  1177. // MessageId: STATUS_DEVICE_PAPER_EMPTY
  1178. //
  1179. // MessageText:
  1180. //
  1181. // {Out of Paper}
  1182. // The printer is out of paper.
  1183. //
  1184. const auto STATUS_DEVICE_PAPER_EMPTY = (cast(NTSTATUS)0x8000000EL);
  1185. //
  1186. // MessageId: STATUS_DEVICE_POWERED_OFF
  1187. //
  1188. // MessageText:
  1189. //
  1190. // {Device Power Is Off}
  1191. // The printer power has been turned off.
  1192. //
  1193. const auto STATUS_DEVICE_POWERED_OFF = (cast(NTSTATUS)0x8000000FL);
  1194. //
  1195. // MessageId: STATUS_DEVICE_OFF_LINE
  1196. //
  1197. // MessageText:
  1198. //
  1199. // {Device Offline}
  1200. // The printer has been taken offline.
  1201. //
  1202. const auto STATUS_DEVICE_OFF_LINE = (cast(NTSTATUS)0x80000010L);
  1203. //
  1204. // MessageId: STATUS_DEVICE_BUSY
  1205. //
  1206. // MessageText:
  1207. //
  1208. // {Device Busy}
  1209. // The device is currently busy.
  1210. //
  1211. const auto STATUS_DEVICE_BUSY = (cast(NTSTATUS)0x80000011L);
  1212. //
  1213. // MessageId: STATUS_NO_MORE_EAS
  1214. //
  1215. // MessageText:
  1216. //
  1217. // {No More EAs}
  1218. // No more extended attributes (EAs) were found for the file.
  1219. //
  1220. const auto STATUS_NO_MORE_EAS = (cast(NTSTATUS)0x80000012L);
  1221. //
  1222. // MessageId: STATUS_INVALID_EA_NAME
  1223. //
  1224. // MessageText:
  1225. //
  1226. // {Illegal EA}
  1227. // The specified extended attribute (EA) name contains at least one illegal character.
  1228. //
  1229. const auto STATUS_INVALID_EA_NAME = (cast(NTSTATUS)0x80000013L);
  1230. //
  1231. // MessageId: STATUS_EA_LIST_INCONSISTENT
  1232. //
  1233. // MessageText:
  1234. //
  1235. // {Inconsistent EA List}
  1236. // The extended attribute (EA) list is inconsistent.
  1237. //
  1238. const auto STATUS_EA_LIST_INCONSISTENT = (cast(NTSTATUS)0x80000014L);
  1239. //
  1240. // MessageId: STATUS_INVALID_EA_FLAG
  1241. //
  1242. // MessageText:
  1243. //
  1244. // {Invalid EA Flag}
  1245. // An invalid extended attribute (EA) flag was set.
  1246. //
  1247. const auto STATUS_INVALID_EA_FLAG = (cast(NTSTATUS)0x80000015L);
  1248. //
  1249. // MessageId: STATUS_VERIFY_REQUIRED
  1250. //
  1251. // MessageText:
  1252. //
  1253. // {Verifying Disk}
  1254. // The media has changed and a verify operation is in progress so no reads or writes may be performed to the device, except those used in the verify operation.
  1255. //
  1256. const auto STATUS_VERIFY_REQUIRED = (cast(NTSTATUS)0x80000016L);
  1257. //
  1258. // MessageId: STATUS_EXTRANEOUS_INFORMATION
  1259. //
  1260. // MessageText:
  1261. //
  1262. // {Too Much Information}
  1263. // The specified access control list (ACL) contained more information than was expected.
  1264. //
  1265. const auto STATUS_EXTRANEOUS_INFORMATION = (cast(NTSTATUS)0x80000017L);
  1266. //
  1267. // MessageId: STATUS_RXACT_COMMIT_NECESSARY
  1268. //
  1269. // MessageText:
  1270. //
  1271. // This warning level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted.
  1272. // The commit has NOT been completed, but has not been rolled back either (so it may still be committed if desired).
  1273. //
  1274. const auto STATUS_RXACT_COMMIT_NECESSARY = (cast(NTSTATUS)0x80000018L);
  1275. //
  1276. // MessageId: STATUS_NO_MORE_ENTRIES
  1277. //
  1278. // MessageText:
  1279. //
  1280. // {No More Entries}
  1281. // No more entries are available from an enumeration operation.
  1282. //
  1283. const auto STATUS_NO_MORE_ENTRIES = (cast(NTSTATUS)0x8000001AL);
  1284. //
  1285. // MessageId: STATUS_FILEMARK_DETECTED
  1286. //
  1287. // MessageText:
  1288. //
  1289. // {Filemark Found}
  1290. // A filemark was detected.
  1291. //
  1292. const auto STATUS_FILEMARK_DETECTED = (cast(NTSTATUS)0x8000001BL);
  1293. //
  1294. // MessageId: STATUS_MEDIA_CHANGED
  1295. //
  1296. // MessageText:
  1297. //
  1298. // {Media Changed}
  1299. // The media may have changed.
  1300. //
  1301. const auto STATUS_MEDIA_CHANGED = (cast(NTSTATUS)0x8000001CL);
  1302. //
  1303. // MessageId: STATUS_BUS_RESET
  1304. //
  1305. // MessageText:
  1306. //
  1307. // {I/O Bus Reset}
  1308. // An I/O bus reset was detected.
  1309. //
  1310. const auto STATUS_BUS_RESET = (cast(NTSTATUS)0x8000001DL);
  1311. //
  1312. // MessageId: STATUS_END_OF_MEDIA
  1313. //
  1314. // MessageText:
  1315. //
  1316. // {End of Media}
  1317. // The end of the media was encountered.
  1318. //
  1319. const auto STATUS_END_OF_MEDIA = (cast(NTSTATUS)0x8000001EL);
  1320. //
  1321. // MessageId: STATUS_BEGINNING_OF_MEDIA
  1322. //
  1323. // MessageText:
  1324. //
  1325. // Beginning of tape or partition has been detected.
  1326. //
  1327. const auto STATUS_BEGINNING_OF_MEDIA = (cast(NTSTATUS)0x8000001FL);
  1328. //
  1329. // MessageId: STATUS_MEDIA_CHECK
  1330. //
  1331. // MessageText:
  1332. //
  1333. // {Media Changed}
  1334. // The media may have changed.
  1335. //
  1336. const auto STATUS_MEDIA_CHECK = (cast(NTSTATUS)0x80000020L);
  1337. //
  1338. // MessageId: STATUS_SETMARK_DETECTED
  1339. //
  1340. // MessageText:
  1341. //
  1342. // A tape access reached a setmark.
  1343. //
  1344. const auto STATUS_SETMARK_DETECTED = (cast(NTSTATUS)0x80000021L);
  1345. //
  1346. // MessageId: STATUS_NO_DATA_DETECTED
  1347. //
  1348. // MessageText:
  1349. //
  1350. // During a tape access, the end of the data written is reached.
  1351. //
  1352. const auto STATUS_NO_DATA_DETECTED = (cast(NTSTATUS)0x80000022L);
  1353. //
  1354. // MessageId: STATUS_REDIRECTOR_HAS_OPEN_HANDLES
  1355. //
  1356. // MessageText:
  1357. //
  1358. // The redirector is in use and cannot be unloaded.
  1359. //
  1360. const auto STATUS_REDIRECTOR_HAS_OPEN_HANDLES = (cast(NTSTATUS)0x80000023L);
  1361. //
  1362. // MessageId: STATUS_SERVER_HAS_OPEN_HANDLES
  1363. //
  1364. // MessageText:
  1365. //
  1366. // The server is in use and cannot be unloaded.
  1367. //
  1368. const auto STATUS_SERVER_HAS_OPEN_HANDLES = (cast(NTSTATUS)0x80000024L);
  1369. //
  1370. // MessageId: STATUS_ALREADY_DISCONNECTED
  1371. //
  1372. // MessageText:
  1373. //
  1374. // The specified connection has already been disconnected.
  1375. //
  1376. const auto STATUS_ALREADY_DISCONNECTED = (cast(NTSTATUS)0x80000025L);
  1377. //
  1378. // MessageId: STATUS_LONGJUMP
  1379. //
  1380. // MessageText:
  1381. //
  1382. // A long jump has been executed.
  1383. //
  1384. const auto STATUS_LONGJUMP = (cast(NTSTATUS)0x80000026L);
  1385. //
  1386. // MessageId: STATUS_CLEANER_CARTRIDGE_INSTALLED
  1387. //
  1388. // MessageText:
  1389. //
  1390. // A cleaner cartridge is present in the tape library.
  1391. //
  1392. const auto STATUS_CLEANER_CARTRIDGE_INSTALLED = (cast(NTSTATUS)0x80000027L);
  1393. //
  1394. // MessageId: STATUS_PLUGPLAY_QUERY_VETOED
  1395. //
  1396. // MessageText:
  1397. //
  1398. // The Plug and Play query operation was not successful.
  1399. //
  1400. const auto STATUS_PLUGPLAY_QUERY_VETOED = (cast(NTSTATUS)0x80000028L);
  1401. //
  1402. // MessageId: STATUS_UNWIND_CONSOLIDATE
  1403. //
  1404. // MessageText:
  1405. //
  1406. // A frame consolidation has been executed.
  1407. //
  1408. const auto STATUS_UNWIND_CONSOLIDATE = (cast(NTSTATUS)0x80000029L);
  1409. //
  1410. // MessageId: STATUS_REGISTRY_HIVE_RECOVERED
  1411. //
  1412. // MessageText:
  1413. //
  1414. // {Registry Hive Recovered}
  1415. // Registry hive (file):
  1416. // %hs
  1417. // was corrupted and it has been recovered. Some data might have been lost.
  1418. //
  1419. const auto STATUS_REGISTRY_HIVE_RECOVERED = (cast(NTSTATUS)0x8000002AL);
  1420. //
  1421. // MessageId: STATUS_DLL_MIGHT_BE_INSECURE
  1422. //
  1423. // MessageText:
  1424. //
  1425. // The application is attempting to run executable code from the module %hs. This may be insecure. An alternative, %hs, is available. Should the application use the secure module %hs?
  1426. //
  1427. const auto STATUS_DLL_MIGHT_BE_INSECURE = (cast(NTSTATUS)0x8000002BL);
  1428. //
  1429. // MessageId: STATUS_DLL_MIGHT_BE_INCOMPATIBLE
  1430. //
  1431. // MessageText:
  1432. //
  1433. // The application is loading executable code from the module %hs. This is secure, but may be incompatible with previous releases of the operating system. An alternative, %hs, is available. Should the application use the secure module %hs?
  1434. //
  1435. const auto STATUS_DLL_MIGHT_BE_INCOMPATIBLE = (cast(NTSTATUS)0x8000002CL);
  1436. //
  1437. // MessageId: STATUS_STOPPED_ON_SYMLINK
  1438. //
  1439. // MessageText:
  1440. //
  1441. // The create operation stopped after reaching a symbolic link.
  1442. //
  1443. const auto STATUS_STOPPED_ON_SYMLINK = (cast(NTSTATUS)0x8000002DL);
  1444. //
  1445. // MessageId: DBG_EXCEPTION_NOT_HANDLED
  1446. //
  1447. // MessageText:
  1448. //
  1449. // Debugger did not handle the exception.
  1450. //
  1451. const auto DBG_EXCEPTION_NOT_HANDLED = (cast(NTSTATUS)0x80010001L) ; // winnt
  1452. //
  1453. // MessageId: STATUS_CLUSTER_NODE_ALREADY_UP
  1454. //
  1455. // MessageText:
  1456. //
  1457. // The cluster node is already up.
  1458. //
  1459. const auto STATUS_CLUSTER_NODE_ALREADY_UP = (cast(NTSTATUS)0x80130001L);
  1460. //
  1461. // MessageId: STATUS_CLUSTER_NODE_ALREADY_DOWN
  1462. //
  1463. // MessageText:
  1464. //
  1465. // The cluster node is already down.
  1466. //
  1467. const auto STATUS_CLUSTER_NODE_ALREADY_DOWN = (cast(NTSTATUS)0x80130002L);
  1468. //
  1469. // MessageId: STATUS_CLUSTER_NETWORK_ALREADY_ONLINE
  1470. //
  1471. // MessageText:
  1472. //
  1473. // The cluster network is already online.
  1474. //
  1475. const auto STATUS_CLUSTER_NETWORK_ALREADY_ONLINE = (cast(NTSTATUS)0x80130003L);
  1476. //
  1477. // MessageId: STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE
  1478. //
  1479. // MessageText:
  1480. //
  1481. // The cluster network is already offline.
  1482. //
  1483. const auto STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE = (cast(NTSTATUS)0x80130004L);
  1484. //
  1485. // MessageId: STATUS_CLUSTER_NODE_ALREADY_MEMBER
  1486. //
  1487. // MessageText:
  1488. //
  1489. // The cluster node is already a member of the cluster.
  1490. //
  1491. const auto STATUS_CLUSTER_NODE_ALREADY_MEMBER = (cast(NTSTATUS)0x80130005L);
  1492. //
  1493. // MessageId: STATUS_FVE_PARTIAL_METADATA
  1494. //
  1495. // MessageText:
  1496. //
  1497. // Volume Metadata read or write is incomplete.
  1498. //
  1499. const auto STATUS_FVE_PARTIAL_METADATA = (cast(NTSTATUS)0x80210001L);
  1500. /////////////////////////////////////////////////////////////////////////
  1501. //
  1502. // Standard Error values
  1503. //
  1504. /////////////////////////////////////////////////////////////////////////
  1505. //
  1506. // MessageId: STATUS_UNSUCCESSFUL
  1507. //
  1508. // MessageText:
  1509. //
  1510. // {Operation Failed}
  1511. // The requested operation was unsuccessful.
  1512. //
  1513. const auto STATUS_UNSUCCESSFUL = (cast(NTSTATUS)0xC0000001L);
  1514. //
  1515. // MessageId: STATUS_NOT_IMPLEMENTED
  1516. //
  1517. // MessageText:
  1518. //
  1519. // {Not Implemented}
  1520. // The requested operation is not implemented.
  1521. //
  1522. const auto STATUS_NOT_IMPLEMENTED = (cast(NTSTATUS)0xC0000002L);
  1523. //
  1524. // MessageId: STATUS_INVALID_INFO_CLASS
  1525. //
  1526. // MessageText:
  1527. //
  1528. // {Invalid Parameter}
  1529. // The specified information class is not a valid information class for the specified object.
  1530. //
  1531. const auto STATUS_INVALID_INFO_CLASS = (cast(NTSTATUS)0xC0000003L) ; // ntsubauth
  1532. //
  1533. // MessageId: STATUS_INFO_LENGTH_MISMATCH
  1534. //
  1535. // MessageText:
  1536. //
  1537. // The specified information record length does not match the length required for the specified information class.
  1538. //
  1539. const auto STATUS_INFO_LENGTH_MISMATCH = (cast(NTSTATUS)0xC0000004L);
  1540. //
  1541. // MessageId: STATUS_ACCESS_VIOLATION
  1542. //
  1543. // MessageText:
  1544. //
  1545. // The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
  1546. //
  1547. //const auto STATUS_ACCESS_VIOLATION = (cast(NTSTATUS)0xC0000005L) ; // winnt
  1548. //
  1549. // MessageId: STATUS_IN_PAGE_ERROR
  1550. //
  1551. // MessageText:
  1552. //
  1553. // The instruction at 0x%08lx referenced memory at 0x%08lx. The required data was not placed into memory because of an I/O error status of 0x%08lx.
  1554. //
  1555. //const auto STATUS_IN_PAGE_ERROR = (cast(NTSTATUS)0xC0000006L) ; // winnt
  1556. //
  1557. // MessageId: STATUS_PAGEFILE_QUOTA
  1558. //
  1559. // MessageText:
  1560. //
  1561. // The pagefile quota for the process has been exhausted.
  1562. //
  1563. const auto STATUS_PAGEFILE_QUOTA = (cast(NTSTATUS)0xC0000007L);
  1564. //
  1565. // MessageId: STATUS_INVALID_HANDLE
  1566. //
  1567. // MessageText:
  1568. //
  1569. // An invalid HANDLE was specified.
  1570. //
  1571. //const auto STATUS_INVALID_HANDLE = (cast(NTSTATUS)0xC0000008L) ; // winnt
  1572. //
  1573. // MessageId: STATUS_BAD_INITIAL_STACK
  1574. //
  1575. // MessageText:
  1576. //
  1577. // An invalid initial stack was specified in a call to NtCreateThread.
  1578. //
  1579. const auto STATUS_BAD_INITIAL_STACK = (cast(NTSTATUS)0xC0000009L);
  1580. //
  1581. // MessageId: STATUS_BAD_INITIAL_PC
  1582. //
  1583. // MessageText:
  1584. //
  1585. // An invalid initial start address was specified in a call to NtCreateThread.
  1586. //
  1587. const auto STATUS_BAD_INITIAL_PC = (cast(NTSTATUS)0xC000000AL);
  1588. //
  1589. // MessageId: STATUS_INVALID_CID
  1590. //
  1591. // MessageText:
  1592. //
  1593. // An invalid Client ID was specified.
  1594. //
  1595. const auto STATUS_INVALID_CID = (cast(NTSTATUS)0xC000000BL);
  1596. //
  1597. // MessageId: STATUS_TIMER_NOT_CANCELED
  1598. //
  1599. // MessageText:
  1600. //
  1601. // An attempt was made to cancel or set a timer that has an associated APC and the subject thread is not the thread that originally set the timer with an associated APC routine.
  1602. //
  1603. const auto STATUS_TIMER_NOT_CANCELED = (cast(NTSTATUS)0xC000000CL);
  1604. //
  1605. // MessageId: STATUS_INVALID_PARAMETER
  1606. //
  1607. // MessageText:
  1608. //
  1609. // An invalid parameter was passed to a service or function.
  1610. //
  1611. const auto STATUS_INVALID_PARAMETER = (cast(NTSTATUS)0xC000000DL);
  1612. //
  1613. // MessageId: STATUS_NO_SUCH_DEVICE
  1614. //
  1615. // MessageText:
  1616. //
  1617. // A device which does not exist was specified.
  1618. //
  1619. const auto STATUS_NO_SUCH_DEVICE = (cast(NTSTATUS)0xC000000EL);
  1620. //
  1621. // MessageId: STATUS_NO_SUCH_FILE
  1622. //
  1623. // MessageText:
  1624. //
  1625. // {File Not Found}
  1626. // The file %hs does not exist.
  1627. //
  1628. const auto STATUS_NO_SUCH_FILE = (cast(NTSTATUS)0xC000000FL);
  1629. //
  1630. // MessageId: STATUS_INVALID_DEVICE_REQUEST
  1631. //
  1632. // MessageText:
  1633. //
  1634. // The specified request is not a valid operation for the target device.
  1635. //
  1636. const auto STATUS_INVALID_DEVICE_REQUEST = (cast(NTSTATUS)0xC0000010L);
  1637. //
  1638. // MessageId: STATUS_END_OF_FILE
  1639. //
  1640. // MessageText:
  1641. //
  1642. // The end-of-file marker has been reached. There is no valid data in the file beyond this marker.
  1643. //
  1644. const auto STATUS_END_OF_FILE = (cast(NTSTATUS)0xC0000011L);
  1645. //
  1646. // MessageId: STATUS_WRONG_VOLUME
  1647. //
  1648. // MessageText:
  1649. //
  1650. // {Wrong Volume}
  1651. // The wrong volume is in the drive.
  1652. // Please insert volume %hs into drive %hs.
  1653. //
  1654. const auto STATUS_WRONG_VOLUME = (cast(NTSTATUS)0xC0000012L);
  1655. //
  1656. // MessageId: STATUS_NO_MEDIA_IN_DEVICE
  1657. //
  1658. // MessageText:
  1659. //
  1660. // {No Disk}
  1661. // There is no disk in the drive.
  1662. // Please insert a disk into drive %hs.
  1663. //
  1664. const auto STATUS_NO_MEDIA_IN_DEVICE = (cast(NTSTATUS)0xC0000013L);
  1665. //
  1666. // MessageId: STATUS_UNRECOGNIZED_MEDIA
  1667. //
  1668. // MessageText:
  1669. //
  1670. // {Unknown Disk Format}
  1671. // The disk in drive %hs is not formatted properly.
  1672. // Please check the disk, and reformat if necessary.
  1673. //
  1674. const auto STATUS_UNRECOGNIZED_MEDIA = (cast(NTSTATUS)0xC0000014L);
  1675. //
  1676. // MessageId: STATUS_NONEXISTENT_SECTOR
  1677. //
  1678. // MessageText:
  1679. //
  1680. // {Sector Not Found}
  1681. // The specified sector does not exist.
  1682. //
  1683. const auto STATUS_NONEXISTENT_SECTOR = (cast(NTSTATUS)0xC0000015L);
  1684. //
  1685. // MessageId: STATUS_MORE_PROCESSING_REQUIRED
  1686. //
  1687. // MessageText:
  1688. //
  1689. // {Still Busy}
  1690. // The specified I/O request packet (IRP) cannot be disposed of because the I/O operation is not complete.
  1691. //
  1692. const auto STATUS_MORE_PROCESSING_REQUIRED = (cast(NTSTATUS)0xC0000016L);
  1693. //
  1694. // MessageId: STATUS_NO_MEMORY
  1695. //
  1696. // MessageText:
  1697. //
  1698. // {Not Enough Quota}
  1699. // Not enough virtual memory or paging file quota is available to complete the specified operation.
  1700. //
  1701. const auto STATUS_NO_MEMORY = (cast(NTSTATUS)0xC0000017L) ; // winnt
  1702. //
  1703. // MessageId: STATUS_CONFLICTING_ADDRESSES
  1704. //
  1705. // MessageText:
  1706. //
  1707. // {Conflicting Address Range}
  1708. // The specified address range conflicts with the address space.
  1709. //
  1710. const auto STATUS_CONFLICTING_ADDRESSES = (cast(NTSTATUS)0xC0000018L);
  1711. //
  1712. // MessageId: STATUS_NOT_MAPPED_VIEW
  1713. //
  1714. // MessageText:
  1715. //
  1716. // Address range to unmap is not a mapped view.
  1717. //
  1718. const auto STATUS_NOT_MAPPED_VIEW = (cast(NTSTATUS)0xC0000019L);
  1719. //
  1720. // MessageId: STATUS_UNABLE_TO_FREE_VM
  1721. //
  1722. // MessageText:
  1723. //
  1724. // Virtual memory cannot be freed.
  1725. //
  1726. const auto STATUS_UNABLE_TO_FREE_VM = (cast(NTSTATUS)0xC000001AL);
  1727. //
  1728. // MessageId: STATUS_UNABLE_TO_DELETE_SECTION
  1729. //
  1730. // MessageText:
  1731. //
  1732. // Specified section cannot be deleted.
  1733. //
  1734. const auto STATUS_UNABLE_TO_DELETE_SECTION = (cast(NTSTATUS)0xC000001BL);
  1735. //
  1736. // MessageId: STATUS_INVALID_SYSTEM_SERVICE
  1737. //
  1738. // MessageText:
  1739. //
  1740. // An invalid system service was specified in a system service call.
  1741. //
  1742. const auto STATUS_INVALID_SYSTEM_SERVICE = (cast(NTSTATUS)0xC000001CL);
  1743. //
  1744. // MessageId: STATUS_ILLEGAL_INSTRUCTION
  1745. //
  1746. // MessageText:
  1747. //
  1748. // {EXCEPTION}
  1749. // Illegal Instruction
  1750. // An attempt was made to execute an illegal instruction.
  1751. //
  1752. //const auto STATUS_ILLEGAL_INSTRUCTION = (cast(NTSTATUS)0xC000001DL) ; // winnt
  1753. //
  1754. // MessageId: STATUS_INVALID_LOCK_SEQUENCE
  1755. //
  1756. // MessageText:
  1757. //
  1758. // {Invalid Lock Sequence}
  1759. // An attempt was made to execute an invalid lock sequence.
  1760. //
  1761. const auto STATUS_INVALID_LOCK_SEQUENCE = (cast(NTSTATUS)0xC000001EL);
  1762. //
  1763. // MessageId: STATUS_INVALID_VIEW_SIZE
  1764. //
  1765. // MessageText:
  1766. //
  1767. // {Invalid Mapping}
  1768. // An attempt was made to create a view for a section which is bigger than the section.
  1769. //
  1770. const auto STATUS_INVALID_VIEW_SIZE = (cast(NTSTATUS)0xC000001FL);
  1771. //
  1772. // MessageId: STATUS_INVALID_FILE_FOR_SECTION
  1773. //
  1774. // MessageText:
  1775. //
  1776. // {Bad File}
  1777. // The attributes of the specified mapping file for a section of memory cannot be read.
  1778. //
  1779. const auto STATUS_INVALID_FILE_FOR_SECTION = (cast(NTSTATUS)0xC0000020L);
  1780. //
  1781. // MessageId: STATUS_ALREADY_COMMITTED…