Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > MessageBox from Window Service in Vista

Reply
Thread Tools Display Modes

MessageBox from Window Service in Vista

 
 
kalpesh
Guest
Posts: n/a

 
      06-19-2007
I am developing a virtual printer driver which run from spooler
service of window, now in vista all services are run under session 0
thats why they are not support User interface or even message box
from
service.

i need to prompt message box from my virtual printer driver for that
i
also try to implement WTSsendMessage function but this function is
not
available in DDK thats why i cant compile my code,
After that i try to use CreateProcessAsUser while using this
function
i use OpenProcessToken function this process token function is failed
in my application so how can i use openprocesstoken in DDK
application.


Here code for openprocesstoken function::


HANDLE hToken;
ret = OpenProcessToken((HANDLE)GetCurrentProcess(),TOKEN _DUPLICATE |
TOKEN_ASSIGN_PRIMARY | TOKEN_QUERY , &hToken);


function fail with getlasterror 0.


i dont know why this function fail in my application..


or else there is any other way from which i prompt messagebox from
service.


Does anyone have idea or sugestions on the above described issue ?
Any comments are welcome.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Process List from window Service kalpesh Windows Vista General Discussion 5 06-27-2007 02:36 PM
MessageBox from Window Service in Vista kalpesh Windows Vista General Discussion 0 06-19-2007 12:25 PM
Window vista 2nd release or service pack Matty20 Windows Vista General Discussion 20 02-23-2007 03:53 AM
Window vista 2nd release or service pack Matty20 Windows Vista General Discussion 5 02-19-2007 11:25 PM
help with Window Image Acquisition Service sydoz Windows Vista General Discussion 0 02-15-2007 08:52 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59