Source code of Windows XP (NT5)
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.

2533 lines
51 KiB

  1. NTSYSAPI
  2. NTSTATUS
  3. NTAPI
  4. ZwDelayExecution (
  5. IN BOOLEAN Alertable,
  6. IN PLARGE_INTEGER DelayInterval
  7. );
  8. NTSYSAPI
  9. NTSTATUS
  10. NTAPI
  11. ZwQuerySystemEnvironmentValue (
  12. IN PUNICODE_STRING VariableName,
  13. OUT PWSTR VariableValue,
  14. IN USHORT ValueLength,
  15. OUT PUSHORT ReturnLength OPTIONAL
  16. );
  17. NTSYSAPI
  18. NTSTATUS
  19. NTAPI
  20. ZwSetSystemEnvironmentValue (
  21. IN PUNICODE_STRING VariableName,
  22. IN PUNICODE_STRING VariableValue
  23. );
  24. NTSYSAPI
  25. NTSTATUS
  26. NTAPI
  27. ZwQuerySystemEnvironmentValueEx (
  28. IN PUNICODE_STRING VariableName,
  29. IN LPGUID VendorGuid,
  30. OUT PVOID Value,
  31. IN OUT PULONG ValueLength,
  32. OUT PULONG Attributes OPTIONAL
  33. );
  34. NTSYSAPI
  35. NTSTATUS
  36. NTAPI
  37. ZwSetSystemEnvironmentValueEx (
  38. IN PUNICODE_STRING VariableName,
  39. IN LPGUID VendorGuid,
  40. IN PVOID Value,
  41. IN ULONG ValueLength,
  42. IN ULONG Attributes
  43. );
  44. NTSYSAPI
  45. NTSTATUS
  46. NTAPI
  47. ZwEnumerateSystemEnvironmentValuesEx (
  48. IN ULONG InformationClass,
  49. OUT PVOID Buffer,
  50. IN OUT PULONG BufferLength
  51. );
  52. NTSYSAPI
  53. NTSTATUS
  54. NTAPI
  55. ZwAddBootEntry (
  56. IN PBOOT_ENTRY BootEntry,
  57. OUT PULONG Id OPTIONAL
  58. );
  59. NTSYSAPI
  60. NTSTATUS
  61. NTAPI
  62. ZwDeleteBootEntry (
  63. IN ULONG Id
  64. );
  65. NTSYSAPI
  66. NTSTATUS
  67. NTAPI
  68. ZwModifyBootEntry (
  69. IN PBOOT_ENTRY BootEntry
  70. );
  71. NTSYSAPI
  72. NTSTATUS
  73. NTAPI
  74. ZwEnumerateBootEntries (
  75. OUT PVOID Buffer,
  76. IN OUT PULONG BufferLength
  77. );
  78. NTSYSAPI
  79. NTSTATUS
  80. NTAPI
  81. ZwQueryBootEntryOrder (
  82. OUT PULONG Ids,
  83. IN OUT PULONG Count
  84. );
  85. NTSYSAPI
  86. NTSTATUS
  87. NTAPI
  88. ZwSetBootEntryOrder (
  89. IN PULONG Ids,
  90. IN ULONG Count
  91. );
  92. NTSYSAPI
  93. NTSTATUS
  94. NTAPI
  95. ZwQueryBootOptions (
  96. OUT PBOOT_OPTIONS BootOptions,
  97. IN OUT PULONG BootOptionsLength
  98. );
  99. NTSYSAPI
  100. NTSTATUS
  101. NTAPI
  102. ZwSetBootOptions (
  103. IN PBOOT_OPTIONS BootOptions,
  104. IN ULONG FieldsToChange
  105. );
  106. NTSYSAPI
  107. NTSTATUS
  108. NTAPI
  109. ZwTranslateFilePath (
  110. IN PFILE_PATH InputFilePath,
  111. IN ULONG OutputType,
  112. OUT PFILE_PATH OutputFilePath,
  113. IN OUT PULONG OutputFilePathLength
  114. );
  115. NTSYSAPI
  116. NTSTATUS
  117. NTAPI
  118. ZwClearEvent (
  119. IN HANDLE EventHandle
  120. );
  121. NTSYSAPI
  122. NTSTATUS
  123. NTAPI
  124. ZwCreateEvent (
  125. OUT PHANDLE EventHandle,
  126. IN ACCESS_MASK DesiredAccess,
  127. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  128. IN EVENT_TYPE EventType,
  129. IN BOOLEAN InitialState
  130. );
  131. NTSYSAPI
  132. NTSTATUS
  133. NTAPI
  134. ZwOpenEvent (
  135. OUT PHANDLE EventHandle,
  136. IN ACCESS_MASK DesiredAccess,
  137. IN POBJECT_ATTRIBUTES ObjectAttributes
  138. );
  139. NTSYSAPI
  140. NTSTATUS
  141. NTAPI
  142. ZwPulseEvent (
  143. IN HANDLE EventHandle,
  144. OUT PLONG PreviousState OPTIONAL
  145. );
  146. NTSYSAPI
  147. NTSTATUS
  148. NTAPI
  149. ZwQueryEvent (
  150. IN HANDLE EventHandle,
  151. IN EVENT_INFORMATION_CLASS EventInformationClass,
  152. OUT PVOID EventInformation,
  153. IN ULONG EventInformationLength,
  154. OUT PULONG ReturnLength OPTIONAL
  155. );
  156. NTSYSAPI
  157. NTSTATUS
  158. NTAPI
  159. ZwResetEvent (
  160. IN HANDLE EventHandle,
  161. OUT PLONG PreviousState OPTIONAL
  162. );
  163. NTSYSAPI
  164. NTSTATUS
  165. NTAPI
  166. ZwSetEvent (
  167. IN HANDLE EventHandle,
  168. OUT PLONG PreviousState OPTIONAL
  169. );
  170. NTSYSAPI
  171. NTSTATUS
  172. NTAPI
  173. ZwSetEventBoostPriority (
  174. IN HANDLE EventHandle
  175. );
  176. NTSYSAPI
  177. NTSTATUS
  178. NTAPI
  179. ZwCreateEventPair (
  180. OUT PHANDLE EventPairHandle,
  181. IN ACCESS_MASK DesiredAccess,
  182. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL
  183. );
  184. NTSYSAPI
  185. NTSTATUS
  186. NTAPI
  187. ZwOpenEventPair(
  188. OUT PHANDLE EventPairHandle,
  189. IN ACCESS_MASK DesiredAccess,
  190. IN POBJECT_ATTRIBUTES ObjectAttributes
  191. );
  192. NTSYSAPI
  193. NTSTATUS
  194. NTAPI
  195. ZwWaitLowEventPair(
  196. IN HANDLE EventPairHandle
  197. );
  198. NTSYSAPI
  199. NTSTATUS
  200. NTAPI
  201. ZwWaitHighEventPair(
  202. IN HANDLE EventPairHandle
  203. );
  204. NTSYSAPI
  205. NTSTATUS
  206. NTAPI
  207. ZwSetLowWaitHighEventPair(
  208. IN HANDLE EventPairHandle
  209. );
  210. NTSYSAPI
  211. NTSTATUS
  212. NTAPI
  213. ZwSetHighWaitLowEventPair(
  214. IN HANDLE EventPairHandle
  215. );
  216. NTSYSAPI
  217. NTSTATUS
  218. NTAPI
  219. ZwSetLowEventPair(
  220. IN HANDLE EventPairHandle
  221. );
  222. NTSYSAPI
  223. NTSTATUS
  224. NTAPI
  225. ZwSetHighEventPair(
  226. IN HANDLE EventPairHandle
  227. );
  228. NTSYSAPI
  229. NTSTATUS
  230. NTAPI
  231. ZwCreateMutant (
  232. OUT PHANDLE MutantHandle,
  233. IN ACCESS_MASK DesiredAccess,
  234. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  235. IN BOOLEAN InitialOwner
  236. );
  237. NTSYSAPI
  238. NTSTATUS
  239. NTAPI
  240. ZwOpenMutant (
  241. OUT PHANDLE MutantHandle,
  242. IN ACCESS_MASK DesiredAccess,
  243. IN POBJECT_ATTRIBUTES ObjectAttributes
  244. );
  245. NTSYSAPI
  246. NTSTATUS
  247. NTAPI
  248. ZwQueryMutant (
  249. IN HANDLE MutantHandle,
  250. IN MUTANT_INFORMATION_CLASS MutantInformationClass,
  251. OUT PVOID MutantInformation,
  252. IN ULONG MutantInformationLength,
  253. OUT PULONG ReturnLength OPTIONAL
  254. );
  255. NTSYSAPI
  256. NTSTATUS
  257. NTAPI
  258. ZwReleaseMutant (
  259. IN HANDLE MutantHandle,
  260. OUT PLONG PreviousCount OPTIONAL
  261. );
  262. NTSYSAPI
  263. NTSTATUS
  264. NTAPI
  265. ZwCreateSemaphore (
  266. OUT PHANDLE SemaphoreHandle,
  267. IN ACCESS_MASK DesiredAccess,
  268. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  269. IN LONG InitialCount,
  270. IN LONG MaximumCount
  271. );
  272. NTSYSAPI
  273. NTSTATUS
  274. NTAPI
  275. ZwOpenSemaphore(
  276. OUT PHANDLE SemaphoreHandle,
  277. IN ACCESS_MASK DesiredAccess,
  278. IN POBJECT_ATTRIBUTES ObjectAttributes
  279. );
  280. NTSYSAPI
  281. NTSTATUS
  282. NTAPI
  283. ZwQuerySemaphore (
  284. IN HANDLE SemaphoreHandle,
  285. IN SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
  286. OUT PVOID SemaphoreInformation,
  287. IN ULONG SemaphoreInformationLength,
  288. OUT PULONG ReturnLength OPTIONAL
  289. );
  290. NTSYSAPI
  291. NTSTATUS
  292. NTAPI
  293. ZwReleaseSemaphore(
  294. IN HANDLE SemaphoreHandle,
  295. IN LONG ReleaseCount,
  296. OUT PLONG PreviousCount OPTIONAL
  297. );
  298. NTSYSAPI
  299. NTSTATUS
  300. NTAPI
  301. ZwCreateTimer (
  302. OUT PHANDLE TimerHandle,
  303. IN ACCESS_MASK DesiredAccess,
  304. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  305. IN TIMER_TYPE TimerType
  306. );
  307. NTSYSAPI
  308. NTSTATUS
  309. NTAPI
  310. ZwOpenTimer (
  311. OUT PHANDLE TimerHandle,
  312. IN ACCESS_MASK DesiredAccess,
  313. IN POBJECT_ATTRIBUTES ObjectAttributes
  314. );
  315. NTSYSAPI
  316. NTSTATUS
  317. NTAPI
  318. ZwCancelTimer (
  319. IN HANDLE TimerHandle,
  320. OUT PBOOLEAN CurrentState OPTIONAL
  321. );
  322. NTSYSAPI
  323. NTSTATUS
  324. NTAPI
  325. ZwQueryTimer (
  326. IN HANDLE TimerHandle,
  327. IN TIMER_INFORMATION_CLASS TimerInformationClass,
  328. OUT PVOID TimerInformation,
  329. IN ULONG TimerInformationLength,
  330. OUT PULONG ReturnLength OPTIONAL
  331. );
  332. NTSYSAPI
  333. NTSTATUS
  334. NTAPI
  335. ZwSetTimer (
  336. IN HANDLE TimerHandle,
  337. IN PLARGE_INTEGER DueTime,
  338. IN PTIMER_APC_ROUTINE TimerApcRoutine OPTIONAL,
  339. IN PVOID TimerContext OPTIONAL,
  340. IN BOOLEAN ResumeTimer,
  341. IN LONG Period OPTIONAL,
  342. OUT PBOOLEAN PreviousState OPTIONAL
  343. );
  344. NTSYSAPI
  345. NTSTATUS
  346. NTAPI
  347. ZwQuerySystemTime (
  348. OUT PLARGE_INTEGER SystemTime
  349. );
  350. NTSYSAPI
  351. NTSTATUS
  352. NTAPI
  353. ZwSetSystemTime (
  354. IN PLARGE_INTEGER SystemTime,
  355. OUT PLARGE_INTEGER PreviousTime OPTIONAL
  356. );
  357. NTSYSAPI
  358. NTSTATUS
  359. NTAPI
  360. ZwQueryTimerResolution (
  361. OUT PULONG MaximumTime,
  362. OUT PULONG MinimumTime,
  363. OUT PULONG CurrentTime
  364. );
  365. NTSYSAPI
  366. NTSTATUS
  367. NTAPI
  368. ZwSetTimerResolution (
  369. IN ULONG DesiredTime,
  370. IN BOOLEAN SetResolution,
  371. OUT PULONG ActualTime
  372. );
  373. NTSYSAPI
  374. NTSTATUS
  375. NTAPI
  376. ZwAllocateLocallyUniqueId(
  377. OUT PLUID Luid
  378. );
  379. NTSYSAPI
  380. NTSTATUS
  381. NTAPI
  382. ZwSetUuidSeed (
  383. IN PCHAR Seed
  384. );
  385. NTSYSAPI
  386. NTSTATUS
  387. NTAPI
  388. ZwAllocateUuids(
  389. OUT PULARGE_INTEGER Time,
  390. OUT PULONG Range,
  391. OUT PULONG Sequence,
  392. OUT PCHAR Seed
  393. );
  394. NTSYSAPI
  395. NTSTATUS
  396. NTAPI
  397. ZwCreateProfile (
  398. OUT PHANDLE ProfileHandle,
  399. IN HANDLE Process OPTIONAL,
  400. IN PVOID ProfileBase,
  401. IN SIZE_T ProfileSize,
  402. IN ULONG BucketSize,
  403. IN PULONG Buffer,
  404. IN ULONG BufferSize,
  405. IN KPROFILE_SOURCE ProfileSource,
  406. IN KAFFINITY Affinity
  407. );
  408. NTSYSAPI
  409. NTSTATUS
  410. NTAPI
  411. ZwStartProfile (
  412. IN HANDLE ProfileHandle
  413. );
  414. NTSYSAPI
  415. NTSTATUS
  416. NTAPI
  417. ZwStopProfile (
  418. IN HANDLE ProfileHandle
  419. );
  420. NTSYSAPI
  421. NTSTATUS
  422. NTAPI
  423. ZwSetIntervalProfile (
  424. IN ULONG Interval,
  425. IN KPROFILE_SOURCE Source
  426. );
  427. NTSYSAPI
  428. NTSTATUS
  429. NTAPI
  430. ZwQueryIntervalProfile (
  431. IN KPROFILE_SOURCE ProfileSource,
  432. OUT PULONG Interval
  433. );
  434. NTSYSAPI
  435. NTSTATUS
  436. NTAPI
  437. ZwQueryPerformanceCounter (
  438. OUT PLARGE_INTEGER PerformanceCounter,
  439. OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL
  440. );
  441. NTSYSAPI
  442. NTSTATUS
  443. NTAPI
  444. ZwCreateKeyedEvent (
  445. OUT PHANDLE KeyedEventHandle,
  446. IN ACCESS_MASK DesiredAccess,
  447. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  448. IN ULONG Flags
  449. );
  450. NTSYSAPI
  451. NTSTATUS
  452. NTAPI
  453. ZwOpenKeyedEvent (
  454. OUT PHANDLE KeyedEventHandle,
  455. IN ACCESS_MASK DesiredAccess,
  456. IN POBJECT_ATTRIBUTES ObjectAttributes
  457. );
  458. NTSYSAPI
  459. NTSTATUS
  460. NTAPI
  461. ZwReleaseKeyedEvent (
  462. IN HANDLE KeyedEventHandle,
  463. IN PVOID KeyValue,
  464. IN BOOLEAN Alertable,
  465. IN PLARGE_INTEGER Timeout OPTIONAL
  466. );
  467. NTSYSAPI
  468. NTSTATUS
  469. NTAPI
  470. ZwWaitForKeyedEvent (
  471. IN HANDLE KeyedEventHandle,
  472. IN PVOID KeyValue,
  473. IN BOOLEAN Alertable,
  474. IN PLARGE_INTEGER Timeout OPTIONAL
  475. );
  476. NTSYSAPI
  477. NTSTATUS
  478. NTAPI
  479. ZwQuerySystemInformation (
  480. IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
  481. OUT PVOID SystemInformation,
  482. IN ULONG SystemInformationLength,
  483. OUT PULONG ReturnLength OPTIONAL
  484. );
  485. NTSYSAPI
  486. NTSTATUS
  487. NTAPI
  488. ZwSetSystemInformation (
  489. IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
  490. IN PVOID SystemInformation,
  491. IN ULONG SystemInformationLength
  492. );
  493. NTSYSAPI
  494. NTSTATUS
  495. NTAPI
  496. ZwSystemDebugControl (
  497. IN SYSDBG_COMMAND Command,
  498. IN PVOID InputBuffer,
  499. IN ULONG InputBufferLength,
  500. OUT PVOID OutputBuffer,
  501. IN ULONG OutputBufferLength,
  502. OUT PULONG ReturnLength
  503. );
  504. NTSYSAPI
  505. NTSTATUS
  506. NTAPI
  507. ZwRaiseHardError(
  508. IN NTSTATUS ErrorStatus,
  509. IN ULONG NumberOfParameters,
  510. IN ULONG UnicodeStringParameterMask,
  511. IN PULONG_PTR Parameters,
  512. IN ULONG ValidResponseOptions,
  513. OUT PULONG Response
  514. );
  515. NTSYSAPI
  516. NTSTATUS
  517. NTAPI
  518. ZwQueryDefaultLocale(
  519. IN BOOLEAN UserProfile,
  520. OUT PLCID DefaultLocaleId
  521. );
  522. NTSYSAPI
  523. NTSTATUS
  524. NTAPI
  525. ZwSetDefaultLocale(
  526. IN BOOLEAN UserProfile,
  527. IN LCID DefaultLocaleId
  528. );
  529. NTSYSAPI
  530. NTSTATUS
  531. NTAPI
  532. ZwQueryInstallUILanguage(
  533. OUT LANGID *InstallUILanguageId
  534. );
  535. NTSYSAPI
  536. NTSTATUS
  537. NTAPI
  538. ZwQueryDefaultUILanguage(
  539. OUT LANGID *DefaultUILanguageId
  540. );
  541. NTSYSAPI
  542. NTSTATUS
  543. NTAPI
  544. ZwSetDefaultUILanguage(
  545. IN LANGID DefaultUILanguageId
  546. );
  547. NTSYSAPI
  548. NTSTATUS
  549. NTAPI
  550. ZwSetDefaultHardErrorPort(
  551. IN HANDLE DefaultHardErrorPort
  552. );
  553. NTSYSAPI
  554. NTSTATUS
  555. NTAPI
  556. ZwShutdownSystem(
  557. IN SHUTDOWN_ACTION Action
  558. );
  559. NTSYSAPI
  560. NTSTATUS
  561. NTAPI
  562. ZwDisplayString(
  563. IN PUNICODE_STRING String
  564. );
  565. NTSYSAPI
  566. NTSTATUS
  567. NTAPI
  568. ZwAddAtom(
  569. IN PWSTR AtomName OPTIONAL,
  570. IN ULONG Length OPTIONAL,
  571. OUT PRTL_ATOM Atom OPTIONAL
  572. );
  573. NTSYSAPI
  574. NTSTATUS
  575. NTAPI
  576. ZwFindAtom(
  577. IN PWSTR AtomName,
  578. IN ULONG Length,
  579. OUT PRTL_ATOM Atom OPTIONAL
  580. );
  581. NTSYSAPI
  582. NTSTATUS
  583. NTAPI
  584. ZwDeleteAtom(
  585. IN RTL_ATOM Atom
  586. );
  587. NTSYSAPI
  588. NTSTATUS
  589. NTAPI
  590. ZwQueryInformationAtom(
  591. IN RTL_ATOM Atom,
  592. IN ATOM_INFORMATION_CLASS AtomInformationClass,
  593. OUT PVOID AtomInformation,
  594. IN ULONG AtomInformationLength,
  595. OUT PULONG ReturnLength OPTIONAL
  596. );
  597. NTSYSAPI
  598. NTSTATUS
  599. NTAPI
  600. ZwCancelIoFile(
  601. IN HANDLE FileHandle,
  602. OUT PIO_STATUS_BLOCK IoStatusBlock
  603. );
  604. NTSYSAPI
  605. NTSTATUS
  606. NTAPI
  607. ZwCreateNamedPipeFile(
  608. OUT PHANDLE FileHandle,
  609. IN ULONG DesiredAccess,
  610. IN POBJECT_ATTRIBUTES ObjectAttributes,
  611. OUT PIO_STATUS_BLOCK IoStatusBlock,
  612. IN ULONG ShareAccess,
  613. IN ULONG CreateDisposition,
  614. IN ULONG CreateOptions,
  615. IN ULONG NamedPipeType,
  616. IN ULONG ReadMode,
  617. IN ULONG CompletionMode,
  618. IN ULONG MaximumInstances,
  619. IN ULONG InboundQuota,
  620. IN ULONG OutboundQuota,
  621. IN PLARGE_INTEGER DefaultTimeout OPTIONAL
  622. );
  623. NTSYSAPI
  624. NTSTATUS
  625. NTAPI
  626. ZwCreateMailslotFile(
  627. OUT PHANDLE FileHandle,
  628. IN ULONG DesiredAccess,
  629. IN POBJECT_ATTRIBUTES ObjectAttributes,
  630. OUT PIO_STATUS_BLOCK IoStatusBlock,
  631. ULONG CreateOptions,
  632. IN ULONG MailslotQuota,
  633. IN ULONG MaximumMessageSize,
  634. IN PLARGE_INTEGER ReadTimeout
  635. );
  636. NTSYSAPI
  637. NTSTATUS
  638. NTAPI
  639. ZwDeleteFile(
  640. IN POBJECT_ATTRIBUTES ObjectAttributes
  641. );
  642. NTSYSAPI
  643. NTSTATUS
  644. NTAPI
  645. ZwFlushBuffersFile(
  646. IN HANDLE FileHandle,
  647. OUT PIO_STATUS_BLOCK IoStatusBlock
  648. );
  649. NTSYSAPI
  650. NTSTATUS
  651. NTAPI
  652. ZwNotifyChangeDirectoryFile(
  653. IN HANDLE FileHandle,
  654. IN HANDLE Event OPTIONAL,
  655. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  656. IN PVOID ApcContext OPTIONAL,
  657. OUT PIO_STATUS_BLOCK IoStatusBlock,
  658. OUT PVOID Buffer,
  659. IN ULONG Length,
  660. IN ULONG CompletionFilter,
  661. IN BOOLEAN WatchTree
  662. );
  663. NTSYSAPI
  664. NTSTATUS
  665. NTAPI
  666. ZwQueryAttributesFile(
  667. IN POBJECT_ATTRIBUTES ObjectAttributes,
  668. OUT PFILE_BASIC_INFORMATION FileInformation
  669. );
  670. NTSYSAPI
  671. NTSTATUS
  672. NTAPI
  673. ZwQueryFullAttributesFile(
  674. IN POBJECT_ATTRIBUTES ObjectAttributes,
  675. OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation
  676. );
  677. NTSYSAPI
  678. NTSTATUS
  679. NTAPI
  680. ZwQueryEaFile(
  681. IN HANDLE FileHandle,
  682. OUT PIO_STATUS_BLOCK IoStatusBlock,
  683. OUT PVOID Buffer,
  684. IN ULONG Length,
  685. IN BOOLEAN ReturnSingleEntry,
  686. IN PVOID EaList OPTIONAL,
  687. IN ULONG EaListLength,
  688. IN PULONG EaIndex OPTIONAL,
  689. IN BOOLEAN RestartScan
  690. );
  691. NTSYSAPI
  692. NTSTATUS
  693. NTAPI
  694. ZwCreateFile(
  695. OUT PHANDLE FileHandle,
  696. IN ACCESS_MASK DesiredAccess,
  697. IN POBJECT_ATTRIBUTES ObjectAttributes,
  698. OUT PIO_STATUS_BLOCK IoStatusBlock,
  699. IN PLARGE_INTEGER AllocationSize OPTIONAL,
  700. IN ULONG FileAttributes,
  701. IN ULONG ShareAccess,
  702. IN ULONG CreateDisposition,
  703. IN ULONG CreateOptions,
  704. IN PVOID EaBuffer OPTIONAL,
  705. IN ULONG EaLength
  706. );
  707. NTSYSAPI
  708. NTSTATUS
  709. NTAPI
  710. ZwDeviceIoControlFile(
  711. IN HANDLE FileHandle,
  712. IN HANDLE Event OPTIONAL,
  713. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  714. IN PVOID ApcContext OPTIONAL,
  715. OUT PIO_STATUS_BLOCK IoStatusBlock,
  716. IN ULONG IoControlCode,
  717. IN PVOID InputBuffer OPTIONAL,
  718. IN ULONG InputBufferLength,
  719. OUT PVOID OutputBuffer OPTIONAL,
  720. IN ULONG OutputBufferLength
  721. );
  722. NTSYSAPI
  723. NTSTATUS
  724. NTAPI
  725. ZwFsControlFile(
  726. IN HANDLE FileHandle,
  727. IN HANDLE Event OPTIONAL,
  728. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  729. IN PVOID ApcContext OPTIONAL,
  730. OUT PIO_STATUS_BLOCK IoStatusBlock,
  731. IN ULONG FsControlCode,
  732. IN PVOID InputBuffer OPTIONAL,
  733. IN ULONG InputBufferLength,
  734. OUT PVOID OutputBuffer OPTIONAL,
  735. IN ULONG OutputBufferLength
  736. );
  737. NTSYSAPI
  738. NTSTATUS
  739. NTAPI
  740. ZwLockFile(
  741. IN HANDLE FileHandle,
  742. IN HANDLE Event OPTIONAL,
  743. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  744. IN PVOID ApcContext OPTIONAL,
  745. OUT PIO_STATUS_BLOCK IoStatusBlock,
  746. IN PLARGE_INTEGER ByteOffset,
  747. IN PLARGE_INTEGER Length,
  748. IN ULONG Key,
  749. IN BOOLEAN FailImmediately,
  750. IN BOOLEAN ExclusiveLock
  751. );
  752. NTSYSAPI
  753. NTSTATUS
  754. NTAPI
  755. ZwOpenFile(
  756. OUT PHANDLE FileHandle,
  757. IN ACCESS_MASK DesiredAccess,
  758. IN POBJECT_ATTRIBUTES ObjectAttributes,
  759. OUT PIO_STATUS_BLOCK IoStatusBlock,
  760. IN ULONG ShareAccess,
  761. IN ULONG OpenOptions
  762. );
  763. NTSYSAPI
  764. NTSTATUS
  765. NTAPI
  766. ZwQueryDirectoryFile(
  767. IN HANDLE FileHandle,
  768. IN HANDLE Event OPTIONAL,
  769. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  770. IN PVOID ApcContext OPTIONAL,
  771. OUT PIO_STATUS_BLOCK IoStatusBlock,
  772. OUT PVOID FileInformation,
  773. IN ULONG Length,
  774. IN FILE_INFORMATION_CLASS FileInformationClass,
  775. IN BOOLEAN ReturnSingleEntry,
  776. IN PUNICODE_STRING FileName OPTIONAL,
  777. IN BOOLEAN RestartScan
  778. );
  779. NTSYSAPI
  780. NTSTATUS
  781. NTAPI
  782. ZwQueryInformationFile(
  783. IN HANDLE FileHandle,
  784. OUT PIO_STATUS_BLOCK IoStatusBlock,
  785. OUT PVOID FileInformation,
  786. IN ULONG Length,
  787. IN FILE_INFORMATION_CLASS FileInformationClass
  788. );
  789. NTSYSAPI
  790. NTSTATUS
  791. NTAPI
  792. ZwQueryQuotaInformationFile(
  793. IN HANDLE FileHandle,
  794. OUT PIO_STATUS_BLOCK IoStatusBlock,
  795. OUT PVOID Buffer,
  796. IN ULONG Length,
  797. IN BOOLEAN ReturnSingleEntry,
  798. IN PVOID SidList OPTIONAL,
  799. IN ULONG SidListLength,
  800. IN PSID StartSid OPTIONAL,
  801. IN BOOLEAN RestartScan
  802. );
  803. NTSYSAPI
  804. NTSTATUS
  805. NTAPI
  806. ZwQueryVolumeInformationFile(
  807. IN HANDLE FileHandle,
  808. OUT PIO_STATUS_BLOCK IoStatusBlock,
  809. OUT PVOID FsInformation,
  810. IN ULONG Length,
  811. IN FS_INFORMATION_CLASS FsInformationClass
  812. );
  813. NTSYSAPI
  814. NTSTATUS
  815. NTAPI
  816. ZwReadFile(
  817. IN HANDLE FileHandle,
  818. IN HANDLE Event OPTIONAL,
  819. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  820. IN PVOID ApcContext OPTIONAL,
  821. OUT PIO_STATUS_BLOCK IoStatusBlock,
  822. OUT PVOID Buffer,
  823. IN ULONG Length,
  824. IN PLARGE_INTEGER ByteOffset OPTIONAL,
  825. IN PULONG Key OPTIONAL
  826. );
  827. NTSYSAPI
  828. NTSTATUS
  829. NTAPI
  830. ZwSetInformationFile(
  831. IN HANDLE FileHandle,
  832. OUT PIO_STATUS_BLOCK IoStatusBlock,
  833. IN PVOID FileInformation,
  834. IN ULONG Length,
  835. IN FILE_INFORMATION_CLASS FileInformationClass
  836. );
  837. NTSYSAPI
  838. NTSTATUS
  839. NTAPI
  840. ZwSetQuotaInformationFile(
  841. IN HANDLE FileHandle,
  842. OUT PIO_STATUS_BLOCK IoStatusBlock,
  843. IN PVOID Buffer,
  844. IN ULONG Length
  845. );
  846. NTSYSAPI
  847. NTSTATUS
  848. NTAPI
  849. ZwSetVolumeInformationFile(
  850. IN HANDLE FileHandle,
  851. OUT PIO_STATUS_BLOCK IoStatusBlock,
  852. IN PVOID FsInformation,
  853. IN ULONG Length,
  854. IN FS_INFORMATION_CLASS FsInformationClass
  855. );
  856. NTSYSAPI
  857. NTSTATUS
  858. NTAPI
  859. ZwWriteFile(
  860. IN HANDLE FileHandle,
  861. IN HANDLE Event OPTIONAL,
  862. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  863. IN PVOID ApcContext OPTIONAL,
  864. OUT PIO_STATUS_BLOCK IoStatusBlock,
  865. IN PVOID Buffer,
  866. IN ULONG Length,
  867. IN PLARGE_INTEGER ByteOffset OPTIONAL,
  868. IN PULONG Key OPTIONAL
  869. );
  870. NTSYSAPI
  871. NTSTATUS
  872. NTAPI
  873. ZwUnlockFile(
  874. IN HANDLE FileHandle,
  875. OUT PIO_STATUS_BLOCK IoStatusBlock,
  876. IN PLARGE_INTEGER ByteOffset,
  877. IN PLARGE_INTEGER Length,
  878. IN ULONG Key
  879. );
  880. NTSYSAPI
  881. NTSTATUS
  882. NTAPI
  883. ZwReadFile64(
  884. IN HANDLE FileHandle,
  885. IN HANDLE Event OPTIONAL,
  886. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  887. IN PVOID ApcContext OPTIONAL,
  888. OUT PIO_STATUS_BLOCK IoStatusBlock,
  889. OUT PVOID64 *Buffer,
  890. IN ULONG Length,
  891. IN PLARGE_INTEGER ByteOffset OPTIONAL,
  892. IN PULONG Key OPTIONAL
  893. );
  894. NTSYSAPI
  895. NTSTATUS
  896. NTAPI
  897. ZwReadFileScatter(
  898. IN HANDLE FileHandle,
  899. IN HANDLE Event OPTIONAL,
  900. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  901. IN PVOID ApcContext OPTIONAL,
  902. OUT PIO_STATUS_BLOCK IoStatusBlock,
  903. IN PFILE_SEGMENT_ELEMENT SegmentArray,
  904. IN ULONG Length,
  905. IN PLARGE_INTEGER ByteOffset OPTIONAL,
  906. IN PULONG Key OPTIONAL
  907. );
  908. NTSYSAPI
  909. NTSTATUS
  910. NTAPI
  911. ZwSetEaFile(
  912. IN HANDLE FileHandle,
  913. OUT PIO_STATUS_BLOCK IoStatusBlock,
  914. IN PVOID Buffer,
  915. IN ULONG Length
  916. );
  917. NTSYSAPI
  918. NTSTATUS
  919. NTAPI
  920. ZwWriteFile64(
  921. IN HANDLE FileHandle,
  922. IN HANDLE Event OPTIONAL,
  923. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  924. IN PVOID ApcContext OPTIONAL,
  925. OUT PIO_STATUS_BLOCK IoStatusBlock,
  926. IN PVOID64 *Buffer,
  927. IN ULONG Length,
  928. IN PLARGE_INTEGER ByteOffset OPTIONAL,
  929. IN PULONG Key OPTIONAL
  930. );
  931. NTSYSAPI
  932. NTSTATUS
  933. NTAPI
  934. ZwWriteFileGather(
  935. IN HANDLE FileHandle,
  936. IN HANDLE Event OPTIONAL,
  937. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  938. IN PVOID ApcContext OPTIONAL,
  939. OUT PIO_STATUS_BLOCK IoStatusBlock,
  940. IN PFILE_SEGMENT_ELEMENT SegmentArray,
  941. IN ULONG Length,
  942. IN PLARGE_INTEGER ByteOffset OPTIONAL,
  943. IN PULONG Key OPTIONAL
  944. );
  945. NTSYSAPI
  946. NTSTATUS
  947. NTAPI
  948. ZwLoadDriver(
  949. IN PUNICODE_STRING DriverServiceName
  950. );
  951. NTSYSAPI
  952. NTSTATUS
  953. NTAPI
  954. ZwUnloadDriver(
  955. IN PUNICODE_STRING DriverServiceName
  956. );
  957. NTSYSAPI
  958. NTSTATUS
  959. NTAPI
  960. ZwCreateIoCompletion (
  961. OUT PHANDLE IoCompletionHandle,
  962. IN ACCESS_MASK DesiredAccess,
  963. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  964. IN ULONG Count OPTIONAL
  965. );
  966. NTSYSAPI
  967. NTSTATUS
  968. NTAPI
  969. ZwOpenIoCompletion (
  970. OUT PHANDLE IoCompletionHandle,
  971. IN ACCESS_MASK DesiredAccess,
  972. IN POBJECT_ATTRIBUTES ObjectAttributes
  973. );
  974. NTSYSAPI
  975. NTSTATUS
  976. NTAPI
  977. ZwQueryIoCompletion (
  978. IN HANDLE IoCompletionHandle,
  979. IN IO_COMPLETION_INFORMATION_CLASS IoCompletionInformationClass,
  980. OUT PVOID IoCompletionInformation,
  981. IN ULONG IoCompletionInformationLength,
  982. OUT PULONG ReturnLength OPTIONAL
  983. );
  984. NTSYSAPI
  985. NTSTATUS
  986. NTAPI
  987. ZwSetIoCompletion (
  988. IN HANDLE IoCompletionHandle,
  989. IN PVOID KeyContext,
  990. IN PVOID ApcContext,
  991. IN NTSTATUS IoStatus,
  992. IN ULONG_PTR IoStatusInformation
  993. );
  994. NTSYSAPI
  995. NTSTATUS
  996. NTAPI
  997. ZwRemoveIoCompletion (
  998. IN HANDLE IoCompletionHandle,
  999. OUT PVOID *KeyContext,
  1000. OUT PVOID *ApcContext,
  1001. OUT PIO_STATUS_BLOCK IoStatusBlock,
  1002. IN PLARGE_INTEGER Timeout
  1003. );
  1004. NTSYSAPI
  1005. NTSTATUS
  1006. NTAPI
  1007. ZwCallbackReturn (
  1008. IN PVOID OutputBuffer OPTIONAL,
  1009. IN ULONG OutputLength,
  1010. IN NTSTATUS Status
  1011. );
  1012. NTSYSAPI
  1013. NTSTATUS
  1014. NTAPI
  1015. ZwQueryDebugFilterState (
  1016. IN ULONG ComponentId,
  1017. IN ULONG Level
  1018. );
  1019. NTSYSAPI
  1020. NTSTATUS
  1021. NTAPI
  1022. ZwSetDebugFilterState (
  1023. IN ULONG ComponentId,
  1024. IN ULONG Level,
  1025. IN BOOLEAN State
  1026. );
  1027. NTSYSAPI
  1028. NTSTATUS
  1029. NTAPI
  1030. ZwW32Call (
  1031. IN ULONG ApiNumber,
  1032. IN PVOID InputBuffer,
  1033. IN ULONG InputLength,
  1034. OUT PVOID *OutputBuffer,
  1035. OUT PULONG OutputLength
  1036. );
  1037. NTSYSAPI
  1038. NTSTATUS
  1039. NTAPI
  1040. ZwYieldExecution (
  1041. VOID
  1042. );
  1043. NTSYSAPI
  1044. NTSTATUS
  1045. NTAPI
  1046. ZwCreatePort(
  1047. OUT PHANDLE PortHandle,
  1048. IN POBJECT_ATTRIBUTES ObjectAttributes,
  1049. IN ULONG MaxConnectionInfoLength,
  1050. IN ULONG MaxMessageLength,
  1051. IN ULONG MaxPoolUsage
  1052. );
  1053. NTSYSAPI
  1054. NTSTATUS
  1055. NTAPI
  1056. ZwCreateWaitablePort(
  1057. OUT PHANDLE PortHandle,
  1058. IN POBJECT_ATTRIBUTES ObjectAttributes,
  1059. IN ULONG MaxConnectionInfoLength,
  1060. IN ULONG MaxMessageLength,
  1061. IN ULONG MaxPoolUsage
  1062. );
  1063. NTSYSAPI
  1064. NTSTATUS
  1065. NTAPI
  1066. ZwConnectPort(
  1067. OUT PHANDLE PortHandle,
  1068. IN PUNICODE_STRING PortName,
  1069. IN PSECURITY_QUALITY_OF_SERVICE SecurityQos,
  1070. IN OUT PPORT_VIEW ClientView OPTIONAL,
  1071. IN OUT PREMOTE_PORT_VIEW ServerView OPTIONAL,
  1072. OUT PULONG MaxMessageLength OPTIONAL,
  1073. IN OUT PVOID ConnectionInformation OPTIONAL,
  1074. IN OUT PULONG ConnectionInformationLength OPTIONAL
  1075. );
  1076. NTSYSAPI
  1077. NTSTATUS
  1078. NTAPI
  1079. ZwSecureConnectPort(
  1080. OUT PHANDLE PortHandle,
  1081. IN PUNICODE_STRING PortName,
  1082. IN PSECURITY_QUALITY_OF_SERVICE SecurityQos,
  1083. IN OUT PPORT_VIEW ClientView OPTIONAL,
  1084. IN PSID RequiredServerSid,
  1085. IN OUT PREMOTE_PORT_VIEW ServerView OPTIONAL,
  1086. OUT PULONG MaxMessageLength OPTIONAL,
  1087. IN OUT PVOID ConnectionInformation OPTIONAL,
  1088. IN OUT PULONG ConnectionInformationLength OPTIONAL
  1089. );
  1090. NTSYSAPI
  1091. NTSTATUS
  1092. NTAPI
  1093. ZwListenPort(
  1094. IN HANDLE PortHandle,
  1095. OUT PPORT_MESSAGE ConnectionRequest
  1096. );
  1097. NTSYSAPI
  1098. NTSTATUS
  1099. NTAPI
  1100. ZwAcceptConnectPort(
  1101. OUT PHANDLE PortHandle,
  1102. IN PVOID PortContext,
  1103. IN PPORT_MESSAGE ConnectionRequest,
  1104. IN BOOLEAN AcceptConnection,
  1105. IN OUT PPORT_VIEW ServerView OPTIONAL,
  1106. OUT PREMOTE_PORT_VIEW ClientView OPTIONAL
  1107. );
  1108. NTSYSAPI
  1109. NTSTATUS
  1110. NTAPI
  1111. ZwCompleteConnectPort(
  1112. IN HANDLE PortHandle
  1113. );
  1114. NTSYSAPI
  1115. NTSTATUS
  1116. NTAPI
  1117. ZwRequestPort(
  1118. IN HANDLE PortHandle,
  1119. IN PPORT_MESSAGE RequestMessage
  1120. );
  1121. NTSYSAPI
  1122. NTSTATUS
  1123. NTAPI
  1124. ZwRequestWaitReplyPort(
  1125. IN HANDLE PortHandle,
  1126. IN PPORT_MESSAGE RequestMessage,
  1127. OUT PPORT_MESSAGE ReplyMessage
  1128. );
  1129. NTSYSAPI
  1130. NTSTATUS
  1131. NTAPI
  1132. ZwReplyPort(
  1133. IN HANDLE PortHandle,
  1134. IN PPORT_MESSAGE ReplyMessage
  1135. );
  1136. NTSYSAPI
  1137. NTSTATUS
  1138. NTAPI
  1139. ZwReplyWaitReplyPort(
  1140. IN HANDLE PortHandle,
  1141. IN OUT PPORT_MESSAGE ReplyMessage
  1142. );
  1143. NTSYSAPI
  1144. NTSTATUS
  1145. NTAPI
  1146. ZwReplyWaitReceivePort(
  1147. IN HANDLE PortHandle,
  1148. OUT PVOID *PortContext OPTIONAL,
  1149. IN PPORT_MESSAGE ReplyMessage OPTIONAL,
  1150. OUT PPORT_MESSAGE ReceiveMessage
  1151. );
  1152. NTSYSAPI
  1153. NTSTATUS
  1154. NTAPI
  1155. ZwReplyWaitReceivePortEx(
  1156. IN HANDLE PortHandle,
  1157. OUT PVOID *PortContext OPTIONAL,
  1158. IN PPORT_MESSAGE ReplyMessage OPTIONAL,
  1159. OUT PPORT_MESSAGE ReceiveMessage,
  1160. IN PLARGE_INTEGER Timeout OPTIONAL
  1161. );
  1162. NTSYSAPI
  1163. NTSTATUS
  1164. NTAPI
  1165. ZwImpersonateClientOfPort(
  1166. IN HANDLE PortHandle,
  1167. IN PPORT_MESSAGE Message
  1168. );
  1169. NTSYSAPI
  1170. NTSTATUS
  1171. NTAPI
  1172. ZwReadRequestData(
  1173. IN HANDLE PortHandle,
  1174. IN PPORT_MESSAGE Message,
  1175. IN ULONG DataEntryIndex,
  1176. OUT PVOID Buffer,
  1177. IN SIZE_T BufferSize,
  1178. OUT PSIZE_T NumberOfBytesRead OPTIONAL
  1179. );
  1180. NTSYSAPI
  1181. NTSTATUS
  1182. NTAPI
  1183. ZwWriteRequestData(
  1184. IN HANDLE PortHandle,
  1185. IN PPORT_MESSAGE Message,
  1186. IN ULONG DataEntryIndex,
  1187. IN PVOID Buffer,
  1188. IN SIZE_T BufferSize,
  1189. OUT PSIZE_T NumberOfBytesWritten OPTIONAL
  1190. );
  1191. NTSYSAPI
  1192. NTSTATUS
  1193. NTAPI
  1194. ZwQueryInformationPort(
  1195. IN HANDLE PortHandle,
  1196. IN PORT_INFORMATION_CLASS PortInformationClass,
  1197. OUT PVOID PortInformation,
  1198. IN ULONG Length,
  1199. OUT PULONG ReturnLength OPTIONAL
  1200. );
  1201. NTSYSAPI
  1202. NTSTATUS
  1203. NTAPI
  1204. ZwCreateSection (
  1205. OUT PHANDLE SectionHandle,
  1206. IN ACCESS_MASK DesiredAccess,
  1207. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  1208. IN PLARGE_INTEGER MaximumSize OPTIONAL,
  1209. IN ULONG SectionPageProtection,
  1210. IN ULONG AllocationAttributes,
  1211. IN HANDLE FileHandle OPTIONAL
  1212. );
  1213. NTSYSAPI
  1214. NTSTATUS
  1215. NTAPI
  1216. ZwOpenSection(
  1217. OUT PHANDLE SectionHandle,
  1218. IN ACCESS_MASK DesiredAccess,
  1219. IN POBJECT_ATTRIBUTES ObjectAttributes
  1220. );
  1221. NTSYSAPI
  1222. NTSTATUS
  1223. NTAPI
  1224. ZwMapViewOfSection(
  1225. IN HANDLE SectionHandle,
  1226. IN HANDLE ProcessHandle,
  1227. IN OUT PVOID *BaseAddress,
  1228. IN ULONG_PTR ZeroBits,
  1229. IN SIZE_T CommitSize,
  1230. IN OUT PLARGE_INTEGER SectionOffset OPTIONAL,
  1231. IN OUT PSIZE_T ViewSize,
  1232. IN SECTION_INHERIT InheritDisposition,
  1233. IN ULONG AllocationType,
  1234. IN ULONG Protect
  1235. );
  1236. NTSYSAPI
  1237. NTSTATUS
  1238. NTAPI
  1239. ZwUnmapViewOfSection(
  1240. IN HANDLE ProcessHandle,
  1241. IN PVOID BaseAddress
  1242. );
  1243. NTSYSAPI
  1244. NTSTATUS
  1245. NTAPI
  1246. ZwExtendSection(
  1247. IN HANDLE SectionHandle,
  1248. IN OUT PLARGE_INTEGER NewSectionSize
  1249. );
  1250. NTSYSAPI
  1251. NTSTATUS
  1252. NTAPI
  1253. ZwAreMappedFilesTheSame (
  1254. IN PVOID File1MappedAsAnImage,
  1255. IN PVOID File2MappedAsFile
  1256. );
  1257. NTSYSAPI
  1258. NTSTATUS
  1259. NTAPI
  1260. ZwAllocateVirtualMemory(
  1261. IN HANDLE ProcessHandle,
  1262. IN OUT PVOID *BaseAddress,
  1263. IN ULONG_PTR ZeroBits,
  1264. IN OUT PSIZE_T RegionSize,
  1265. IN ULONG AllocationType,
  1266. IN ULONG Protect
  1267. );
  1268. NTSYSAPI
  1269. NTSTATUS
  1270. NTAPI
  1271. ZwFreeVirtualMemory(
  1272. IN HANDLE ProcessHandle,
  1273. IN OUT PVOID *BaseAddress,
  1274. IN OUT PSIZE_T RegionSize,
  1275. IN ULONG FreeType
  1276. );
  1277. NTSYSAPI
  1278. NTSTATUS
  1279. NTAPI
  1280. ZwReadVirtualMemory(
  1281. IN HANDLE ProcessHandle,
  1282. IN PVOID BaseAddress,
  1283. OUT PVOID Buffer,
  1284. IN SIZE_T BufferSize,
  1285. OUT PSIZE_T NumberOfBytesRead OPTIONAL
  1286. );
  1287. NTSYSAPI
  1288. NTSTATUS
  1289. NTAPI
  1290. ZwWriteVirtualMemory(
  1291. IN HANDLE ProcessHandle,
  1292. OUT PVOID BaseAddress,
  1293. IN CONST VOID *Buffer,
  1294. IN SIZE_T BufferSize,
  1295. OUT PSIZE_T NumberOfBytesWritten OPTIONAL
  1296. );
  1297. NTSYSAPI
  1298. NTSTATUS
  1299. NTAPI
  1300. ZwFlushVirtualMemory(
  1301. IN HANDLE ProcessHandle,
  1302. IN OUT PVOID *BaseAddress,
  1303. IN OUT PSIZE_T RegionSize,
  1304. OUT PIO_STATUS_BLOCK IoStatus
  1305. );
  1306. NTSYSAPI
  1307. NTSTATUS
  1308. NTAPI
  1309. ZwLockVirtualMemory(
  1310. IN HANDLE ProcessHandle,
  1311. IN OUT PVOID *BaseAddress,
  1312. IN OUT PSIZE_T RegionSize,
  1313. IN ULONG MapType
  1314. );
  1315. NTSYSAPI
  1316. NTSTATUS
  1317. NTAPI
  1318. ZwUnlockVirtualMemory(
  1319. IN HANDLE ProcessHandle,
  1320. IN OUT PVOID *BaseAddress,
  1321. IN OUT PSIZE_T RegionSize,
  1322. IN ULONG MapType
  1323. );
  1324. NTSYSAPI
  1325. NTSTATUS
  1326. NTAPI
  1327. ZwProtectVirtualMemory(
  1328. IN HANDLE ProcessHandle,
  1329. IN OUT PVOID *BaseAddress,
  1330. IN OUT PSIZE_T RegionSize,
  1331. IN ULONG NewProtect,
  1332. OUT PULONG OldProtect
  1333. );
  1334. NTSYSAPI
  1335. NTSTATUS
  1336. NTAPI
  1337. ZwQueryVirtualMemory(
  1338. IN HANDLE ProcessHandle,
  1339. IN PVOID BaseAddress,
  1340. IN MEMORY_INFORMATION_CLASS MemoryInformationClass,
  1341. OUT PVOID MemoryInformation,
  1342. IN SIZE_T MemoryInformationLength,
  1343. OUT PSIZE_T ReturnLength OPTIONAL
  1344. );
  1345. NTSYSAPI
  1346. NTSTATUS
  1347. NTAPI
  1348. ZwQuerySection(
  1349. IN HANDLE SectionHandle,
  1350. IN SECTION_INFORMATION_CLASS SectionInformationClass,
  1351. OUT PVOID SectionInformation,
  1352. IN SIZE_T SectionInformationLength,
  1353. OUT PSIZE_T ReturnLength OPTIONAL
  1354. );
  1355. NTSYSAPI
  1356. NTSTATUS
  1357. NTAPI
  1358. ZwMapUserPhysicalPages(
  1359. IN PVOID VirtualAddress,
  1360. IN OUT ULONG_PTR NumberOfPages,
  1361. IN OUT PULONG_PTR UserPfnArray OPTIONAL
  1362. );
  1363. NTSYSAPI
  1364. NTSTATUS
  1365. NTAPI
  1366. ZwMapUserPhysicalPagesScatter(
  1367. IN PVOID *VirtualAddresses,
  1368. IN OUT ULONG_PTR NumberOfPages,
  1369. IN OUT PULONG_PTR UserPfnArray OPTIONAL
  1370. );
  1371. NTSYSAPI
  1372. NTSTATUS
  1373. NTAPI
  1374. ZwAllocateUserPhysicalPages(
  1375. IN HANDLE ProcessHandle,
  1376. IN OUT PULONG_PTR NumberOfPages,
  1377. OUT PULONG_PTR UserPfnArray
  1378. );
  1379. NTSYSAPI
  1380. NTSTATUS
  1381. NTAPI
  1382. ZwFreeUserPhysicalPages(
  1383. IN HANDLE ProcessHandle,
  1384. IN OUT PULONG_PTR NumberOfPages,
  1385. IN PULONG_PTR UserPfnArray
  1386. );
  1387. NTSYSAPI
  1388. NTSTATUS
  1389. NTAPI
  1390. ZwGetWriteWatch (
  1391. IN HANDLE ProcessHandle,
  1392. IN ULONG Flags,
  1393. IN PVOID BaseAddress,
  1394. IN SIZE_T RegionSize,
  1395. IN OUT PVOID *UserAddressArray,
  1396. IN OUT PULONG_PTR EntriesInUserAddressArray,
  1397. OUT PULONG Granularity
  1398. );
  1399. NTSYSAPI
  1400. NTSTATUS
  1401. NTAPI
  1402. ZwResetWriteWatch (
  1403. IN HANDLE ProcessHandle,
  1404. IN PVOID BaseAddress,
  1405. IN SIZE_T RegionSize
  1406. );
  1407. NTSYSAPI
  1408. NTSTATUS
  1409. NTAPI
  1410. ZwCreatePagingFile (
  1411. IN PUNICODE_STRING PageFileName,
  1412. IN PLARGE_INTEGER MinimumSize,
  1413. IN PLARGE_INTEGER MaximumSize,
  1414. IN ULONG Priority OPTIONAL
  1415. );
  1416. NTSYSAPI
  1417. NTSTATUS
  1418. NTAPI
  1419. ZwFlushInstructionCache (
  1420. IN HANDLE ProcessHandle,
  1421. IN PVOID BaseAddress OPTIONAL,
  1422. IN SIZE_T Length
  1423. );
  1424. NTSYSAPI
  1425. NTSTATUS
  1426. NTAPI
  1427. ZwFlushWriteBuffer (
  1428. VOID
  1429. );
  1430. NTSYSAPI
  1431. NTSTATUS
  1432. NTAPI
  1433. ZwQueryObject(
  1434. IN HANDLE Handle,
  1435. IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
  1436. OUT PVOID ObjectInformation,
  1437. IN ULONG Length,
  1438. OUT PULONG ReturnLength OPTIONAL
  1439. );
  1440. NTSYSAPI
  1441. NTSTATUS
  1442. NTAPI
  1443. ZwSetInformationObject(
  1444. IN HANDLE Handle,
  1445. IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
  1446. IN PVOID ObjectInformation,
  1447. IN ULONG ObjectInformationLength
  1448. );
  1449. NTSYSAPI
  1450. NTSTATUS
  1451. NTAPI
  1452. ZwDuplicateObject(
  1453. IN HANDLE SourceProcessHandle,
  1454. IN HANDLE SourceHandle,
  1455. IN HANDLE TargetProcessHandle OPTIONAL,
  1456. OUT PHANDLE TargetHandle OPTIONAL,
  1457. IN ACCESS_MASK DesiredAccess,
  1458. IN ULONG HandleAttributes,
  1459. IN ULONG Options
  1460. );
  1461. NTSYSAPI
  1462. NTSTATUS
  1463. NTAPI
  1464. ZwMakeTemporaryObject(
  1465. IN HANDLE Handle
  1466. );
  1467. NTSYSAPI
  1468. NTSTATUS
  1469. NTAPI
  1470. ZwMakePermanentObject(
  1471. IN HANDLE Handle
  1472. );
  1473. NTSYSAPI
  1474. NTSTATUS
  1475. NTAPI
  1476. ZwSignalAndWaitForSingleObject(
  1477. IN HANDLE SignalHandle,
  1478. IN HANDLE WaitHandle,
  1479. IN BOOLEAN Alertable,
  1480. IN PLARGE_INTEGER Timeout OPTIONAL
  1481. );
  1482. NTSYSAPI
  1483. NTSTATUS
  1484. NTAPI
  1485. ZwWaitForSingleObject(
  1486. IN HANDLE Handle,
  1487. IN BOOLEAN Alertable,
  1488. IN PLARGE_INTEGER Timeout OPTIONAL
  1489. );
  1490. NTSYSAPI
  1491. NTSTATUS
  1492. NTAPI
  1493. ZwWaitForMultipleObjects(
  1494. IN ULONG Count,
  1495. IN HANDLE Handles[],
  1496. IN WAIT_TYPE WaitType,
  1497. IN BOOLEAN Alertable,
  1498. IN PLARGE_INTEGER Timeout OPTIONAL
  1499. );
  1500. NTSYSAPI
  1501. NTSTATUS
  1502. NTAPI
  1503. ZwSetSecurityObject(
  1504. IN HANDLE Handle,
  1505. IN SECURITY_INFORMATION SecurityInformation,
  1506. IN PSECURITY_DESCRIPTOR SecurityDescriptor
  1507. );
  1508. NTSYSAPI
  1509. NTSTATUS
  1510. NTAPI
  1511. ZwQuerySecurityObject(
  1512. IN HANDLE Handle,
  1513. IN SECURITY_INFORMATION SecurityInformation,
  1514. OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
  1515. IN ULONG Length,
  1516. OUT PULONG LengthNeeded
  1517. );
  1518. NTSYSAPI
  1519. NTSTATUS
  1520. NTAPI
  1521. ZwClose(
  1522. IN HANDLE Handle
  1523. );
  1524. NTSYSAPI
  1525. NTSTATUS
  1526. NTAPI
  1527. ZwCreateDirectoryObject(
  1528. OUT PHANDLE DirectoryHandle,
  1529. IN ACCESS_MASK DesiredAccess,
  1530. IN POBJECT_ATTRIBUTES ObjectAttributes
  1531. );
  1532. NTSYSAPI
  1533. NTSTATUS
  1534. NTAPI
  1535. ZwOpenDirectoryObject(
  1536. OUT PHANDLE DirectoryHandle,
  1537. IN ACCESS_MASK DesiredAccess,
  1538. IN POBJECT_ATTRIBUTES ObjectAttributes
  1539. );
  1540. NTSYSAPI
  1541. NTSTATUS
  1542. NTAPI
  1543. ZwQueryDirectoryObject(
  1544. IN HANDLE DirectoryHandle,
  1545. OUT PVOID Buffer,
  1546. IN ULONG Length,
  1547. IN BOOLEAN ReturnSingleEntry,
  1548. IN BOOLEAN RestartScan,
  1549. IN OUT PULONG Context,
  1550. OUT PULONG ReturnLength OPTIONAL
  1551. );
  1552. NTSYSAPI
  1553. NTSTATUS
  1554. NTAPI
  1555. ZwCreateSymbolicLinkObject(
  1556. OUT PHANDLE LinkHandle,
  1557. IN ACCESS_MASK DesiredAccess,
  1558. IN POBJECT_ATTRIBUTES ObjectAttributes,
  1559. IN PUNICODE_STRING LinkTarget
  1560. );
  1561. NTSYSAPI
  1562. NTSTATUS
  1563. NTAPI
  1564. ZwOpenSymbolicLinkObject(
  1565. OUT PHANDLE LinkHandle,
  1566. IN ACCESS_MASK DesiredAccess,
  1567. IN POBJECT_ATTRIBUTES ObjectAttributes
  1568. );
  1569. NTSYSAPI
  1570. NTSTATUS
  1571. NTAPI
  1572. ZwQuerySymbolicLinkObject(
  1573. IN HANDLE LinkHandle,
  1574. IN OUT PUNICODE_STRING LinkTarget,
  1575. OUT PULONG ReturnedLength OPTIONAL
  1576. );
  1577. NTSYSAPI
  1578. NTSTATUS
  1579. NTAPI
  1580. ZwGetPlugPlayEvent(
  1581. IN HANDLE EventHandle,
  1582. IN PVOID Context OPTIONAL,
  1583. OUT PPLUGPLAY_EVENT_BLOCK EventBlock,
  1584. IN ULONG EventBufferLength
  1585. );
  1586. NTSYSAPI
  1587. NTSTATUS
  1588. NTAPI
  1589. ZwPlugPlayControl(
  1590. IN PLUGPLAY_CONTROL_CLASS PnPControlClass,
  1591. IN OUT PVOID PnPControlData,
  1592. IN ULONG PnPControlDataLength
  1593. );
  1594. NTSYSAPI
  1595. NTSTATUS
  1596. NTAPI
  1597. ZwPowerInformation(
  1598. IN POWER_INFORMATION_LEVEL InformationLevel,
  1599. IN PVOID InputBuffer OPTIONAL,
  1600. IN ULONG InputBufferLength,
  1601. OUT PVOID OutputBuffer OPTIONAL,
  1602. IN ULONG OutputBufferLength
  1603. );
  1604. NTSYSAPI
  1605. NTSTATUS
  1606. NTAPI
  1607. ZwSetThreadExecutionState(
  1608. IN EXECUTION_STATE esFlags, // ES_xxx flags
  1609. OUT EXECUTION_STATE *PreviousFlags
  1610. );
  1611. NTSYSAPI
  1612. NTSTATUS
  1613. NTAPI
  1614. ZwRequestWakeupLatency(
  1615. IN LATENCY_TIME latency
  1616. );
  1617. NTSYSAPI
  1618. NTSTATUS
  1619. NTAPI
  1620. ZwInitiatePowerAction(
  1621. IN POWER_ACTION SystemAction,
  1622. IN SYSTEM_POWER_STATE MinSystemState,
  1623. IN ULONG Flags, // POWER_ACTION_xxx flags
  1624. IN BOOLEAN Asynchronous
  1625. );
  1626. NTSYSAPI
  1627. NTSTATUS
  1628. NTAPI
  1629. ZwSetSystemPowerState(
  1630. IN POWER_ACTION SystemAction,
  1631. IN SYSTEM_POWER_STATE MinSystemState,
  1632. IN ULONG Flags // POWER_ACTION_xxx flags
  1633. );
  1634. NTSYSAPI
  1635. NTSTATUS
  1636. NTAPI
  1637. ZwGetDevicePowerState(
  1638. IN HANDLE Device,
  1639. OUT DEVICE_POWER_STATE *State
  1640. );
  1641. NTSYSAPI
  1642. NTSTATUS
  1643. NTAPI
  1644. ZwCancelDeviceWakeupRequest(
  1645. IN HANDLE Device
  1646. );
  1647. NTSYSAPI
  1648. NTSTATUS
  1649. NTAPI
  1650. ZwRequestDeviceWakeup(
  1651. IN HANDLE Device
  1652. );
  1653. NTSYSAPI
  1654. NTSTATUS
  1655. NTAPI
  1656. ZwCreateProcess(
  1657. OUT PHANDLE ProcessHandle,
  1658. IN ACCESS_MASK DesiredAccess,
  1659. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  1660. IN HANDLE ParentProcess,
  1661. IN BOOLEAN InheritObjectTable,
  1662. IN HANDLE SectionHandle OPTIONAL,
  1663. IN HANDLE DebugPort OPTIONAL,
  1664. IN HANDLE ExceptionPort OPTIONAL
  1665. );
  1666. NTSYSAPI
  1667. NTSTATUS
  1668. NTAPI
  1669. ZwCreateProcessEx(
  1670. OUT PHANDLE ProcessHandle,
  1671. IN ACCESS_MASK DesiredAccess,
  1672. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  1673. IN HANDLE ParentProcess,
  1674. IN ULONG Flags,
  1675. IN HANDLE SectionHandle OPTIONAL,
  1676. IN HANDLE DebugPort OPTIONAL,
  1677. IN HANDLE ExceptionPort OPTIONAL,
  1678. IN ULONG JobMemberLevel
  1679. );
  1680. NTSYSAPI
  1681. NTSTATUS
  1682. NTAPI
  1683. ZwOpenProcess (
  1684. OUT PHANDLE ProcessHandle,
  1685. IN ACCESS_MASK DesiredAccess,
  1686. IN POBJECT_ATTRIBUTES ObjectAttributes,
  1687. IN PCLIENT_ID ClientId OPTIONAL
  1688. );
  1689. NTSYSAPI
  1690. NTSTATUS
  1691. NTAPI
  1692. ZwTerminateProcess(
  1693. IN HANDLE ProcessHandle OPTIONAL,
  1694. IN NTSTATUS ExitStatus
  1695. );
  1696. NTSYSAPI
  1697. NTSTATUS
  1698. NTAPI
  1699. ZwQueryInformationProcess(
  1700. IN HANDLE ProcessHandle,
  1701. IN PROCESSINFOCLASS ProcessInformationClass,
  1702. OUT PVOID ProcessInformation,
  1703. IN ULONG ProcessInformationLength,
  1704. OUT PULONG ReturnLength OPTIONAL
  1705. );
  1706. NTSYSAPI
  1707. NTSTATUS
  1708. NTAPI
  1709. ZwQueryPortInformationProcess(
  1710. VOID
  1711. );
  1712. NTSYSAPI
  1713. NTSTATUS
  1714. NTAPI
  1715. ZwSetInformationProcess(
  1716. IN HANDLE ProcessHandle,
  1717. IN PROCESSINFOCLASS ProcessInformationClass,
  1718. IN PVOID ProcessInformation,
  1719. IN ULONG ProcessInformationLength
  1720. );
  1721. NTSYSAPI
  1722. NTSTATUS
  1723. NTAPI
  1724. ZwCreateThread(
  1725. OUT PHANDLE ThreadHandle,
  1726. IN ACCESS_MASK DesiredAccess,
  1727. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  1728. IN HANDLE ProcessHandle,
  1729. OUT PCLIENT_ID ClientId,
  1730. IN PCONTEXT ThreadContext,
  1731. IN PINITIAL_TEB InitialTeb,
  1732. IN BOOLEAN CreateSuspended
  1733. );
  1734. NTSYSAPI
  1735. NTSTATUS
  1736. NTAPI
  1737. ZwOpenThread (
  1738. OUT PHANDLE ThreadHandle,
  1739. IN ACCESS_MASK DesiredAccess,
  1740. IN POBJECT_ATTRIBUTES ObjectAttributes,
  1741. IN PCLIENT_ID ClientId OPTIONAL
  1742. );
  1743. NTSYSAPI
  1744. NTSTATUS
  1745. NTAPI
  1746. ZwTerminateThread(
  1747. IN HANDLE ThreadHandle OPTIONAL,
  1748. IN NTSTATUS ExitStatus
  1749. );
  1750. NTSYSAPI
  1751. NTSTATUS
  1752. NTAPI
  1753. ZwSuspendThread(
  1754. IN HANDLE ThreadHandle,
  1755. OUT PULONG PreviousSuspendCount OPTIONAL
  1756. );
  1757. NTSYSAPI
  1758. NTSTATUS
  1759. NTAPI
  1760. ZwResumeThread(
  1761. IN HANDLE ThreadHandle,
  1762. OUT PULONG PreviousSuspendCount OPTIONAL
  1763. );
  1764. NTSYSAPI
  1765. NTSTATUS
  1766. NTAPI
  1767. ZwSuspendProcess (
  1768. IN HANDLE ProcessHandle
  1769. );
  1770. NTSYSAPI
  1771. NTSTATUS
  1772. NTAPI
  1773. ZwResumeProcess (
  1774. IN HANDLE ProcessHandle
  1775. );
  1776. NTSYSAPI
  1777. NTSTATUS
  1778. NTAPI
  1779. ZwGetContextThread(
  1780. IN HANDLE ThreadHandle,
  1781. IN OUT PCONTEXT ThreadContext
  1782. );
  1783. NTSYSAPI
  1784. NTSTATUS
  1785. NTAPI
  1786. ZwSetContextThread(
  1787. IN HANDLE ThreadHandle,
  1788. IN PCONTEXT ThreadContext
  1789. );
  1790. NTSYSAPI
  1791. NTSTATUS
  1792. NTAPI
  1793. ZwQueryInformationThread(
  1794. IN HANDLE ThreadHandle,
  1795. IN THREADINFOCLASS ThreadInformationClass,
  1796. OUT PVOID ThreadInformation,
  1797. IN ULONG ThreadInformationLength,
  1798. OUT PULONG ReturnLength OPTIONAL
  1799. );
  1800. NTSYSAPI
  1801. NTSTATUS
  1802. NTAPI
  1803. ZwSetInformationThread(
  1804. IN HANDLE ThreadHandle,
  1805. IN THREADINFOCLASS ThreadInformationClass,
  1806. IN PVOID ThreadInformation,
  1807. IN ULONG ThreadInformationLength
  1808. );
  1809. NTSYSAPI
  1810. NTSTATUS
  1811. NTAPI
  1812. ZwAlertThread(
  1813. IN HANDLE ThreadHandle
  1814. );
  1815. NTSYSAPI
  1816. NTSTATUS
  1817. NTAPI
  1818. ZwAlertResumeThread(
  1819. IN HANDLE ThreadHandle,
  1820. OUT PULONG PreviousSuspendCount OPTIONAL
  1821. );
  1822. NTSYSAPI
  1823. NTSTATUS
  1824. NTAPI
  1825. ZwImpersonateThread(
  1826. IN HANDLE ServerThreadHandle,
  1827. IN HANDLE ClientThreadHandle,
  1828. IN PSECURITY_QUALITY_OF_SERVICE SecurityQos
  1829. );
  1830. NTSYSAPI
  1831. NTSTATUS
  1832. NTAPI
  1833. ZwTestAlert(
  1834. VOID
  1835. );
  1836. NTSYSAPI
  1837. NTSTATUS
  1838. NTAPI
  1839. ZwRegisterThreadTerminatePort(
  1840. IN HANDLE PortHandle
  1841. );
  1842. NTSYSAPI
  1843. NTSTATUS
  1844. NTAPI
  1845. ZwSetLdtEntries(
  1846. IN ULONG Selector0,
  1847. IN ULONG Entry0Low,
  1848. IN ULONG Entry0Hi,
  1849. IN ULONG Selector1,
  1850. IN ULONG Entry1Low,
  1851. IN ULONG Entry1High
  1852. );
  1853. NTSYSAPI
  1854. NTSTATUS
  1855. NTAPI
  1856. ZwQueueApcThread(
  1857. IN HANDLE ThreadHandle,
  1858. IN PPS_APC_ROUTINE ApcRoutine,
  1859. IN PVOID ApcArgument1,
  1860. IN PVOID ApcArgument2,
  1861. IN PVOID ApcArgument3
  1862. );
  1863. NTSYSAPI
  1864. NTSTATUS
  1865. NTAPI
  1866. ZwCreateJobObject (
  1867. OUT PHANDLE JobHandle,
  1868. IN ACCESS_MASK DesiredAccess,
  1869. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL
  1870. );
  1871. NTSYSAPI
  1872. NTSTATUS
  1873. NTAPI
  1874. ZwOpenJobObject(
  1875. OUT PHANDLE JobHandle,
  1876. IN ACCESS_MASK DesiredAccess,
  1877. IN POBJECT_ATTRIBUTES ObjectAttributes
  1878. );
  1879. NTSYSAPI
  1880. NTSTATUS
  1881. NTAPI
  1882. ZwAssignProcessToJobObject(
  1883. IN HANDLE JobHandle,
  1884. IN HANDLE ProcessHandle
  1885. );
  1886. NTSYSAPI
  1887. NTSTATUS
  1888. NTAPI
  1889. ZwTerminateJobObject(
  1890. IN HANDLE JobHandle,
  1891. IN NTSTATUS ExitStatus
  1892. );
  1893. NTSYSAPI
  1894. NTSTATUS
  1895. NTAPI
  1896. ZwIsProcessInJob (
  1897. IN HANDLE ProcessHandle,
  1898. IN HANDLE JobHandle
  1899. );
  1900. NTSYSAPI
  1901. NTSTATUS
  1902. NTAPI
  1903. ZwCreateJobSet (
  1904. IN ULONG NumJob,
  1905. IN PJOB_SET_ARRAY UserJobSet,
  1906. IN ULONG Flags);
  1907. NTSYSAPI
  1908. NTSTATUS
  1909. NTAPI
  1910. ZwQueryInformationJobObject(
  1911. IN HANDLE JobHandle,
  1912. IN JOBOBJECTINFOCLASS JobObjectInformationClass,
  1913. OUT PVOID JobObjectInformation,
  1914. IN ULONG JobObjectInformationLength,
  1915. OUT PULONG ReturnLength OPTIONAL
  1916. );
  1917. NTSYSAPI
  1918. NTSTATUS
  1919. NTAPI
  1920. ZwSetInformationJobObject(
  1921. IN HANDLE JobHandle,
  1922. IN JOBOBJECTINFOCLASS JobObjectInformationClass,
  1923. IN PVOID JobObjectInformation,
  1924. IN ULONG JobObjectInformationLength
  1925. );
  1926. NTSYSAPI
  1927. NTSTATUS
  1928. NTAPI
  1929. ZwCreateKey(
  1930. OUT PHANDLE KeyHandle,
  1931. IN ACCESS_MASK DesiredAccess,
  1932. IN POBJECT_ATTRIBUTES ObjectAttributes,
  1933. IN ULONG TitleIndex,
  1934. IN PUNICODE_STRING Class OPTIONAL,
  1935. IN ULONG CreateOptions,
  1936. OUT PULONG Disposition OPTIONAL
  1937. );
  1938. NTSYSAPI
  1939. NTSTATUS
  1940. NTAPI
  1941. ZwDeleteKey(
  1942. IN HANDLE KeyHandle
  1943. );
  1944. NTSYSAPI
  1945. NTSTATUS
  1946. NTAPI
  1947. ZwDeleteValueKey(
  1948. IN HANDLE KeyHandle,
  1949. IN PUNICODE_STRING ValueName
  1950. );
  1951. NTSYSAPI
  1952. NTSTATUS
  1953. NTAPI
  1954. ZwEnumerateKey(
  1955. IN HANDLE KeyHandle,
  1956. IN ULONG Index,
  1957. IN KEY_INFORMATION_CLASS KeyInformationClass,
  1958. OUT PVOID KeyInformation,
  1959. IN ULONG Length,
  1960. OUT PULONG ResultLength
  1961. );
  1962. NTSYSAPI
  1963. NTSTATUS
  1964. NTAPI
  1965. ZwEnumerateValueKey(
  1966. IN HANDLE KeyHandle,
  1967. IN ULONG Index,
  1968. IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
  1969. OUT PVOID KeyValueInformation,
  1970. IN ULONG Length,
  1971. OUT PULONG ResultLength
  1972. );
  1973. NTSYSAPI
  1974. NTSTATUS
  1975. NTAPI
  1976. ZwFlushKey(
  1977. IN HANDLE KeyHandle
  1978. );
  1979. NTSYSAPI
  1980. NTSTATUS
  1981. NTAPI
  1982. ZwInitializeRegistry(
  1983. IN USHORT BootCondition
  1984. );
  1985. NTSYSAPI
  1986. NTSTATUS
  1987. NTAPI
  1988. ZwNotifyChangeKey(
  1989. IN HANDLE KeyHandle,
  1990. IN HANDLE Event OPTIONAL,
  1991. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  1992. IN PVOID ApcContext OPTIONAL,
  1993. OUT PIO_STATUS_BLOCK IoStatusBlock,
  1994. IN ULONG CompletionFilter,
  1995. IN BOOLEAN WatchTree,
  1996. OUT PVOID Buffer,
  1997. IN ULONG BufferSize,
  1998. IN BOOLEAN Asynchronous
  1999. );
  2000. NTSYSAPI
  2001. NTSTATUS
  2002. NTAPI
  2003. ZwNotifyChangeMultipleKeys(
  2004. IN HANDLE MasterKeyHandle,
  2005. IN ULONG Count,
  2006. IN OBJECT_ATTRIBUTES SlaveObjects[],
  2007. IN HANDLE Event OPTIONAL,
  2008. IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
  2009. IN PVOID ApcContext OPTIONAL,
  2010. OUT PIO_STATUS_BLOCK IoStatusBlock,
  2011. IN ULONG CompletionFilter,
  2012. IN BOOLEAN WatchTree,
  2013. OUT PVOID Buffer,
  2014. IN ULONG BufferSize,
  2015. IN BOOLEAN Asynchronous
  2016. );
  2017. NTSYSAPI
  2018. NTSTATUS
  2019. NTAPI
  2020. ZwLoadKey(
  2021. IN POBJECT_ATTRIBUTES TargetKey,
  2022. IN POBJECT_ATTRIBUTES SourceFile
  2023. );
  2024. NTSYSAPI
  2025. NTSTATUS
  2026. NTAPI
  2027. ZwLoadKey2(
  2028. IN POBJECT_ATTRIBUTES TargetKey,
  2029. IN POBJECT_ATTRIBUTES SourceFile,
  2030. IN ULONG Flags
  2031. );
  2032. NTSYSAPI
  2033. NTSTATUS
  2034. NTAPI
  2035. ZwOpenKey(
  2036. OUT PHANDLE KeyHandle,
  2037. IN ACCESS_MASK DesiredAccess,
  2038. IN POBJECT_ATTRIBUTES ObjectAttributes
  2039. );
  2040. NTSYSAPI
  2041. NTSTATUS
  2042. NTAPI
  2043. ZwQueryKey(
  2044. IN HANDLE KeyHandle,
  2045. IN KEY_INFORMATION_CLASS KeyInformationClass,
  2046. OUT PVOID KeyInformation,
  2047. IN ULONG Length,
  2048. OUT PULONG ResultLength
  2049. );
  2050. NTSYSAPI
  2051. NTSTATUS
  2052. NTAPI
  2053. ZwQueryValueKey(
  2054. IN HANDLE KeyHandle,
  2055. IN PUNICODE_STRING ValueName,
  2056. IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
  2057. OUT PVOID KeyValueInformation,
  2058. IN ULONG Length,
  2059. OUT PULONG ResultLength
  2060. );
  2061. NTSYSAPI
  2062. NTSTATUS
  2063. NTAPI
  2064. ZwQueryMultipleValueKey(
  2065. IN HANDLE KeyHandle,
  2066. IN OUT PKEY_VALUE_ENTRY ValueEntries,
  2067. IN ULONG EntryCount,
  2068. OUT PVOID ValueBuffer,
  2069. IN OUT PULONG BufferLength,
  2070. OUT OPTIONAL PULONG RequiredBufferLength
  2071. );
  2072. NTSYSAPI
  2073. NTSTATUS
  2074. NTAPI
  2075. ZwReplaceKey(
  2076. IN POBJECT_ATTRIBUTES NewFile,
  2077. IN HANDLE TargetHandle,
  2078. IN POBJECT_ATTRIBUTES OldFile
  2079. );
  2080. NTSYSAPI
  2081. NTSTATUS
  2082. NTAPI
  2083. ZwRenameKey(
  2084. IN HANDLE KeyHandle,
  2085. IN PUNICODE_STRING NewName
  2086. );
  2087. NTSYSAPI
  2088. NTSTATUS
  2089. NTAPI
  2090. ZwCompactKeys(
  2091. IN ULONG Count,
  2092. IN HANDLE KeyArray[]
  2093. );
  2094. NTSYSAPI
  2095. NTSTATUS
  2096. NTAPI
  2097. ZwCompressKey(
  2098. IN HANDLE Key
  2099. );
  2100. NTSYSAPI
  2101. NTSTATUS
  2102. NTAPI
  2103. ZwRestoreKey(
  2104. IN HANDLE KeyHandle,
  2105. IN HANDLE FileHandle,
  2106. IN ULONG Flags
  2107. );
  2108. NTSYSAPI
  2109. NTSTATUS
  2110. NTAPI
  2111. ZwSaveKey(
  2112. IN HANDLE KeyHandle,
  2113. IN HANDLE FileHandle
  2114. );
  2115. NTSYSAPI
  2116. NTSTATUS
  2117. NTAPI
  2118. ZwSaveKeyEx(
  2119. IN HANDLE KeyHandle,
  2120. IN HANDLE FileHandle,
  2121. IN ULONG Format
  2122. );
  2123. NTSYSAPI
  2124. NTSTATUS
  2125. NTAPI
  2126. ZwSaveMergedKeys(
  2127. IN HANDLE HighPrecedenceKeyHandle,
  2128. IN HANDLE LowPrecedenceKeyHandle,
  2129. IN HANDLE FileHandle
  2130. );
  2131. NTSYSAPI
  2132. NTSTATUS
  2133. NTAPI
  2134. ZwSetValueKey(
  2135. IN HANDLE KeyHandle,
  2136. IN PUNICODE_STRING ValueName,
  2137. IN ULONG TitleIndex OPTIONAL,
  2138. IN ULONG Type,
  2139. IN PVOID Data,
  2140. IN ULONG DataSize
  2141. );
  2142. NTSYSAPI
  2143. NTSTATUS
  2144. NTAPI
  2145. ZwUnloadKey(
  2146. IN POBJECT_ATTRIBUTES TargetKey
  2147. );
  2148. NTSYSAPI
  2149. NTSTATUS
  2150. NTAPI
  2151. ZwUnloadKeyEx(
  2152. IN POBJECT_ATTRIBUTES TargetKey,
  2153. IN HANDLE Event OPTIONAL
  2154. );
  2155. NTSYSAPI
  2156. NTSTATUS
  2157. NTAPI
  2158. ZwSetInformationKey(
  2159. IN HANDLE KeyHandle,
  2160. IN KEY_SET_INFORMATION_CLASS KeySetInformationClass,
  2161. IN PVOID KeySetInformation,
  2162. IN ULONG KeySetInformationLength
  2163. );
  2164. NTSYSAPI
  2165. NTSTATUS
  2166. NTAPI
  2167. ZwQueryOpenSubKeys(
  2168. IN POBJECT_ATTRIBUTES TargetKey,
  2169. OUT PULONG HandleCount
  2170. );
  2171. NTSYSAPI
  2172. NTSTATUS
  2173. NTAPI
  2174. ZwLockRegistryKey(
  2175. IN HANDLE KeyHandle
  2176. );
  2177. NTSYSAPI
  2178. NTSTATUS
  2179. NTAPI
  2180. ZwLockProductActivationKeys(
  2181. ULONG *pPrivateVer,
  2182. ULONG *pIsSafeMode
  2183. );
  2184. NTSYSAPI
  2185. NTSTATUS
  2186. NTAPI
  2187. ZwAccessCheck (
  2188. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2189. IN HANDLE ClientToken,
  2190. IN ACCESS_MASK DesiredAccess,
  2191. IN PGENERIC_MAPPING GenericMapping,
  2192. OUT PPRIVILEGE_SET PrivilegeSet,
  2193. IN OUT PULONG PrivilegeSetLength,
  2194. OUT PACCESS_MASK GrantedAccess,
  2195. OUT PNTSTATUS AccessStatus
  2196. );
  2197. NTSYSAPI
  2198. NTSTATUS
  2199. NTAPI
  2200. ZwAccessCheckByType (
  2201. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2202. IN PSID PrincipalSelfSid,
  2203. IN HANDLE ClientToken,
  2204. IN ACCESS_MASK DesiredAccess,
  2205. IN POBJECT_TYPE_LIST ObjectTypeList,
  2206. IN ULONG ObjectTypeListLength,
  2207. IN PGENERIC_MAPPING GenericMapping,
  2208. OUT PPRIVILEGE_SET PrivilegeSet,
  2209. IN OUT PULONG PrivilegeSetLength,
  2210. OUT PACCESS_MASK GrantedAccess,
  2211. OUT PNTSTATUS AccessStatus
  2212. );
  2213. NTSYSAPI
  2214. NTSTATUS
  2215. NTAPI
  2216. ZwAccessCheckByTypeResultList (
  2217. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2218. IN PSID PrincipalSelfSid,
  2219. IN HANDLE ClientToken,
  2220. IN ACCESS_MASK DesiredAccess,
  2221. IN POBJECT_TYPE_LIST ObjectTypeList,
  2222. IN ULONG ObjectTypeListLength,
  2223. IN PGENERIC_MAPPING GenericMapping,
  2224. OUT PPRIVILEGE_SET PrivilegeSet,
  2225. IN OUT PULONG PrivilegeSetLength,
  2226. OUT PACCESS_MASK GrantedAccess,
  2227. OUT PNTSTATUS AccessStatus
  2228. );
  2229. NTSYSAPI
  2230. NTSTATUS
  2231. NTAPI
  2232. ZwCreateToken(
  2233. OUT PHANDLE TokenHandle,
  2234. IN ACCESS_MASK DesiredAccess,
  2235. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  2236. IN TOKEN_TYPE TokenType,
  2237. IN PLUID AuthenticationId,
  2238. IN PLARGE_INTEGER ExpirationTime,
  2239. IN PTOKEN_USER User,
  2240. IN PTOKEN_GROUPS Groups,
  2241. IN PTOKEN_PRIVILEGES Privileges,
  2242. IN PTOKEN_OWNER Owner OPTIONAL,
  2243. IN PTOKEN_PRIMARY_GROUP PrimaryGroup,
  2244. IN PTOKEN_DEFAULT_DACL DefaultDacl OPTIONAL,
  2245. IN PTOKEN_SOURCE TokenSource
  2246. );
  2247. NTSYSAPI
  2248. NTSTATUS
  2249. NTAPI
  2250. ZwCompareTokens(
  2251. IN HANDLE FirstTokenHandle,
  2252. IN HANDLE SecondTokenHandle,
  2253. OUT PBOOLEAN Equal
  2254. );
  2255. NTSYSAPI
  2256. NTSTATUS
  2257. NTAPI
  2258. ZwOpenThreadToken(
  2259. IN HANDLE ThreadHandle,
  2260. IN ACCESS_MASK DesiredAccess,
  2261. IN BOOLEAN OpenAsSelf,
  2262. OUT PHANDLE TokenHandle
  2263. );
  2264. NTSYSAPI
  2265. NTSTATUS
  2266. NTAPI
  2267. ZwOpenThreadTokenEx(
  2268. IN HANDLE ThreadHandle,
  2269. IN ACCESS_MASK DesiredAccess,
  2270. IN BOOLEAN OpenAsSelf,
  2271. IN ULONG HandleAttributes,
  2272. OUT PHANDLE TokenHandle
  2273. );
  2274. NTSYSAPI
  2275. NTSTATUS
  2276. NTAPI
  2277. ZwOpenProcessToken(
  2278. IN HANDLE ProcessHandle,
  2279. IN ACCESS_MASK DesiredAccess,
  2280. OUT PHANDLE TokenHandle
  2281. );
  2282. NTSYSAPI
  2283. NTSTATUS
  2284. NTAPI
  2285. ZwOpenProcessTokenEx(
  2286. IN HANDLE ProcessHandle,
  2287. IN ACCESS_MASK DesiredAccess,
  2288. IN ULONG HandleAttributes,
  2289. OUT PHANDLE TokenHandle
  2290. );
  2291. NTSYSAPI
  2292. NTSTATUS
  2293. NTAPI
  2294. ZwOpenJobObjectToken(
  2295. IN HANDLE JobHandle,
  2296. IN ACCESS_MASK DesiredAccess,
  2297. OUT PHANDLE TokenHandle
  2298. );
  2299. NTSYSAPI
  2300. NTSTATUS
  2301. NTAPI
  2302. ZwDuplicateToken(
  2303. IN HANDLE ExistingTokenHandle,
  2304. IN ACCESS_MASK DesiredAccess,
  2305. IN POBJECT_ATTRIBUTES ObjectAttributes,
  2306. IN BOOLEAN EffectiveOnly,
  2307. IN TOKEN_TYPE TokenType,
  2308. OUT PHANDLE NewTokenHandle
  2309. );
  2310. NTSYSAPI
  2311. NTSTATUS
  2312. NTAPI
  2313. ZwFilterToken (
  2314. IN HANDLE ExistingTokenHandle,
  2315. IN ULONG Flags,
  2316. IN PTOKEN_GROUPS SidsToDisable OPTIONAL,
  2317. IN PTOKEN_PRIVILEGES PrivilegesToDelete OPTIONAL,
  2318. IN PTOKEN_GROUPS RestrictedSids OPTIONAL,
  2319. OUT PHANDLE NewTokenHandle
  2320. );
  2321. NTSYSAPI
  2322. NTSTATUS
  2323. NTAPI
  2324. ZwImpersonateAnonymousToken(
  2325. IN HANDLE ThreadHandle
  2326. );
  2327. NTSYSAPI
  2328. NTSTATUS
  2329. NTAPI
  2330. ZwQueryInformationToken (
  2331. IN HANDLE TokenHandle,
  2332. IN TOKEN_INFORMATION_CLASS TokenInformationClass,
  2333. OUT PVOID TokenInformation,
  2334. IN ULONG TokenInformationLength,
  2335. OUT PULONG ReturnLength
  2336. );
  2337. NTSYSAPI
  2338. NTSTATUS
  2339. NTAPI
  2340. ZwSetInformationToken (
  2341. IN HANDLE TokenHandle,
  2342. IN TOKEN_INFORMATION_CLASS TokenInformationClass,
  2343. IN PVOID TokenInformation,
  2344. IN ULONG TokenInformationLength
  2345. );
  2346. NTSYSAPI
  2347. NTSTATUS
  2348. NTAPI
  2349. ZwAdjustPrivilegesToken (
  2350. IN HANDLE TokenHandle,
  2351. IN BOOLEAN DisableAllPrivileges,
  2352. IN PTOKEN_PRIVILEGES NewState OPTIONAL,
  2353. IN ULONG BufferLength OPTIONAL,
  2354. OUT PTOKEN_PRIVILEGES PreviousState OPTIONAL,
  2355. OUT PULONG ReturnLength
  2356. );
  2357. NTSYSAPI
  2358. NTSTATUS
  2359. NTAPI
  2360. ZwAdjustGroupsToken (
  2361. IN HANDLE TokenHandle,
  2362. IN BOOLEAN ResetToDefault,
  2363. IN PTOKEN_GROUPS NewState OPTIONAL,
  2364. IN ULONG BufferLength OPTIONAL,
  2365. OUT PTOKEN_GROUPS PreviousState OPTIONAL,
  2366. OUT PULONG ReturnLength
  2367. );
  2368. NTSYSAPI
  2369. NTSTATUS
  2370. NTAPI
  2371. ZwPrivilegeCheck (
  2372. IN HANDLE ClientToken,
  2373. IN OUT PPRIVILEGE_SET RequiredPrivileges,
  2374. OUT PBOOLEAN Result
  2375. );
  2376. NTSYSAPI
  2377. NTSTATUS
  2378. NTAPI
  2379. ZwAccessCheckAndAuditAlarm (
  2380. IN PUNICODE_STRING SubsystemName,
  2381. IN PVOID HandleId,
  2382. IN PUNICODE_STRING ObjectTypeName,
  2383. IN PUNICODE_STRING ObjectName,
  2384. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2385. IN ACCESS_MASK DesiredAccess,
  2386. IN PGENERIC_MAPPING GenericMapping,
  2387. IN BOOLEAN ObjectCreation,
  2388. OUT PACCESS_MASK GrantedAccess,
  2389. OUT PNTSTATUS AccessStatus,
  2390. OUT PBOOLEAN GenerateOnClose
  2391. );
  2392. NTSYSAPI
  2393. NTSTATUS
  2394. NTAPI
  2395. ZwAccessCheckByTypeAndAuditAlarm (
  2396. IN PUNICODE_STRING SubsystemName,
  2397. IN PVOID HandleId,
  2398. IN PUNICODE_STRING ObjectTypeName,
  2399. IN PUNICODE_STRING ObjectName,
  2400. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2401. IN PSID PrincipalSelfSid,
  2402. IN ACCESS_MASK DesiredAccess,
  2403. IN AUDIT_EVENT_TYPE AuditType,
  2404. IN ULONG Flags,
  2405. IN POBJECT_TYPE_LIST ObjectTypeList OPTIONAL,
  2406. IN ULONG ObjectTypeListLength,
  2407. IN PGENERIC_MAPPING GenericMapping,
  2408. IN BOOLEAN ObjectCreation,
  2409. OUT PACCESS_MASK GrantedAccess,
  2410. OUT PNTSTATUS AccessStatus,
  2411. OUT PBOOLEAN GenerateOnClose
  2412. );
  2413. NTSYSAPI
  2414. NTSTATUS
  2415. NTAPI
  2416. ZwAccessCheckByTypeResultListAndAuditAlarm (
  2417. IN PUNICODE_STRING SubsystemName,
  2418. IN PVOID HandleId,
  2419. IN PUNICODE_STRING ObjectTypeName,
  2420. IN PUNICODE_STRING ObjectName,
  2421. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2422. IN PSID PrincipalSelfSid,
  2423. IN ACCESS_MASK DesiredAccess,
  2424. IN AUDIT_EVENT_TYPE AuditType,
  2425. IN ULONG Flags,
  2426. IN POBJECT_TYPE_LIST ObjectTypeList OPTIONAL,
  2427. IN ULONG ObjectTypeListLength,
  2428. IN PGENERIC_MAPPING GenericMapping,
  2429. IN BOOLEAN ObjectCreation,
  2430. OUT PACCESS_MASK GrantedAccess,
  2431. OUT PNTSTATUS AccessStatus,
  2432. OUT PBOOLEAN GenerateOnClose
  2433. );
  2434. NTSYSAPI
  2435. NTSTATUS
  2436. NTAPI
  2437. ZwAccessCheckByTypeResultListAndAuditAlarmByHandle (
  2438. IN PUNICODE_STRING SubsystemName,
  2439. IN PVOID HandleId,
  2440. IN HANDLE ClientToken,
  2441. IN PUNICODE_STRING ObjectTypeName,
  2442. IN PUNICODE_STRING ObjectName,
  2443. IN PSECURITY_DESCRIPTOR SecurityDescriptor,
  2444. IN PSID PrincipalSelfSid,
  2445. IN ACCESS_MASK DesiredAccess,
  2446. IN AUDIT_EVENT_TYPE AuditType,
  2447. IN ULONG Flags,
  2448. IN POBJECT_TYPE_LIST ObjectTypeList OPTIONAL,
  2449. IN ULONG ObjectTypeListLength,
  2450. IN PGENERIC_MAPPING GenericMapping,
  2451. IN BOOLEAN ObjectCreation,
  2452. OUT PACCESS_MASK GrantedAccess,
  2453. OUT PNTSTATUS AccessStatus,
  2454. OUT PBOOLEAN GenerateOnClose
  2455. );
  2456. NTSYSAPI
  2457. NTSTATUS
  2458. NTAPI
  2459. ZwOpenObjectAuditAlarm (
  2460. IN PUNICODE_STRING SubsystemName,
  2461. IN PVOID HandleId OPTIONAL,
  2462. IN PUNICODE_STRING ObjectTypeName,
  2463. IN PUNICODE_STRING ObjectName,
  2464. IN PSECURITY_DESCRIPTOR SecurityDescriptor OPTIONAL,
  2465. IN HANDLE ClientToken,
  2466. IN ACCESS_MASK DesiredAccess,
  2467. IN ACCESS_MASK GrantedAccess,
  2468. IN PPRIVILEGE_SET Privileges OPTIONAL,
  2469. IN BOOLEAN ObjectCreation,
  2470. IN BOOLEAN AccessGranted,
  2471. OUT PBOOLEAN GenerateOnClose
  2472. );
  2473. NTSYSAPI
  2474. NTSTATUS
  2475. NTAPI
  2476. ZwPrivilegeObjectAuditAlarm (
  2477. IN PUNICODE_STRING SubsystemName,
  2478. IN PVOID HandleId,
  2479. IN HANDLE ClientToken,
  2480. IN ACCESS_MASK DesiredAccess,
  2481. IN PPRIVILEGE_SET Privileges,
  2482. IN BOOLEAN AccessGranted
  2483. );
  2484. NTSYSAPI
  2485. NTSTATUS
  2486. NTAPI
  2487. ZwCloseObjectAuditAlarm (
  2488. IN PUNICODE_STRING SubsystemName,
  2489. IN PVOID HandleId,
  2490. IN BOOLEAN GenerateOnClose
  2491. );
  2492. NTSYSAPI
  2493. NTSTATUS
  2494. NTAPI
  2495. ZwDeleteObjectAuditAlarm (
  2496. IN PUNICODE_STRING SubsystemName,
  2497. IN PVOID HandleId,
  2498. IN BOOLEAN GenerateOnClose
  2499. );
  2500. NTSYSAPI
  2501. NTSTATUS
  2502. NTAPI
  2503. ZwPrivilegedServiceAuditAlarm (
  2504. IN PUNICODE_STRING SubsystemName,
  2505. IN PUNICODE_STRING ServiceName,
  2506. IN HANDLE ClientToken,
  2507. IN PPRIVILEGE_SET Privileges,
  2508. IN BOOLEAN AccessGranted
  2509. );
  2510. NTSYSAPI
  2511. NTSTATUS
  2512. NTAPI
  2513. ZwTraceEvent(
  2514. IN HANDLE TraceHandle,
  2515. IN ULONG Flags,
  2516. IN ULONG FieldSize,
  2517. IN PVOID Fields
  2518. );
  2519. NTSYSAPI
  2520. NTSTATUS
  2521. NTAPI
  2522. ZwContinue (
  2523. IN PCONTEXT ContextRecord,
  2524. IN BOOLEAN TestAlert
  2525. );
  2526. NTSYSAPI
  2527. NTSTATUS
  2528. NTAPI
  2529. ZwRaiseException (
  2530. IN PEXCEPTION_RECORD ExceptionRecord,
  2531. IN PCONTEXT ContextRecord,
  2532. IN BOOLEAN FirstChance
  2533. );