Networking Forums

Networking Forums > Computer Networking > Windows Networking > DHCP option 43 (vendor specific) usage and how to retrieve 4 Windo

Reply
Thread Tools Display Modes

DHCP option 43 (vendor specific) usage and how to retrieve 4 Windo

 
 
=?Utf-8?B?RGF2aWQgQnVyZ2hncmFldmU=?=
Guest
Posts: n/a

 
      11-22-2004, 03:45 PM
Hi there,

We're using a windows2003 Standard edition DHCP server.
We're using windowsXP (and WindowsXP embedded) as clients.

We want to manage settings for our WindowsXPe systems by using the DHCP
<free to use option> option number 43.
(see technet issue Q312468
http://support.microsoft.com/default...;en-us;Q312468 ).

We tried to enter several options as explained in the technet issue, but it
doesn't seem to work on WindowsXP or WindowsXP embedded. We used a sniffer on
the network and found that the option was given by the DHCP server to the
client, but it seems that the write into the registry was not done (or
completed).

Searching on the internet there's not much to find...

anyone using this option or experience on the clients with this?
Is there a script or tool wich I can use?


****************************
PS/ String we used:
01 0A 53 69 65 6D 65 6E
73 00 00 00 02 04 00 00
00 D2 00 00 00 00 00 FF
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF2aWQgQnVyZ2hncmFldmU=?=
Guest
Posts: n/a

 
      11-24-2004, 08:03 AM
At this time i'm trying to develop a minimal c++ application using the DHCP
SDK API.
If anyone can help me with this I would appreciate it!

> <free to use option> option number 43.
> (see technet issue Q312468
> http://support.microsoft.com/default...;en-us;Q312468 ).


 
Reply With Quote
 
A.J.Anto
Guest
Posts: n/a

 
      11-25-2004, 05:41 AM
Hi David,
I am assuming that you are using the function DhcpRequestParams from
DHCP Client Options API. I think you are trying to read the registry to get
the values of the requested options from the DHCP server. Since you have a
XP Client, I don't see why you should do this. The DhcpRequestParams
functions itself can get you the data you want.
The following link gives you the way you can query the DHCP server for
specific options. Please see this link:
http://msdn.microsoft.com/library/de...i_examples.asp
Are we doing something like this?
Thanks,
A.J.Anto
"David Burghgraeve" <(E-Mail Removed)> wrote in
message news:EAEE06BD-1789-492E-8BB3-(E-Mail Removed)...
> At this time i'm trying to develop a minimal c++ application using the
> DHCP
> SDK API.
> If anyone can help me with this I would appreciate it!
>
>> <free to use option> option number 43.
>> (see technet issue Q312468
>> http://support.microsoft.com/default...;en-us;Q312468 ).

>



 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgQnVyZ2hncmFldmU=?=
Guest
Posts: n/a

 
      11-25-2004, 07:33 AM
A.J.Anto,

Thanks for the reply.

Yes, that correct, we're now trying to create a small C++ (with MS C++ 6.0),
but as we are trying it seems pretty difficult. Looks like the sample on the
MSDN site has some "flaws" in it:

dwError = DhcpRequestParams(
DHCPCAPI_REQUEST_SYNCHRONOUS, // Flags
NULL, // Reserved
pszAdapterName, // Adapter Name
NULL, // not using class id
NULL, // nothing to send
////// NULL cannot be used, because it's a Integer, and this var is
////// DHCPCAPI_PARAMS_ARRAY
RequestParams, // requesting params
(PBYTE) TmpBuffer, // buffer
&dwSize, // buffer size
NULL // Request ID
);


"A.J.Anto" wrote:

> Hi David,
> I am assuming that you are using the function DhcpRequestParams from
> DHCP Client Options API. I think you are trying to read the registry to get
> the values of the requested options from the DHCP server. Since you have a
> XP Client, I don't see why you should do this. The DhcpRequestParams
> functions itself can get you the data you want.
> The following link gives you the way you can query the DHCP server for
> specific options. Please see this link:
> http://msdn.microsoft.com/library/de...i_examples.asp
> Are we doing something like this?
> Thanks,
> A.J.Anto
> "David Burghgraeve" <(E-Mail Removed)> wrote in
> message news:EAEE06BD-1789-492E-8BB3-(E-Mail Removed)...
> > At this time i'm trying to develop a minimal c++ application using the
> > DHCP
> > SDK API.
> > If anyone can help me with this I would appreciate it!
> >
> >> <free to use option> option number 43.
> >> (see technet issue Q312468
> >> http://support.microsoft.com/default...;en-us;Q312468 ).

> >

>
>
>

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgQnVyZ2hncmFldmU=?=
Guest
Posts: n/a

 
      11-25-2004, 08:09 AM
Sorry, I pressed the "post" button by accident.

A.J.Anto,

Thanks for the reply.

Yes, that correct, we're now trying to create a small C++ (with MS C++ 6.0),
but as we are trying it seems pretty difficult. Looks like the sample on the
MSDN site has some "flaws" in it:

dwError = DhcpRequestParams(
DHCPCAPI_REQUEST_SYNCHRONOUS, // Flags
NULL, // Reserved
pszAdapterName, // Adapter Name
NULL, // not using class id
NULL, // nothing to send
////// NULL cannot be used, because it's a Integer, and this var is
////// DHCPCAPI_PARAMS_ARRAY
RequestParams, // requesting params
////// Requestparams is unknown var, I think is should be the
////// var dhcpApiParamsArray
(PBYTE) TmpBuffer, // buffer
///// tmpbuffer is first defined as fixed array (1000), and here it's
made a
///// PBYTE => compile error: I made a LPCHAR of this var
&dwSize, // buffer size
NULL // Request ID
);

I also had to search a Dhcpcsdk.h on the internet (because I don't have the
SDK).

Greetings,
David.

"A.J.Anto" wrote:

> Hi David,
> I am assuming that you are using the function DhcpRequestParams from
> DHCP Client Options API. I think you are trying to read the registry to get
> the values of the requested options from the DHCP server. Since you have a
> XP Client, I don't see why you should do this. The DhcpRequestParams
> functions itself can get you the data you want.
> The following link gives you the way you can query the DHCP server for
> specific options. Please see this link:
> http://msdn.microsoft.com/library/de...i_examples.asp
> Are we doing something like this?
> Thanks,
> A.J.Anto
> "David Burghgraeve" <(E-Mail Removed)> wrote in
> message news:EAEE06BD-1789-492E-8BB3-(E-Mail Removed)...
> > At this time i'm trying to develop a minimal c++ application using the
> > DHCP
> > SDK API.
> > If anyone can help me with this I would appreciate it!
> >
> >> <free to use option> option number 43.
> >> (see technet issue Q312468
> >> http://support.microsoft.com/default...;en-us;Q312468 ).

> >

>
>
>

 
Reply With Quote
 
A.J.Anto
Guest
Posts: n/a

 
      12-01-2004, 11:01 AM
Hi David,
I am not sure why the PBYTE is giving you an error. I am pretty sure
that the code in the MSDN should work.
Tell me one thing, are u able to retrieve the options now that you are
able to compile?
"David Burghgraeve" <(E-Mail Removed)> wrote in
message news:26A71AB2-8F8F-432D-9647-(E-Mail Removed)...
> Sorry, I pressed the "post" button by accident.
>
> A.J.Anto,
>
> Thanks for the reply.
>
> Yes, that correct, we're now trying to create a small C++ (with MS C++
> 6.0),
> but as we are trying it seems pretty difficult. Looks like the sample on
> the
> MSDN site has some "flaws" in it:
>
> dwError = DhcpRequestParams(
> DHCPCAPI_REQUEST_SYNCHRONOUS, // Flags
> NULL, // Reserved
> pszAdapterName, // Adapter Name
> NULL, // not using class id
> NULL, // nothing to send
> ////// NULL cannot be used, because it's a Integer, and this var is
> ////// DHCPCAPI_PARAMS_ARRAY
> RequestParams, // requesting params
> ////// Requestparams is unknown var, I think is should be the
> ////// var dhcpApiParamsArray
> (PBYTE) TmpBuffer, // buffer
> ///// tmpbuffer is first defined as fixed array (1000), and here it's
> made a
> ///// PBYTE => compile error: I made a LPCHAR of this var
> &dwSize, // buffer size
> NULL // Request ID
> );
>
> I also had to search a



..h on the internet (because I don't have the
> SDK).
>
> Greetings,
> David.
>
> "A.J.Anto" wrote:
>
>> Hi David,
>> I am assuming that you are using the function DhcpRequestParams from
>> DHCP Client Options API. I think you are trying to read the registry to
>> get
>> the values of the requested options from the DHCP server. Since you have
>> a
>> XP Client, I don't see why you should do this. The DhcpRequestParams
>> functions itself can get you the data you want.
>> The following link gives you the way you can query the DHCP server for
>> specific options. Please see this link:
>> http://msdn.microsoft.com/library/de...i_examples.asp
>> Are we doing something like this?
>> Thanks,
>> A.J.Anto
>> "David Burghgraeve" <(E-Mail Removed)> wrote in
>> message news:EAEE06BD-1789-492E-8BB3-(E-Mail Removed)...
>> > At this time i'm trying to develop a minimal c++ application using the
>> > DHCP
>> > SDK API.
>> > If anyone can help me with this I would appreciate it!
>> >
>> >> <free to use option> option number 43.
>> >> (see technet issue Q312468
>> >> http://support.microsoft.com/default...;en-us;Q312468 ).
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Problem with Siemens IP Telephony and DHCP Vendor Option 43 Robert Riegler Windows Networking 4 08-24-2006 10:42 PM
dhcp vendor classes option Adastra Windows Networking 10 08-24-2006 03:07 AM
Retrieve DHCP list Joris De Groote Windows Networking 1 05-18-2006 03:54 PM
DHCP vendor option 43 XP clients do not ignore it Lumae Windows Networking 2 06-19-2005 09:20 PM
DHCP Vendor class and option type - Windows 2003 Server =?Utf-8?B?c3ZncmF1ZQ==?= Windows Networking 0 03-18-2005 07:09 PM



1 2 3 4 5 6 7 8 9 10 11