From dcaae5dea7a22183576ee6ce3045cacab085a56c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Jan 2022 18:12:15 +0300 Subject: PU::IsMirandaFolderWritable - core function to detect if need to draw a shield on buttons that require escalation --- include/m_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/m_utils.h b/include/m_utils.h index 421f52a3a3..026666bbce 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -412,6 +412,9 @@ namespace PU // Checks if we're working via pu_stub or not MIR_APP_DLL(bool) IsDirect(); + // Checks if Miranda's folder is writeable + MIR_APP_DLL(bool) IsMirandaFolderWritable(); + // Checks if a process has enough rights to write into Miranda's folder MIR_APP_DLL(bool) IsProcessElevated(); -- cgit v1.2.3