|
-
Aug 29th, 2000, 08:25 PM
#1
Thread Starter
Member
I have found C source code for using these calls to get the DNS server ip's of the local machine. But I am no good at converting it. Anyone want to give me an example, or convert the code at: http://www.stardust.com/cgi-bin/wa?A...P=R2398&m=4461
If so, I would be ever so gratefull.
[email protected]
-
Sep 6th, 2000, 10:26 AM
#2
Lively Member
If your running under win2000 you can use the
Code:
Private Enum COMPUTER_NAME_FORMAT
ComputerNameNetBIOS = &H0
ComputerNameDnsHostname = &H1
ComputerNameDnsDomain = &H2
ComputerNameDnsFullyQualified = &H3
ComputerNamePhysicalNetBIOS = &H4
ComputerNamePhysicalDnsHostname = &H5
ComputerNamePhysicalDnsDomain = &H6
ComputerNamePhysicalDnsFullyQualified = &H7
ComputerNameMax = &H8
End Enum
Public Declare Function GetComputerNameEx Lib "kernel32" _
(NameType As COMPUTER_NAME_FORMAT, _
lpBuffer As Any, _
lpnSize As Long) As Boolean
function.
For win 9x you'll have to translate your reference C prog. Hope you're not too 
C/C++,Delphi, VB6,Java,PB (blech!),ASP,JSP,SQL...bla bla bla and bla
I love deadlines. I like the whooshing sound they make as they fly by.
—Douglas Adams
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|