getting the host name from kernel

my driver needs to return the host name as an answer to a question it gets on the network.

Is there an api in the kernel that can help him do that, or do I need to add some user mode code? (which is very difficult)

thanks
Tzachi

You could dig it out of the registry…

Depends on the platform…

On Vista and later the kernel-mode IP Helper API may be helpful.

Thomas F. Divine
http://www.pcausa.com


From:
Sent: Tuesday, January 11, 2011 4:56 PM
To: “Windows System Software Devs Interest List”
Subject: [ntdev] getting the host name from kernel

> my driver needs to return the host name as an answer to a question it gets
> on the network.
>
> Is there an api in the kernel that can help him do that, or do I need to
> add some user mode code? (which is very difficult)
>
> thanks
> Tzachi
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer