Closed Thread
Results 1 to 2 of 2

Thread: Problem with Windows Vista and 7 - blackscreen

  1. #1
    v1o
    v1o is offline Newbie
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Problem with Windows Vista and 7 - blackscreen

    Hi,
    I am the owner of Azereus, which functions and a description can be found at Azereus.pl. This is a program used to fight with cheaters in multiplayer computer games. This program makes screenshots of what a Windows user sees on the screen. Making such discharge is to create a TCanvas class, set the handle to the active window by GetDesktopWindow function and then calling the method TCanvas.Canvas.CopyRect. The process is working properly, both the XP and Vista. Also works on XP when it is running the game (if the program makes the screenshots of the game), but unfortunately in the case of Vista, no longer the case. When the operating system is running a game, my program makes black screenshots. I do not know what is the cause, whether it is a problem with support for OpenGL, if the program uses the wrong window handle, or something else. In addition, the program described in the above situation does sound screenshots where the game is in window mode (not fullscreen) or using d3d mode. Please help, I join you take screenshots of the code:

    Code:
    function Tscreener.GetNowScreen: tjpegimage;
    var
    btMap:Tbitmap; //mapa bitowa
    DeskTop: TCanvas;
    begin
    DeskTop := TCanvas.Create;
    try
    btMap := TBitmap.Create;
    try
    DeskTop.Handle := GetWindowDC ( GetForegroundWindow );
    btMap.Width := Screen.Width;
    btMap.Height := Screen.Height;
    btMap.Canvas.CopyRect (Rect(0, 0, Screen.Width, Screen.Height), DeskTop,
    Rect (0, 0, Screen.Width, Screen.Height));
    Result := TJPEGImage.Create;
    Result.CompressionQuality := 60;
    Result.Assign(btMap);
    finally
    FreeAndNil(btMap);
    end;
    finally
    FreeAndNil(DeskTop);
    end;
    end;
    Greets,
    v1o
    Last edited by WingedPanther; 02-10-2010 at 09:03 AM. Reason: add code tags (the # button)

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Problem with Windows Vista and 7 - blackscreen

    It sounds like a security issue in Vista.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vista to Windows 7
    By wim DC in forum Computer Software/OS
    Replies: 4
    Last Post: 08-09-2010, 07:22 AM
  2. Windows Vista Problems?
    By priorityone in forum Computer Software/OS
    Replies: 11
    Last Post: 06-01-2007, 04:42 PM
  3. Windows Vista
    By Jordan in forum Technology Ramble
    Replies: 30
    Last Post: 01-07-2007, 04:19 AM
  4. Windows Vista RC1
    By Jordan in forum Technology Ramble
    Replies: 2
    Last Post: 09-18-2006, 02:30 AM
  5. Windows Vista!
    By Lop in forum Technology Ramble
    Replies: 8
    Last Post: 08-17-2006, 11:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts