From deb67e98ff9651e46d1881e9cdf142b78ca6bea4 Mon Sep 17 00:00:00 2001 From: s3cst4rs Date: Tue, 10 Jan 2023 12:44:35 +0800 Subject: [PATCH] Add Registry Standard Access Rights --- windows/registry/key.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/windows/registry/key.go b/windows/registry/key.go index 6c8d97b6a..40fc40728 100644 --- a/windows/registry/key.go +++ b/windows/registry/key.go @@ -33,6 +33,14 @@ const ( // Registry key security and access rights. // See https://msdn.microsoft.com/en-us/library/windows/desktop/ms724878.aspx // for details. + + // Standard access rights + DELETE = 0x00010000 + READ_CONTROL = 0x00020000 + WRITE_DAC = 0x00040000 + WRITE_OWNER = 0x00080000 + + // Specific access rights ALL_ACCESS = 0xf003f CREATE_LINK = 0x00020 CREATE_SUB_KEY = 0x00004