Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7f0c5f3e
Commit
7f0c5f3e
authored
Mar 09, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Mar 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Many new prototypes.
parent
3de25095
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
9 deletions
+111
-9
ntddk.h
include/ntddk.h
+0
-0
ntdef.h
include/ntdef.h
+31
-9
winnt.h
include/winnt.h
+80
-0
No files found.
include/ntddk.h
View file @
7f0c5f3e
This diff is collapsed.
Click to expand it.
include/ntdef.h
View file @
7f0c5f3e
#ifndef __WINE_NTDEF_H
#define __WINE_NTDEF_H
/* fixme: include basestd.h instead */
#include "wintypes.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define NTAPI __stdcall
#ifndef IN
...
...
@@ -15,26 +22,38 @@
#define OPTIONAL
#endif
#ifndef VOID
#define VOID void
#endif
typedef
LONG
NTSTATUS
;
typedef
NTSTATUS
*
PNTSTATUS
;
typedef
short
CSHORT
;
typedef
CSHORT
*
PCSHORT
;
typedef
WCHAR
*
PWCHAR
;
/* NT lowlevel Strings (handled by Rtl* functions in NTDLL)
* If they are zero terminated, Length does not include the terminating 0.
*/
typedef
struct
_STRING
{
U
INT16
Length
;
U
INT16
MaximumLength
;
L
PSTR
Buffer
;
U
SHORT
Length
;
U
SHORT
MaximumLength
;
PSTR
Buffer
;
}
STRING
,
*
PSTRING
,
ANSI_STRING
,
*
PANSI_STRING
;
typedef
struct
_CSTRING
{
U
INT16
Length
;
U
INT16
MaximumLength
;
L
PCSTR
Buffer
;
U
SHORT
Length
;
U
SHORT
MaximumLength
;
PCSTR
Buffer
;
}
CSTRING
,
*
PCSTRING
;
typedef
struct
_UNICODE_STRING
{
U
INT16
Length
;
/* bytes */
U
INT16
MaximumLength
;
/* bytes */
L
PWSTR
Buffer
;
U
SHORT
Length
;
/* bytes */
U
SHORT
MaximumLength
;
/* bytes */
PWSTR
Buffer
;
}
UNICODE_STRING
,
*
PUNICODE_STRING
;
/*
...
...
@@ -61,5 +80,8 @@ typedef struct _OBJECT_ATTRIBUTES
typedef
OBJECT_ATTRIBUTES
*
POBJECT_ATTRIBUTES
;
#ifdef __cplusplus
}
#endif
#endif
include/winnt.h
View file @
7f0c5f3e
...
...
@@ -378,6 +378,11 @@ typedef struct _SID {
DWORD
SubAuthority
[
1
];
}
SID
,
*
PSID
;
#define SID_REVISION (1)
/* Current revision */
#define SID_MAX_SUB_AUTHORITIES (15)
/* current max subauths */
#define SID_RECOMMENDED_SUB_AUTHORITIES (1)
/* recommended subauths */
/*
* ACL
*/
...
...
@@ -551,6 +556,81 @@ typedef struct _TOKEN_STATISTICS {
LUID
ModifiedId
;
}
TOKEN_STATISTICS
;
/*
* ACLs of NT
*/
#define ACL_REVISION 2
#define ACL_REVISION1 1
#define ACL_REVISION2 2
/* ACEs, directly starting after an ACL */
typedef
struct
_ACE_HEADER
{
BYTE
AceType
;
BYTE
AceFlags
;
WORD
AceSize
;
}
ACE_HEADER
,
*
PACE_HEADER
;
/* AceType */
#define ACCESS_ALLOWED_ACE_TYPE 0
#define ACCESS_DENIED_ACE_TYPE 1
#define SYSTEM_AUDIT_ACE_TYPE 2
#define SYSTEM_ALARM_ACE_TYPE 3
/* inherit AceFlags */
#define OBJECT_INHERIT_ACE 0x01
#define CONTAINER_INHERIT_ACE 0x02
#define NO_PROPAGATE_INHERIT_ACE 0x04
#define INHERIT_ONLY_ACE 0x08
#define VALID_INHERIT_FLAGS 0x0F
/* AceFlags mask for what events we (should) audit */
#define SUCCESSFUL_ACCESS_ACE_FLAG 0x40
#define FAILED_ACCESS_ACE_FLAG 0x80
/* different ACEs depending on AceType
* SidStart marks the begin of a SID
* so the thing finally looks like this:
* 0: ACE_HEADER
* 4: ACCESS_MASK
* 8... : SID
*/
typedef
struct
_ACCESS_ALLOWED_ACE
{
ACE_HEADER
Header
;
DWORD
Mask
;
DWORD
SidStart
;
}
ACCESS_ALLOWED_ACE
,
*
PACCESS_ALLOWED_ACE
;
typedef
struct
_ACCESS_DENIED_ACE
{
ACE_HEADER
Header
;
DWORD
Mask
;
DWORD
SidStart
;
}
ACCESS_DENIED_ACE
,
*
PACCESS_DENIED_ACE
;
typedef
struct
_SYSTEM_AUDIT_ACE
{
ACE_HEADER
Header
;
DWORD
Mask
;
DWORD
SidStart
;
}
SYSTEM_AUDIT_ACE
,
*
PSYSTEM_AUDIT_ACE
;
typedef
struct
_SYSTEM_ALARM_ACE
{
ACE_HEADER
Header
;
DWORD
Mask
;
DWORD
SidStart
;
}
SYSTEM_ALARM_ACE
,
*
PSYSTEM_ALARM_ACE
;
typedef
enum
tagSID_NAME_USE
{
SidTypeUser
=
1
,
SidTypeGroup
,
SidTypeDomain
,
SidTypeAlias
,
SidTypeWellKnownGroup
,
SidTypeDeletedAccount
,
SidTypeInvalid
,
SidTypeUnknown
}
SID_NAME_USE
,
*
PSID_NAME_USE
;
/* Access rights */
#define DELETE 0x00010000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment