From: Kid on
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 .
From: Don Burn on
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(a)discussions.microsoft.com> wrote in message
news:2BFDA94B-3827-4BE9-9D58-811401CE401B(a)microsoft.com...
> 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 .


From: Maxim S. Shatskih on
MessageBox - no, WinSock - no, only TDI and - in Vista+ - WinSock Kernel,
which has nothing common with WinSock except the general concepts.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim(a)storagecraft.com
http://www.storagecraft.com

"Kid" <Kid(a)discussions.microsoft.com> wrote in message
news:2BFDA94B-3827-4BE9-9D58-811401CE401B(a)microsoft.com...
> 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 .

From: Kid on
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(a)discussions.microsoft.com> wrote in message
> news:2BFDA94B-3827-4BE9-9D58-811401CE401B(a)microsoft.com...
> > 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 .
>
>
>
From: Don Burn on
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(a)discussions.microsoft.com> wrote in message
news:3950C5BB-2DE7-40B0-BD40-EF3EB880181F(a)microsoft.com...
> 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(a)discussions.microsoft.com> wrote in message
>> news:2BFDA94B-3827-4BE9-9D58-811401CE401B(a)microsoft.com...
>> > 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 .
>>
>>
>>