Calling SHGetSetSettings from Delphi

后端 未结 4 769
太阳男子
太阳男子 2020-12-21 07:47

I just read this question and this question, and since then I have been trying to call SHGetSetSettings in Delphi. This is a function of shell32.dll, but is not

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-21 08:19

    Afaik bitfields in C are a subtype of integer. There are ways to pack it, but also in C, after a bunch of single bit fields, there will be padding to the next byte boundery (and probably even to the next integer boundery). Moreover C's sizeof doesn't support halves either.

    So probably it is 1+6+1 times sizeof(integer)= 32bytes.

提交回复
热议问题