A
Al Koch
Hello,
I have a problem with a StretchBlt() that is failing on an XP system w/Fast
User Switching.
The StretchBlt() is part of an Owner Draw routine that draws custom buttons
on dialog boxes. This code has worked for a decade on earlier versions of
Windows. Further, the code works just fine on XP until I use Fast User
Switching to leave the current (Admin) user account with my application and
a dialog box that depends on WM_OWNERDRAW to draw its custom buttons
displayed. As I said, StretchBlt() draws the buttons correctly on all these
dialog boxes. But if I switch away, as soon as I switch back to the
original user, StretchBlt() fails with Win32 Error = 5 and the associated
error message "Access is Denied".
The only thing (other than memory) that I'm accessing is the screen. Is
something under XP preventing access to the screen? If so, why is this only
happening upon return from a Fast user Switch? This sure looks like a bug
but I can't find a reference to it anywhere on the Net!
Is anyone familiar with this problem?
Thanks,
Al
I have a problem with a StretchBlt() that is failing on an XP system w/Fast
User Switching.
The StretchBlt() is part of an Owner Draw routine that draws custom buttons
on dialog boxes. This code has worked for a decade on earlier versions of
Windows. Further, the code works just fine on XP until I use Fast User
Switching to leave the current (Admin) user account with my application and
a dialog box that depends on WM_OWNERDRAW to draw its custom buttons
displayed. As I said, StretchBlt() draws the buttons correctly on all these
dialog boxes. But if I switch away, as soon as I switch back to the
original user, StretchBlt() fails with Win32 Error = 5 and the associated
error message "Access is Denied".
The only thing (other than memory) that I'm accessing is the screen. Is
something under XP preventing access to the screen? If so, why is this only
happening upon return from a Fast user Switch? This sure looks like a bug
but I can't find a reference to it anywhere on the Net!
Is anyone familiar with this problem?
Thanks,
Al