Skip to content

x/sys/windows: add SEC_* constants #56053

Open
@piotr-sneller

Description

@piotr-sneller

What version of Go are you using (go version)?

1.19.2

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

windows/amd64

What did you expect to see?

Hi,

this is not a "notable change", so I am reporting it as a bug for the lack of a better idea.

CreateFileMapping() can take more protection flags than the windows package defines at the moment. I believe the file would be memory_windows.go; could you please add the following?

SEC_COMMIT           = 0x08000000
SEC_IMAGE            = 0x01000000
SEC_IMAGE_NO_EXECUTE = 0x11000000
SEC_LARGE_PAGES      = 0x80000000
SEC_NOCACHE          = 0x10000000
SEC_RESERVE          = 0x04000000
SEC_WRITECOMBINE     = 0x40000000

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions