If the function succeeds the return value will be the network adapter packet maximum size.
Description:
Use AdpCfgGetAdpCfgGetMaxPacketSize to define the maximum size of the packet, which can be
processed by the network adapter. You should take into account this value if you are going to generate
and send a packet in your application.
Also you should use this value to define the size of the memory buffer allocated for the packet
which will be received.