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 ).
> >
>
>
>