DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

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

spazzarama

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

spazzarama

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

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

Code
    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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #27 on: February 18, 2012, 08: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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #28 on: February 18, 2012, 08:58 AM »
It works!
Wonderful.



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

spazzarama

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



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

Great stuff!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #30 on: February 18, 2012, 09: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,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Who wants to experience C# depths of hell and evilness? (directx code)
« Reply #31 on: February 19, 2012, 01:35 AM »
Beta addon to do full screen directX capture using this code for SC here: http://www.donationcoder.com/forum/index.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, 08:28 AM by mouser »

Original address: https://www.donationcoder.com/forum/index.php?topic=29890.0