PC Review


Reply
Thread Tools Rate Thread

DHCP info in C#

 
 
Admin
Guest
Posts: n/a
 
      28th Jul 2008
I am looking at automating some of the DHCP functions we regularly perform
and came accross the DHCP management APIs in my installed copy of MSDN.
These seem to be just what I need,

The only problem is that the descriptions are limited to C++ examples and I
am only familiar with C##. Is there a wrapper I could use, or better yet,
is here a description of how to call native Windows API from C#?

TIA

Bob


 
Reply With Quote
 
 
 
 
Barry Kelly
Guest
Posts: n/a
 
      28th Jul 2008
Admin wrote:

> I am looking at automating some of the DHCP functions we regularly perform
> and came accross the DHCP management APIs in my installed copy of MSDN.
> These seem to be just what I need,
>
> The only problem is that the descriptions are limited to C++ examples and I
> am only familiar with C##. Is there a wrapper I could use, or better yet,
> is here a description of how to call native Windows API from C#?


Have you looked up the invocations on http://www.pinvoke.net/ ?

-- Barry

--
http://barrkel.blogspot.com/
 
Reply With Quote
 
Admin
Guest
Posts: n/a
 
      28th Jul 2008
Thanks Barry :-)

That looks like a great resource for what I am trying to do

Cheers

"Barry Kelly" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Admin wrote:
>
>> I am looking at automating some of the DHCP functions we regularly
>> perform
>> and came accross the DHCP management APIs in my installed copy of MSDN.
>> These seem to be just what I need,
>>
>> The only problem is that the descriptions are limited to C++ examples and
>> I
>> am only familiar with C##. Is there a wrapper I could use, or better
>> yet,
>> is here a description of how to call native Windows API from C#?

>
> Have you looked up the invocations on http://www.pinvoke.net/ ?
>
> -- Barry
>
> --
> http://barrkel.blogspot.com/



 
Reply With Quote
 
Alex Clark
Guest
Posts: n/a
 
      29th Jul 2008
As an alternative you might be able to do it via a WMI query and managed
code. Good luck either way :-)

-Alex



"Admin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Barry :-)
>
> That looks like a great resource for what I am trying to do
>
> Cheers
>
> "Barry Kelly" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Admin wrote:
>>
>>> I am looking at automating some of the DHCP functions we regularly
>>> perform
>>> and came accross the DHCP management APIs in my installed copy of MSDN.
>>> These seem to be just what I need,
>>>
>>> The only problem is that the descriptions are limited to C++ examples
>>> and I
>>> am only familiar with C##. Is there a wrapper I could use, or better
>>> yet,
>>> is here a description of how to call native Windows API from C#?

>>
>> Have you looked up the invocations on http://www.pinvoke.net/ ?
>>
>> -- Barry
>>
>> --
>> http://barrkel.blogspot.com/

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting info from DHCP server without API? Johan Christensson Microsoft VB .NET 0 25th Oct 2004 11:47 PM
DHCP info Mike Richter Microsoft Windows 2000 Active Directory 2 17th May 2004 04:33 PM
Re: Getting Lease Info From DHCP Server Richard T. Edwards Microsoft VB .NET 1 10th May 2004 09:56 PM
DHCP Info =?Utf-8?B?UGV0ZQ==?= Microsoft Windows 2000 Networking 2 9th Mar 2004 04:47 PM
DHCP supplying DNS info Mikey Microsoft Windows 2000 DNS 4 30th Jan 2004 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 AM.