News for hackers. Stuff that matters.
Re:The Art of 64-bit Assembly by masfuerte on Saturday August 01, 2026 @02:51PM (#49137240)
Being pedantic, the COM vtable layout is defined independently of C++. The Windows headers used to (and maybe still do) have macros that could declare COM vtables as explicit structs so you could use Windows COM interfaces from C.

That used to be the case anyway. It's possible they binned the C support in the switch to 64-bit. I haven't looked since.

Re:The Art of 64-bit Assembly by wasmperson on Saturday August 01, 2026 @07:59PM (#49139782)
Yes the support is still there, although official MS documentation no longer mentions it. Some of those headers rather flagrantly violate C's strict aliasing rules, which I suspect is the reason MSVC never implemented type-based aliasing optimizations.
Re:The Art of 64-bit Assembly by rramadass on Sunday August 02, 2026 @06:16AM (#49142987)
COM is still a language-independent binary standard. The first three entries in the vtable must always be IUnknown methods and all methods must use __stdcall calling convention.

The Layout of a COM Object by Raymond Chen - https://devblogs.microsoft.com/oldnewthing/20040205-00/?p=40...