Giter Club home page Giter Club logo

Comments (2)

Ephron-WL avatar Ephron-WL commented on August 22, 2024 1

Ok, I see what you mean. There are three CONTEXT classes, each with an individual architecture attribute (before I only noticed the one). I'm not using the CsWin32 in a conventional manner. The Generator needs to resolve the target platform. I was able to modify my code so that it could do that and it works fine now. Thank you for your assistance. It is much appreciated.

from cswin32.

AArnott avatar AArnott commented on August 22, 2024

I can't repro the problem.

What platform are you compiling for when you see this exception?
When I target AnyCPU, I (rightly) see this as a compile error:

warning PInvoke005: This API is only available when targeting a specific CPU architecture. AnyCPU cannot generate this API.

When I target x64 or arm64, compilation succeeds, as expected.

This is using CsWin32 0.3.49-beta. What version are you using?

Additional info:
The ARM64_NT_CONTEXT struct distinct from CONTEXT and is only defined for x64 and x86 architectures.
CONTEXT itself is defined 3 times in the metadata, because it is architecture specific. The presence of the SupportedArchitecture attribute on the struct is therefore not misplaced as far as I can tell.

from cswin32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.