Skip to content

Consider adding SetLastError=true in DllImport declarations #5

@olivierdagenais

Description

@olivierdagenais

The documentation on the DllImportAttribute.SetLastError field says that its default value is false, but I think most Windows API methods will return 0 on failure and then say to call GetLastError() to find out what happened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions