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

SetWindowLongPtr on 32-bit #385

Closed
@ghost

Description

[This is an issue about my recent PR 384]

According to the documentation for SetWindowLongPtr,

When compiling for 32-bit Windows, SetWindowLongPtr is defined as a call to the SetWindowLong function.

What this really means is that calls to PInvoke.User32.SetWindowLongPtr on 32-bit processes will (and do) result in an EntryPointNotFoundException

Thoughts on how to, or whether to, fix this?

I feel like this should be fixed, by exposing SetWindowLongPtr through User32.Helpers.cs and conditionally calling SetWindowLongPtr on 64-bit vs. SetWindowLong on 32-bit.

If no objections, I'll submit another PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions