www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to add struct definition?

reply Injeckt <vinsentlou9 gmail.com> writes:
I need to add this struct definition in my project. But how to do 
that?
This structure:
https://docs.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_adapter_info
Sep 08 2022
next sibling parent Paul Backus <snarwin gmail.com> writes:
On Friday, 9 September 2022 at 00:16:01 UTC, Injeckt wrote:
 I need to add this struct definition in my project. But how to 
 do that?
 This structure:
 https://docs.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_adapter_info
import core.sys.windows.iptypes;
Sep 08 2022
prev sibling parent John Chapman <john.chapman live.com> writes:
On Friday, 9 September 2022 at 00:16:01 UTC, Injeckt wrote:
 I need to add this struct definition in my project. But how to 
 do that?
 This structure:
 https://docs.microsoft.com/en-us/windows/win32/api/iptypes/ns-iptypes-ip_adapter_info
It's defined in DRuntime, so you can just import the module like this: import core.sys.windows.iptypes;
Sep 08 2022