Getting DHCP configuration information from Windows Store apps


I was recently asked via an e-mail from a user of my Lanscan app how to obtain DHCP information from a Windows Store app.

Fortunately, DhcpRequestParams and related Win32 APIs are part of the Windows Store partition of the Win32 API and so are callable from C#-based Windows Store apps (and probably other places too).

Here are Gists of the relevant p/invoke and interop declarations you’ll need in order to call these functions from your C# programs:

Related posts

Lanscan is now open source


Windows Store

Content © 2024 Richard Cook. All rights reserved.