Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

<processthreadsapi.h> part 2 #497

Merged
merged 24 commits into from
Jul 12, 2020

Conversation

vatsan-madhavan
Copy link
Member

Addresses part of #491

Functions

  • GetProcessInformation
  • SetProcessInformation

<< plus a test >>

Structs/types

  • MEMORY_PRIORITY_INFORMATION
  • PROCESS_MEMORY_EXHAUSTION_TYPE
  • PROCESS_MEMORY_EXHAUSTION_INFO
  • APP_MEMORY_INFORMATION
  • PROCESS_POWER_THROTTLING_STATE
  • PROCESS_PROTECTION_LEVEL_INFORMATION
  • PROCESS_LEAP_SECOND_INFO
  • PROCESS_INFORMATION_CLASS

Additional types

  • MemoryPriority enum
    • Memory priority for thread or process
  • ProcessorPowerThrottlingFlags enum
    • Flags used with PROCESS_POWER_THROTTLING_STATE struct
  • ProcessProtectionLevel enum
    • Process protection level values
  • ProcessLeapSecondInfoFlags enum
    • Flags used in PROCESS_LEAP_SECOND_INFO fields

Copy link
Collaborator

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this sizeable contribution. :)

src/Kernel32/Kernel32+APP_MEMORY_INFORMATION.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32+PROCESS_MEMORY_EXHAUSTION_INFO.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32+PROCESS_MEMORY_EXHAUSTION_INFO.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32+PROCESS_MEMORY_EXHAUSTION_INFO.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32.Helpers.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32.Helpers.cs Outdated Show resolved Hide resolved
@vatsan-madhavan
Copy link
Member Author

I see the merge conflict - I’ll resolve soon.

@AArnott
Copy link
Collaborator

AArnott commented Jul 9, 2020

@vatsan-madhavan Resolving the PublicAPI.Unshipped.txt conflict can be really hairy. So just a tip: clear the whole file out, and use the language service to fully re-populate it.

src/Kernel32/Kernel32+APP_MEMORY_INFORMATION.cs Outdated Show resolved Hide resolved
src/Kernel32/Kernel32.cs Outdated Show resolved Hide resolved
@vatsan-madhavan
Copy link
Member Author

clear the whole file out, and use the language service to fully re-populate it.

thanks - that worked well.

@AArnott AArnott merged commit 440808b into dotnet:master Jul 12, 2020
@vatsan-madhavan vatsan-madhavan deleted the procssthreadsapi-p2 branch July 12, 2020 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants