[PATCH 0/1] MR4958: include: Add ntifs.h
Moved here since I forgot to add it during a rebase. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4958
From: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Moved here since I forgot to add it during a rebase. --- include/ntifs.h | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 include/ntifs.h diff --git a/include/ntifs.h b/include/ntifs.h new file mode 100644 index 00000000000..25af12a413a --- /dev/null +++ b/include/ntifs.h @@ -0,0 +1,70 @@ +/* + * Win32 definitions for Windows NT + * + * Copyright 2012 Erich E. Hoover + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __WINE_NTIFS_H +#define __WINE_NTIFS_H + +#include <pshpack2.h> +typedef struct _REPARSE_DATA_BUFFER { + ULONG ReparseTag; + USHORT ReparseDataLength; + USHORT Reserved; + union { + struct { + USHORT SubstituteNameOffset; + USHORT SubstituteNameLength; + USHORT PrintNameOffset; + USHORT PrintNameLength; + ULONG Flags; + WCHAR PathBuffer[1]; + } SymbolicLinkReparseBuffer; + struct { + USHORT SubstituteNameOffset; + USHORT SubstituteNameLength; + USHORT PrintNameOffset; + USHORT PrintNameLength; + WCHAR PathBuffer[1]; + } MountPointReparseBuffer; + struct { + ULONG Version; + UCHAR PathBuffer[1]; + } LinuxSymbolicLinkReparseBuffer; + struct { + UCHAR DataBuffer[1]; + } GenericReparseBuffer; + }; +} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; +#include <poppack.h> + +typedef struct _REPARSE_GUID_DATA_BUFFER { + DWORD ReparseTag; + WORD ReparseDataLength; + WORD Reserved; + GUID ReparseGuid; + struct { + BYTE DataBuffer[1]; + } GenericReparseBuffer; +} REPARSE_GUID_DATA_BUFFER, *PREPARSE_GUID_DATA_BUFFER; + +#define REPARSE_GUID_DATA_BUFFER_HEADER_SIZE FIELD_OFFSET(REPARSE_GUID_DATA_BUFFER, GenericReparseBuffer) + +#define SYMLINK_FLAG_RELATIVE 0x00000001 + +#endif /* __WINE_NTIFS_H */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4958
We already have ntifs.h in include/ddk/. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4958#note_59417
This merge request was closed by Alistair Leslie-Hughes. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4958
participants (3)
-
Alistair Leslie-Hughes -
Alistair Leslie-Hughes (@alesliehughes) -
Zebediah Figura (@zfigura)