topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 6:06 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Who wants to experience C# depths of hell and evilness? (directx code)  (Read 27299 times)

spazzarama

  • Honorary Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #25 on: February 18, 2012, 02:33 AM »
I'll recheck the D3D10 one

spazzarama

  • Honorary Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #26 on: February 18, 2012, 02:51 AM »
I'll recheck the D3D10 one

Working fine here, my creation code for D3D10 looks like this:

   using (SlimDX.Direct3D10.Device device = new Device(factory.GetAdapter(0), DriverType.Hardware, DeviceCreationFlags.None))
    {
        this.DebugMessage("Hook: Device created");
        _d3d10VTblAddresses.AddRange(GetVTblAddresses(device.ComPointer, D3D10_DEVICE_METHOD_COUNT));

        using (SlimDX.Windows.RenderForm renderForm = new SlimDX.Windows.RenderForm())
        {
            using (SlimDX.DXGI.SwapChain sc = new SlimDX.DXGI.SwapChain(factory, device, DXGI.CreateSwapChainDescription(renderForm.Handle)))
            {
                _dxgiSwapChainVTblAddresses.AddRange(GetVTblAddresses(sc.ComPointer, DXGI.DXGI_SWAPCHAIN_METHOD_COUNT));
            }
        }
    }

I'm not sure if you are using the TestScreenshot or not, or whether you are logging the debug messages, but do you see the debug message: "1612:DXHookD3D10: Hook: Device created" ?

Cheers,
J

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #27 on: February 18, 2012, 02:54 AM »
AH i see i still had the change from Hardware device to NULL device that i put in place earlier.  Trying now with Hardware..

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #28 on: February 18, 2012, 02:58 AM »
It works!
Wonderful.

[i can't say for sure why kind of effects on stability that it might have on the target app as ive seen an occasional issue but it works!!!]

Great work Justin!!!!  :Thmbsup: :Thmbsup: :Thmbsup:

spazzarama

  • Honorary Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #29 on: February 18, 2012, 03:28 AM »
It works!
Wonderful.

[i can't say for sure why kind of effects on stability that it might have on the target app as ive seen an occasional issue but it works!!!]

Great work Justin!!!!  :Thmbsup: :Thmbsup: :Thmbsup:

Great stuff!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #30 on: February 18, 2012, 03:57 AM »
I should have a beta DirectX Capture addon for Screenshot Captor tomorrow (saturday) for people who are willing to test it.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #31 on: February 18, 2012, 07:35 PM »
Beta addon to do full screen directX capture using this code for SC here: https://www.donation...ndex.php?topic=30008

Note: The capture code is a bit of a hit or miss thing.. sometimes it kills the patient during or after injection, sometimes it doesn't.
« Last Edit: February 19, 2012, 02:28 AM by mouser »