VirtualBox

Changeset 70873 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
Feb 5, 2018 6:13:55 PM (7 years ago)
Author:
vboxsync
Message:

VMMDev,VBoxGuest: Classify who is calling the host (part 1). bugref:9105

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r70417 r70873  
    15331533typedef FILE_FS_ATTRIBUTE_INFORMATION *PFILE_FS_ATTRIBUTE_INFORMATION;
    15341534
     1535#endif
    15351536NTSYSAPI NTSTATUS NTAPI NtOpenProcess(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID);
     1537NTSYSAPI NTSTATUS NTAPI ZwOpenProcess(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID);
     1538NTSYSAPI NTSTATUS NTAPI NtOpenThread(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID);
     1539NTSYSAPI NTSTATUS NTAPI ZwOpenThread(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID);
     1540
     1541#ifdef IPRT_NT_USE_WINTERNL
    15361542NTSYSAPI NTSTATUS NTAPI NtOpenProcessToken(HANDLE, ACCESS_MASK, PHANDLE);
    1537 NTSYSAPI NTSTATUS NTAPI NtOpenThread(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID);
    15381543NTSYSAPI NTSTATUS NTAPI NtOpenThreadToken(HANDLE, ACCESS_MASK, BOOLEAN, PHANDLE);
    1539 
     1544#endif
     1545NTSYSAPI NTSTATUS NTAPI ZwOpenProcessToken(HANDLE, ACCESS_MASK, PHANDLE);
     1546NTSYSAPI NTSTATUS NTAPI ZwOpenThreadToken(HANDLE, ACCESS_MASK, BOOLEAN, PHANDLE);
     1547
     1548#ifdef IPRT_NT_USE_WINTERNL
    15401549typedef enum _FSINFOCLASS
    15411550{
     
    16851694NTSYSAPI NTSTATUS NTAPI NtQueryFullAttributesFile(POBJECT_ATTRIBUTES, PFILE_NETWORK_OPEN_INFORMATION);
    16861695
     1696
     1697/** @name SE_GROUP_XXX - Attributes returned with TokenGroup and others.
     1698 * @{  */
     1699#ifndef SE_GROUP_MANDATORY
     1700# define SE_GROUP_MANDATORY             UINT32_C(0x01)
     1701#endif
     1702#ifndef SE_GROUP_ENABLED_BY_DEFAULT
     1703# define SE_GROUP_ENABLED_BY_DEFAULT    UINT32_C(0x02)
     1704#endif
     1705#ifndef SE_GROUP_ENABLED
     1706# define SE_GROUP_ENABLED               UINT32_C(0x04)
     1707#endif
     1708#ifndef SE_GROUP_OWNER
     1709# define SE_GROUP_OWNER                 UINT32_C(0x08)
     1710#endif
     1711#ifndef SE_GROUP_USE_FOR_DENY_ONLY
     1712# define SE_GROUP_USE_FOR_DENY_ONLY     UINT32_C(0x10)
     1713#endif
     1714#ifndef SE_GROUP_INTEGRITY
     1715# define SE_GROUP_INTEGRITY             UINT32_C(0x20)
     1716#endif
     1717#ifndef SE_GROUP_INTEGRITY_ENABLED
     1718# define SE_GROUP_INTEGRITY_ENABLED     UINT32_C(0x40)
     1719#endif
     1720#ifndef SE_GROUP_RESOURCE
     1721# define SE_GROUP_RESOURCE              UINT32_C(0x20000000)
     1722#endif
     1723#ifndef SE_GROUP_LOGON_ID
     1724# define SE_GROUP_LOGON_ID              UINT32_C(0xc0000000)
     1725#endif
     1726/** @} */
     1727
     1728
    16871729#ifdef IPRT_NT_USE_WINTERNL
    16881730
     
    19101952
    19111953NTSYSAPI NTSTATUS NTAPI NtQueryInformationToken(HANDLE, TOKEN_INFORMATION_CLASS, PVOID, ULONG, PULONG);
     1954NTSYSAPI NTSTATUS NTAPI ZwQueryInformationToken(HANDLE, TOKEN_INFORMATION_CLASS, PVOID, ULONG, PULONG);
    19121955
    19131956NTSYSAPI NTSTATUS NTAPI NtReadFile(HANDLE, HANDLE, PIO_APC_ROUTINE, PVOID, PIO_STATUS_BLOCK, PVOID, ULONG, PLARGE_INTEGER, PULONG);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette