Re: Can kernel mode call Win32 API ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



This has been answered many times the answer is NO. If you need a function
that does not have a kernel mode equivalent, you either need to write your
own or use a helper application to perform that work for the driver.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"Kid" <Kid@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2BFDA94B-3827-4BE9-9D58-811401CE401B@xxxxxxxxxxxxxxxx
Hi

Can kernel mode driver call Win32 API function like MessageBox and winsock
?

If I want to write a virtual driver use some Win32 API and library , is it
possible?

Thank you .


.



Relevant Pages

  • Re: WinXP serial port driver - Serial to IP communication
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... reduce the complexity and possible errors of the kernel mode serial ...
    (microsoft.public.development.device.drivers)
  • Re: How to load kernel dlls in a driver in XP/Vista
    ... library (I have seen problems with ZwLoadLibrary and a kernel mode DLL, since the driver ref count is not incremented by the time you leave driver entry and inc'ing it means the DLL is broken for non-dynamic use) then build the equivalent of GetProcAddress since there is not a kernel equivalent. ... Don Burn (MVP, Windows DDK) ... The message was checked by ESET NOD32 Antivirus. ...
    (microsoft.public.development.device.drivers)
  • Re: User mode vs. Kernel mode driver
    ... There was a user mode file system product ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... I know it can be done in Kernel mode. ...
    (microsoft.public.development.device.drivers)
  • Re: Can kernel mode call Win32 API ?
    ... Can I loead an application by some function in kernel mode? ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: Can we write kernel mode dll or application ?
    ... A kernel mode module has to be a driver. ... Don Burn (MVP, Windows DDK) ... Should kernel mode process be driver, can it be a system service like a ...
    (microsoft.public.development.device.drivers)