jpm,
@jpm@aus.social avatar

Luv2Read API documentation that basically says “if you’re reading this you’re already elbows-deep in some fucking wizard-level shit, because this is kinda how it looks like but we don’t actually provide headers for it”

jpm,
@jpm@aus.social avatar

This is real documentation, written by a real software company: https://learn.microsoft.com/en-us/windows/win32/devnotes/attribute-record-header

jpm,
@jpm@aus.social avatar

Does anyone want to guess exactly how big an ATTRIBUTE_TYPE_CODE is?

mattrobertson,
@mattrobertson@aus.social avatar

@jpm it’s Microsoft so it’s 3 chars right?

jpm,
@jpm@aus.social avatar

@mattrobertson it is not a WCHAR (2 bytes)

jpm,
@jpm@aus.social avatar

Hint - it is not on that page, it’s one click away here: https://learn.microsoft.com/en-us/windows/win32/devnotes/master-file-table

mattrobertson,
@mattrobertson@aus.social avatar

@jpm I need to know now, is it an enum stored as an int? I hate them

jpm,
@jpm@aus.social avatar

@mattrobertson that’s right. The bonus question is, how many 8-bit bytes, as stored on the disk, are in an int?

mattrobertson,
@mattrobertson@aus.social avatar

@jpm 4!

jpm,
@jpm@aus.social avatar

@mattrobertson dingdingding we have a winner!

Do you want to go for the grand prize and guess what the magical end value of 0xFFFFFFFF documented on the second link actually is?

mattrobertson,
@mattrobertson@aus.social avatar

@jpm I do not!

jpm,
@jpm@aus.social avatar

@mattrobertson fair. I don’t know either, so I’m assuming 2^32-1 and using an unsigned

jpm,
@jpm@aus.social avatar

For those playing along at home, we have a winner! Now, I wonder if it’s signed or unsigned… https://aus.social/@jpm/111847649408742022

screw_dog,
@screw_dog@aus.social avatar

@jpm the values listed are all single bytes in hex, but that's to easy, right??

jpm,
@jpm@aus.social avatar

@screw_dog correct, that would be way too easy

glent,
@glent@aus.social avatar

@jpm For me, it 's API documentation which provides only examples. And I have a problem which is none of the above and want to know what the API can be relied upon to do.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines