summaryrefslogtreecommitdiff
path: root/deps/uv/src/win/winapi.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-09-04 16:13:03 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-09-04 16:17:00 -0700
commit17021ea631dc1eb249f22035a79b7e63402dfa8c (patch)
tree671327e9ea23fc0826e4be26d97a268cb71d32f6 /deps/uv/src/win/winapi.h
parent3742aeea4c6b0b18491cc80f940be28dfd301492 (diff)
downloadandroid-node-v8-17021ea631dc1eb249f22035a79b7e63402dfa8c.tar.gz
android-node-v8-17021ea631dc1eb249f22035a79b7e63402dfa8c.tar.bz2
android-node-v8-17021ea631dc1eb249f22035a79b7e63402dfa8c.zip
Upgrade libuv to 142a702
Diffstat (limited to 'deps/uv/src/win/winapi.h')
-rw-r--r--deps/uv/src/win/winapi.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/deps/uv/src/win/winapi.h b/deps/uv/src/win/winapi.h
index 9feee8bb5c..9dc0acb288 100644
--- a/deps/uv/src/win/winapi.h
+++ b/deps/uv/src/win/winapi.h
@@ -4075,6 +4075,33 @@
(FACILITY_NTWIN32 << 16) | ERROR_SEVERITY_ERROR)))
#endif
+/* from ntifs.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 {
+ UCHAR DataBuffer[1];
+ } GenericReparseBuffer;
+ } DUMMYUNIONNAME;
+} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
+
typedef struct _IO_STATUS_BLOCK {
union {
NTSTATUS Status;
@@ -4186,6 +4213,8 @@ typedef NTSTATUS (NTAPI *sNtSetInformationFile)
#define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
#define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
+#define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1
+
#ifdef __MINGW32__
typedef struct _OVERLAPPED_ENTRY {
ULONG_PTR lpCompletionKey;
@@ -4207,6 +4236,11 @@ typedef BOOL (WINAPI* sSetFileCompletionNotificationModes)
(HANDLE FileHandle,
UCHAR Flags);
+typedef BOOLEAN (WINAPI* sCreateSymbolicLinkA)
+ (LPCSTR lpSymlinkFileName,
+ LPCSTR lpTargetFileName,
+ DWORD dwFlags);
+
/* Ntapi function pointers */
extern sRtlNtStatusToDosError pRtlNtStatusToDosError;
@@ -4217,5 +4251,6 @@ extern sNtSetInformationFile pNtSetInformationFile;
/* Kernel32 function pointers */
extern sGetQueuedCompletionStatusEx pGetQueuedCompletionStatusEx;
extern sSetFileCompletionNotificationModes pSetFileCompletionNotificationModes;
+extern sCreateSymbolicLinkA pCreateSymbolicLinkA;
#endif /* UV_WIN_WINAPI_H_ */