From d085fca1a22d2e883427fe7f94c0b45869f401b4 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Mon, 11 Aug 2025 17:44:14 +0200 Subject: [PATCH 1/5] Document SEC_NO_CHANGE --- .../memoryapi/nf-memoryapi-createfilemappingw.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingw.md b/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingw.md index 86ba146c7741..39cd05733202 100644 --- a/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingw.md +++ b/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingw.md @@ -337,6 +337,19 @@ Applications should not use this attribute except when SEC_NOCACHE requires either the SEC_RESERVE or SEC_COMMIT attribute to be set. + + + +
+
SEC_NO_CHANGE
+
0x00400000
+
+ + +Marks the mapping as permanent. Memory protections can not be changed for views of the mapping and the view can not be unmapped. + +SEC_NO_CHANGE cannot be combined with SEC_IMAGE. + From 8a96ea91aa15f0931765af19fa650c6e31093d66 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Thu, 14 Aug 2025 19:28:19 +0200 Subject: [PATCH 2/5] Update nf-winbase-createfilemappingnumaa.md --- .../winbase/nf-winbase-createfilemappingnumaa.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdk-api-src/content/winbase/nf-winbase-createfilemappingnumaa.md b/sdk-api-src/content/winbase/nf-winbase-createfilemappingnumaa.md index 2adaa2c9122c..b6261f0c2d0b 100644 --- a/sdk-api-src/content/winbase/nf-winbase-createfilemappingnumaa.md +++ b/sdk-api-src/content/winbase/nf-winbase-createfilemappingnumaa.md @@ -296,6 +296,18 @@ Applications should not use this flag except when explicitly required SEC_NOCACHE requires either SEC_RESERVE or SEC_COMMIT to be set. + + + +
+
SEC_NO_CHANGE
+
0x00400000
+
+ + +Marks the mapping as permanent. Memory protections can not be changed for views of the mapping and the view can not be unmapped. + +SEC_NO_CHANGE cannot be combined with SEC_IMAGE. From 93a563d065df5bbd5f7c07dc224770de4d7949fd Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Thu, 14 Aug 2025 19:29:20 +0200 Subject: [PATCH 3/5] Update nf-winbase-createfilemappinga.md --- .../content/winbase/nf-winbase-createfilemappinga.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdk-api-src/content/winbase/nf-winbase-createfilemappinga.md b/sdk-api-src/content/winbase/nf-winbase-createfilemappinga.md index 473a5453ed80..9a2316beec9a 100644 --- a/sdk-api-src/content/winbase/nf-winbase-createfilemappinga.md +++ b/sdk-api-src/content/winbase/nf-winbase-createfilemappinga.md @@ -336,6 +336,18 @@ Applications should not use this attribute except when SEC_NOCACHE requires either the SEC_RESERVE or SEC_COMMIT attribute to be set. + + + +
+
SEC_NO_CHANGE
+
0x00400000
+
+ + +Marks the mapping as permanent. Memory protections can not be changed for views of the mapping and the view can not be unmapped. + +SEC_NO_CHANGE cannot be combined with SEC_IMAGE. From 47af3ea1097b015df97da366038534aab55159d1 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Thu, 14 Aug 2025 19:30:54 +0200 Subject: [PATCH 4/5] Update nf-memoryapi-createfilemappingfromapp.md --- .../nf-memoryapi-createfilemappingfromapp.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingfromapp.md b/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingfromapp.md index 8a4c6c3f6d46..eb38f6cc5e81 100644 --- a/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingfromapp.md +++ b/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemappingfromapp.md @@ -243,6 +243,18 @@ Applications should not use this attribute except when SEC_NOCACHE requires either the SEC_RESERVE or SEC_COMMIT attribute to be set. + + + +
+
SEC_NO_CHANGE
+
0x00400000
+
+ + +Marks the mapping as permanent. Memory protections can not be changed for views of the mapping and the view can not be unmapped. + +SEC_NO_CHANGE cannot be combined with SEC_IMAGE. @@ -454,4 +466,4 @@ File Mapping Functions -WriteFile \ No newline at end of file +WriteFile From 0afb8b6955d5fceedfd2b8089f605b36847f9abf Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Thu, 14 Aug 2025 19:31:39 +0200 Subject: [PATCH 5/5] Update nf-memoryapi-createfilemapping2.md --- .../memoryapi/nf-memoryapi-createfilemapping2.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemapping2.md b/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemapping2.md index 4d510efd69f2..e930914f52b7 100644 --- a/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemapping2.md +++ b/sdk-api-src/content/memoryapi/nf-memoryapi-createfilemapping2.md @@ -307,6 +307,18 @@ Applications should not use this attribute except when SEC_NOCACHE requires either the SEC_RESERVE or SEC_COMMIT attribute to be set. + + + +
+
SEC_NO_CHANGE
+
0x00400000
+
+ + +Marks the mapping as permanent. Memory protections can not be changed for views of the mapping and the view can not be unmapped. + +SEC_NO_CHANGE cannot be combined with SEC_IMAGE.