From - Mon Oct 13 11:25:21 1997
Path: news.mitre.org!blanket.mitre.org!agate!nntp.info.ucla.edu!208.134.241.18!newsfeed.internetmci.com!199.60.229.5!newsfeed.direct.ca!news.he.net!newshub.cts.com!relief.cts.com!not-for-mail
From: jkirby@gloryroad.netX (Jamey Kirby)
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
Subject: Re: How to call Win32 API from kernel mode driver
Date: Sun, 05 Oct 1997 06:31:34 GMT
Organization: Magnuson, Kirby & Associates, LLC.
Lines: 37
Message-ID: <343731d9.78786899@nntp.cts.com>
References: <01bcce3b$4e9aee60$ee665fa8@hinet> <01bcce1f$ad70f360$57234891@avlp120> <60vel1$pka$5@reader1.reader.news.ozemail.net> <3435751A.61A6@ccm.co.intel.com> <615gk1$rn5$2@reader1.reader.news.ozemail.net>
NNTP-Posting-Host: wagasa.cts.com
X-Newsreader: Forte Free Agent 1.11/32.235
Cache-Post-Path: wagasa.cts.com!unknown@jkirby.cts.com

On 4 Oct 1997 13:33:53 GMT, "Geoff Chappell"
<geoffch@no.junk.mail.please> wrote:

>fizal khan <fizalx_khan@ccm.co.intel.com> wrote in article 
>> It certainly isn't true that you can't call Win32 
>> API from kernel mode.Win32k.sys manages to 
>> callback the window procedures which are in user 
>> mode from kernel mode.
>
>Quite so, but by raising the matter as a question, I was hoping that the
>man who says that calling user mode can't be done and that "this is by
>design" would take the opportunity to correct his statement. 
>
>To say "there are mechanisms that are reserved for the system to use in
>special circumstances that the designers have thought through; they are
>not for you to use" would be uncontentious. To say it can't be done and
>that this is by design seems wrong. 
>


This function is a user-mode callback service, it may be of  some
help:

ZwW32Call
(
    IN ULONG ApiNumber,
    IN PVOID InputBuffer,
    IN ULONG InputLength,
    OUT PVOID *OutputBuffer,
    OUT PULONG OutputLength
);


Jamey Kirby
Senior Partner
Magnuson, Kirby & Associates, LLC.
jkirby@gloryroad.netX
