From - Thu Oct 16 15:27:02 1997 Subject: Re: Q: How to load the driver from other driver through NT Kernel? From: dancox@pictel.com (Dan Cox) Organization: PictureTel Corporation X-Newsreader: WinVN 0.93.11 References: <3445AB94.64F0@gw4.alps.co.jp> MIME-Version: 1.0 Message-ID: <1kQcUcl28GA.153@hqnetnews2.pictel.com> Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Date: Thu, 16 Oct 1997 13:15:19 -0400 Lines: 29 Path: news.mitre.org!blanket.mitre.org!news.tufts.edu!cam-news-feed5.bbnplanet.com!chnws03.mediaone.net!204.71.1.61!news-out.internetmci.com!newsfeed.internetmci.com!4.1.16.34!cpk-news-hub1.bbnplanet.com!cpk-news-feed4.bbnplanet.com!cpk-news-feed1.bbnplanet.com!news.bbnplanet.com!hqnetnews2.pictel.com There is an undocumented function in NTDLL.LIB and NTOSKRNL.DLL called ZwLoadDriver that I think will do what you want. The prototype for this function looks like this: NTSYSAPI NTSTATUS NTAPI ZwLoadDriver( IN PUNICODE_STRING DriverName ); I hope that helps. In article <3445AB94.64F0@gw4.alps.co.jp>, ooshita@gw4.alps.co.jp says... > >Dear device driver developpers for WindowsNT, > >My name is Kazuhito Ooshita. And I am developping the device driver for WindowsN >T. >Today I would like to ask you about the API which may be prepared in WindowsNT. >I describe my >question below: > ><> >I would like to direct to the WindowsNT kernel to load and unload our original m >ini-port driver >dynamically from our device driver. Are there any APIs prepared in WindowsNT? A >nd are there any >sample source code which is valid to refer to? We havbeen searched it with Wind >ows NT DDK and >that of sample source code, bou I could not. > >I am appreciate when you gave your proposal to us for my question. > >Thanks for your kindness... > >Your Sincerely, >Kazuhito Ooshita