I have tried you code. It seems to work in both 32-bit and 64-bit. I had to replace line 14
with
DomainNameParams.Flags := 0;
DomainNameParams.OptionId := OPTION_DOMAIN_NAME;
(That could be the reason, why you didnt get a domain name)
I have compared your solution with my code, and found, that my cod works, if I replace the uses:
JwaWindows;
with
jwadhcpcsdk;
Thank you, very much - if you have an explanation, why jwaWindows not works in 64bit, but works in 32bit, but have to be replaced with jwadhcpcsdk , I would like to know.