With GD extension call Imagegrabscreen screenshot, completely black screen! Allowing services to interact with the desktop is useless!

Source: Internet
Author: User
With GD extension call Imagegrabscreen, completely black screen!!! The spread of the method "allow service to interact with the desktop" is no use at all!! And the most bizarre is that I try to use the system to call a C-written EXE to intercept screen is also a black screen, and directly with the command line call this EXE screenshot of the basic wood has a problem! Solving!!!

All right.. It seems that I can only ask myself a self-answer ...

It's the Session0 isolation problem.
As long as the Httpd.exe does not operate as a system service, it can bypass the session0 headache problem.

The next day the problem came up, I had a test on XP and found out that XP just ticked off. And on their own Win7 and winserver2012 still black screen. I try to log into the service with my usual account, invalid. Then the eye turned to the httpd.conf on the User/group option, changed deamon for Apache, changed a variety of user/group, are invalid. Then I think of Win Vista above the system let the service run in session 0, and the user interface isolation. Even if you tick "allow service to interact with the desktop," the screen is truncated to the content on session 0. And just session 0 on the desktop content is empty, the wallpaper is black ... So "black screen". More deadly, if you want the shell, the permissions are extremely low. I even tried to use Lsrunas, Saunr (runas to enter a password) to run the screenshot exe, but Win7 has blocked the back door. is ready to give up, my classmates in Win7 test, he installed is xampp. can actually use. I think it's incredible. Finally found that there is no Apache service on his computer!! So I found the answer: You can bypass Session0 's headache as long as you let Httpd.exe run directly without a service.

For the session 0 isolation problem Please see this article, speak more clearly: http://www.cnblogs.com/gnielee/archive/2010/04/07/session0-isolation-part1.html


The above is introduced with GD extension call Imagegrabscreen, completely black screen! Allowing services to interact with the desktop is useless! , including the aspects of the content, want to be interested in PHP tutorial friends helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.