Comments (3)
Can you give a concrete example of a pair of structs that are problematic for you so we can test the solution?
from cswin32.
Here are some examples from my current SignerSignEx2
call:
- SIGNER_SUBJECT_INFO & SIGNER_FILE_INFO
- SIGNER_CERT & SIGNER_CERT_STORE_INFO
- SIGNER_SIGNATURE_INFO & SIGNER_ATTR_AUTHCODE
Best regards,
D.R.
from cswin32.
Oh, those all use explicit layout unions, so either C# or the runtime will likely not allow what you're asking for. Can you try declaring the structs yourself with the proposed modifications and see if it works? You can start by copying out the CsWin32 generated ones into your own code. If you use the same namespace and type names, CsWin32 will gracefully stop emitting the types that you yourself define.
from cswin32.
Related Issues (20)
- Questions regarding additional structs HOT 3
- Seems a `MONITORINFOF_PRIMARY` const/enum is not defined/generated when using `PInvoke.GetMonitorInfo()` and `MONITORINFO` struct HOT 4
- Unable to get dbcc_name from DEV_BROADCAST_DEVICEINTERFACE_W HOT 2
- CsWin32 ignores `Out` attribute
- CsWin32 ignores `Out` attribute HOT 1
- `GetKernelObjectSecurity` should return `bool` instead of `unsafe Windows.Win32.Foundation.BOOL` HOT 4
- `Windows.Win32.Security.PSECURITY_DESCRIPTOR` should provide safe input and output HOT 1
- HRESULT_FROM_WIN32 HOT 3
- Provide SafeHandle instead of manually calling CredFree HOT 3
- .NET 8 has CS9195 warnings for generated code HOT 4
- Improve bit fields support HOT 1
- PInvoke007 - The API "IOCTL_*" is ambiguous. Please specify one of: "IOCTL_*" or "IOCTL_*". HOT 1
- NVME types not generated HOT 1
- How to work with types like __CHAR_260? HOT 1
- `struct*` return types on extern methods generated without pointer when marshaling is allowed HOT 5
- IGroupPolicyObject is missing return values HOT 10
- Support multiple NativeMethods.json files HOT 6
- Addition of MAKELPARAM, MAKEWPARAM, MAKELRESULT macro HOT 3
- Additional metadata file fails with BadImageFormatException or bad namespace syntax
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.