Blog posts

2025

Hikyuu Study

less than 1 minute read

Published:

Hikyuu Project Learning

Stock strategy

1 minute read

Published:

ZGNB Love and Share

2024

Cpp-Web-Server

10 minute read

Published:

Cpp web server 学习项目

Windows Coding

less than 1 minute read

Published:

How to get DNS Server for particular adapter on Windows

  1. Retrieve addresses information about adapter through API:GetAdapterAddress(…)
  2. Loop to check whether current pointer points to the adapter specified by verify the attributes like FirstUnicastAddress.
  3. if the pointer points to the specified adapter, FirstDnsServerAddress data member points to the head of the linked list which stores the list of dns server for the specified adapter.

2014