Well I need to write a routine to detect if an Ip is static or dynamic over a LAN, well giz suggested that DHCP addresses are usually dynamic and non DHCP is static, well how would i go about writing a detection routine on if DHCP is enabled or not?

Any suggestions?
The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean, "Someone who loves to program and enjoys being clever about it."
"Its not a bug, its a feature" (Epic Games)