-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CF_CONNECTION_KEY should be LONGLONG #871
Comments
Hey @taufikrh, good catch. In the future, please open separate issues for each item as bundling several issues together is very confusing.
Agreed. #define DECLARE_OPAQUE_KEY( name ) \
typedef struct name##__ { \
LONGLONG Internal; \
} name, *P##name
DECLARE_OPAQUE_KEY( CF_CONNECTION_KEY );
Created new issue #885
Will defer to @mikebattista @sotteson1. These are so poorly documented (and documented as obsolete) that perhaps we should just drop them altogether.
There is no size in metadata today. The FieldOffsets are correct, so don't think there's an issue here? public struct HSTRING_HEADER
{
[StructLayout(LayoutKind.Explicit)]
public struct _Reserved_e__Union
{
[FieldOffset(0)]
public unsafe void* Reserved1;
[FieldOffset(0)]
public CHAR[] Reserved2;
}
public _Reserved_e__Union Reserved;
}
Sounds reasonable, created a new enhancement to track that #886 |
@sotteson1 @mikebattista How do you want to handle the CF_CONNECTION_KEY? We have an entry in {
"Namespace": "Windows.Win32.Storage.CloudFilters",
"Name": "CF_CONNECTION_KEY",
"ValueType": "long",
"InvalidHandleValues": [ -1, 0 ]
}, But it's also discovered during scraping (which then gets renamed to public partial struct CF_CONNECTION_KEY__
{
[NativeTypeName("LONGLONG")]
public long Internal;
} We could delete the |
Thanks @riverar #if defined(_WIN64)
char Reserved2[24];
#else
char Reserved2[20];
#endif See my request additional union member, So, actualy the sizeof(HSTRING_HEADER) is depend on Reserved2 |
@taufikrh There are no sizes specified, see the metadata I pasted above. Are you seeing sizes somewhere else? |
Yes. No size specified in metadata, we dont have problem with packing size. |
The following TypeDefs is invalid
Native TypeDef
CF_CONNECTION_KEY
should Int64Duplicate item
NDR_SCONTEXT_1
with_NDR_SCONTEXT
tcp_request_query_information_ex_xp
The Context size (array) should different on each platform
HSTRING_HEADER
The
Reserved2
size is should different on each platformRequest
If possible please inject additional union member (struct) for
HSTRING_HEADER
.This kind of struct is useful for referencing
HSTRING_HEADER
fromwchar_t*
see
__Platform_Details_HSTRING_HEADER
(vccorlib.h) andhstring_header
(winsdkInc\cppwinrt\winrt\base.h)The text was updated successfully, but these errors were encountered: