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

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