Skip to content

What's the purpose of PInvokeDllNames.cs #17563

@jborean93

Description

@jborean93

Prerequisites

Steps to reproduce

I'm wondering what the purpose of https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/utils/PInvokeDllNames.cs, specifically

  • Why is there a counter for each entry as a comment
  • Why is there a constant for each extern name rather than just the DLL itself
  • Why do some things use these constants while others do not
  • Further to the above, why do these use the one core dll names where others do not

Expected behavior

N/A

Actual behavior

N/A

Error details

N/A

Environment data

N/A

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-Won't FixThe issue won't be fixed, possibly due to compatibility reason.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions