Re: Can kernel mode call Win32 API ?



Yes, look at ZwCreateFile, ZwWriteFile, ZwReadFile and ZwClose. They are
very similar to the Win32 functions. Other ZwXXX calls may also be of
interest.


--
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:3950C5BB-2DE7-40B0-BD40-EF3EB880181F@xxxxxxxxxxxxxxxx
hi Don

Can we write some text or database from kernel mode, is there any API ?

Thanks much


"Don Burn" wrote:

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: How do you make a WDF driver create .Raw & .Translated resourc
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... provide you with the resources. ...
    (microsoft.public.development.device.drivers)
  • Re: Help - inline assembly in driver code
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... course you realize that inline assembler only works on 32-bit and so ...
    (microsoft.public.win32.programmer.kernel)
  • Re: How to verify a user space pointer passed to kernel driver?
    ... ProbeForRead/Write does not protect the driver, it just causes crashes since 99% of the users do not understand that, the second after you probe the user can free the memory. ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: controlling a filter driver
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... interested IRPs and let the rest of the IRPs slip down to the stack. ...
    (microsoft.public.development.device.drivers)
  • Re: WMDC, Ipaq PPC2K3, Vista
    ... When the device is not connected the only link availabe is: Connection settings. ... When trying to connect (if the device driver loads) then I get the same message as below: ... Win32 Version: 2.0.50727.312 ... Uninstallaing WMDC does not remove the partnership, so if I want to start from scratch: uninstall WMDC> remove partnership and reinstall: are there any other options? ...
    (microsoft.public.pocketpc.activesync)