summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-01-10 18:12:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-01-10 18:12:15 +0300
commitdcaae5dea7a22183576ee6ce3045cacab085a56c (patch)
tree8b5edf03e7a8c8fa2e3d74ab54de2932fb6566d8 /include
parent26b0b0cc55d29b549bd364e622e95c55ef6ea24d (diff)
PU::IsMirandaFolderWritable - core function to detect if need to draw a shield on buttons that require escalation
Diffstat (limited to 'include')
-rw-r--r--include/m_utils.h3
1 files changed, 3 insertions, 0 deletions
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();