Comments (2)
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.
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)
- Latest WDK metadata fails to create DEVPKEY field
- Daily nuget feed not updating HOT 1
- MFTEnumEx signature incorrect
- `VirtualFreeEx` missing HOT 1
- Missing NtCreateThread and NtCreateThreadEx functions HOT 1
- Add an analyzer to catch inadvertent ephemeral delegates HOT 4
- Missing `CryptCATCDFEnumMembersByCDFTagEx` and `CryptCATCDFEnumAttributesWithCDFTag` HOT 1
- `ReadFileEx` incorrectly takes a `Span<byte>`
- WINMM `PlaySound` does not allow passing byte arrays. HOT 1
- CsWIn32 generates DllImports with legacy com marshalling even when BuiltInComInteropSupport is set to false (and it's not supported) HOT 1
- Properly terminate `<see href="">` tags in generated XML documentation. HOT 1
- VariableLengthInlineArray - VS2019 - CS8170 and CS8347
- AddVectoredExceptionHandler handler callback causes ExecutionEngineException
- Class modifiers would conflict when different two packages have different modifier HOT 1
- Add option to generate ExcludeFromCodeCoverage on source generated objects
- SystemParametersInfo cannot read the path of the desktop background image
- Incorrect triple pointer for `MFEnumDeviceSources`
- Regression - Null static property not generated for `HDC` in v0.3.106 (Stable) HOT 1
- Provide example code in repo / docs
- CollectMetadataPaths should report an error when there is no metadata instead of returning an empty array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cswin32.