Skip to content

The friendly wrappers for NtQueryInformationProcess()/NtQueryObject()/NtQuerySystemInformation() should be out uint ReturnLength, not ref. #2165

@mjr4077au

Description

@mjr4077au

Actual behavior

These friendly overloads provide ReturnLength to the caller via a ref uint value, however the documentation clearly says its an out variable only.

Expected behavior

Use out instead of ref to provide a nicer interface to the caller.

Repro steps

  1. NativeMethods.txt content:
NtQueryInformationProcess
NtQueryObject
NtQuerySystemInformation
  1. NativeMethods.json content (if present): N/A

  2. Any of your own code that should be shared? N/A

Context

  • CsWin32 version: 0.3.253
  • Win32Metadata version (if explicitly set by project): N/A
  • Target Framework: net472
  • LangVersion (if explicitly set by project): N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions