From abfe10c37eef640a098797309a8a84cdd94aa20e Mon Sep 17 00:00:00 2001 From: Liryna Date: Wed, 17 Jan 2024 08:40:54 -0500 Subject: [PATCH] Library - Doc - Add current session mount option impersonation limitation #1196 --- dokan/dokan.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dokan/dokan.h b/dokan/dokan.h index 1674c11e..44276359 100644 --- a/dokan/dokan.h +++ b/dokan/dokan.h @@ -102,7 +102,12 @@ extern "C" { * \ref DOKAN_OPERATIONS.Mounted parameters will contain the new mount point. */ #define DOKAN_OPTION_MOUNT_MANAGER (1 << 6) -/** Mount the drive on current session only */ +/** + * Mount the drive on current session only + * Note: As Windows process only have on sessionID which is here used to define what is the current session, + * impersonation will not work if someone attend to mount for a user from another one (like system service). + * See issue #1196 + */ #define DOKAN_OPTION_CURRENT_SESSION (1 << 7) /** Enable Lockfile/Unlockfile operations. Otherwise Dokan will take care of it */ #define DOKAN_OPTION_FILELOCK_USER_MODE (1 << 8)