Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTransparent owner-drawn button? Pin
trey8-Aug-00 17:05
trey8-Aug-00 17:05 
AnswerRe: Transparent owner-drawn button? Pin
Paolo Messina8-Aug-00 21:29
professionalPaolo Messina8-Aug-00 21:29 
GeneralCatching a Keystroke Pin
sho98-Aug-00 15:16
sho98-Aug-00 15:16 
GeneralRe: Catching a Keystroke Pin
HP9-Aug-00 0:20
HP9-Aug-00 0:20 
Generaladding bitmaps to ctoolbar Pin
Shekhar8-Aug-00 10:38
Shekhar8-Aug-00 10:38 
GeneralSmall caption windows on Win2000 Pin
Paolo Messina8-Aug-00 7:00
professionalPaolo Messina8-Aug-00 7:00 
GeneralPrinting Bitmaps on a postscript printer Pin
Member 239698-Aug-00 4:59
Member 239698-Aug-00 4:59 
GeneralFinding out whether DHCP is enabled Pin
Paul Cole8-Aug-00 4:30
Paul Cole8-Aug-00 4:30 
I need to be able to tell whether DHCP is enabled.
This needs to work on 95,98,NT4 and 2000.

I figured there must be registry settings for this and after digging around I've found what they are for 95 & 98.

However for NT and 2000 it's slightly different.
I believe that the registry key for NT is:

HKLM\System\CurrentControlSet\Services\"AdapterNameHere"\
Parameters\Tcpip

and the key value is "EnableDHCP".

The Adapter name is stored under
"HKLM\System\CurrentControlSet\Services\NetBT\Adapters"
so by using this I should be able to get the setting.
What I want to know is can anyone confirm this to be correct or is there an easier way?

Finally for 2000 it should be easier since I can use the "GetAdaptersInfo" function which returns information on each adapter and the information contains whether DHCP is enabled.
MSDN online says to use Iphlpapi.lib and Iphlpapi.h, does anyone know where these files come from, I presume there available within an SDK.

Thanks.
GeneralUDP Packet Creation???? - H E L P ! ! ! Pin
daniel madden8-Aug-00 2:50
daniel madden8-Aug-00 2:50 
Generalanti-aliasing algorithm Pin
junsung kim8-Aug-00 1:47
sussjunsung kim8-Aug-00 1:47 
GeneralRe: anti-aliasing algorithm Pin
Philip Nicoletti9-Aug-00 4:04
Philip Nicoletti9-Aug-00 4:04 
Generalcom / c++ class realationships Pin
koteswara8-Aug-00 0:38
koteswara8-Aug-00 0:38 
GeneralRe: com / c++ class realationships Pin
Member 11278-Aug-00 2:43
Member 11278-Aug-00 2:43 
GeneralDisplay .TIF images Pin
Eldor@do8-Aug-00 0:29
Eldor@do8-Aug-00 0:29 
GeneralRe: Display .TIF images Pin
Philip Nicoletti8-Aug-00 9:27
Philip Nicoletti8-Aug-00 9:27 
QuestionHow to create shapes in VC++ (like the one on VB) Pin
Nali7-Aug-00 23:50
Nali7-Aug-00 23:50 
GeneralWebbrowser repaint Pin
dooly7-Aug-00 23:22
dooly7-Aug-00 23:22 
GeneralInvalidateRect error Pin
Hovnatan Karapetyan7-Aug-00 6:31
Hovnatan Karapetyan7-Aug-00 6:31 
QuestionCan I make a virtual I/O port Pin
Roy Jones7-Aug-00 5:20
Roy Jones7-Aug-00 5:20 
AnswerRe: Can I make a virtual I/O port Pin
Erik Funkenbusch10-Aug-00 12:41
Erik Funkenbusch10-Aug-00 12:41 
GeneralCDaoDatabase Problem :( Pin
Dave Waldrum7-Aug-00 3:43
sussDave Waldrum7-Aug-00 3:43 
GeneralRe: CDaoDatabase Problem :( Pin
Tim Deveaux7-Aug-00 4:41
Tim Deveaux7-Aug-00 4:41 
GeneralWTL and .NET Pin
xtsea7-Aug-00 3:35
xtsea7-Aug-00 3:35 
GeneralDDE with Internet Explorer Pin
Gabriel Soubies7-Aug-00 2:18
sussGabriel Soubies7-Aug-00 2:18 
GeneralVC++ / HTML help viewer Pin
koteswara7-Aug-00 2:07
koteswara7-Aug-00 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.