Commit 0f7cc8d9 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

mountmgr: Add ioctl to read host credentials on macOS.

parent 5b4b8774
......@@ -3,7 +3,7 @@ IMPORTS = uuid advapi32 ntoskrnl
DELAYIMPORTS = user32 iphlpapi
EXTRADLLFLAGS = -Wl,--subsystem,native
EXTRAINCL = $(DBUS_CFLAGS) $(HAL_CFLAGS)
EXTRALIBS = $(DISKARBITRATION_LIBS) $(SYSTEMCONFIGURATION_LIBS) $(CORESERVICES_LIBS)
EXTRALIBS = $(DISKARBITRATION_LIBS) $(SYSTEMCONFIGURATION_LIBS) $(CORESERVICES_LIBS) $(SECURITY_LIBS)
C_SRCS = \
dbus.c \
......
......@@ -74,6 +74,22 @@ struct mountmgr_unix_drive
USHORT label_offset;
};
#define IOCTL_MOUNTMGR_READ_CREDENTIAL CTL_CODE(MOUNTMGRCONTROLTYPE, 48, METHOD_BUFFERED, FILE_READ_ACCESS)
struct mountmgr_credential
{
ULONG targetname_offset;
ULONG targetname_size;
ULONG username_offset;
ULONG username_size;
ULONG comment_offset;
ULONG comment_size;
ULONG blob_offset;
ULONG blob_size;
BOOL blob_preserve;
FILETIME last_written;
};
#define IOCTL_MOUNTMGR_QUERY_DHCP_REQUEST_PARAMS CTL_CODE(MOUNTMGRCONTROLTYPE, 64, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
struct mountmgr_dhcp_request_param
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment