[Question] Using Microsoft.DirectX.Device to draw on screen? menu

User Tag List

Results 1 to 8 of 8
  1. #1
    misz's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Using Microsoft.DirectX.Device to draw on screen?

    So i Finaly managed to Hook my little program up to the EndScene Hook, and im getting the Callback called every frame, happy so far.

    Now i would like to draw on the screen.

    The Microsoft.DirectX.Device constructor accepts a IntPtr of the already existing device.

    My question is, is the Device Pointer saved in the VFTable?, and if so at what index, end scene is [0][42].

    Thank you.

    [Question] Using Microsoft.DirectX.Device to draw on screen?
  2. #2
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just think another 5 minutes over your question..
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  3. #3
    Azzie2k8's Avatar Member
    Reputation
    11
    Join Date
    Apr 2009
    Posts
    190
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are hooking EndScene...I am going to give you a hint "Device.EndScene"...

  4. #4
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Amusing

    fllr
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  5. #5
    misz's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah now i understand, but how do i get the location of diffrent funktions in the VFTable?.

  6. #6
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by misz View Post
    ah now i understand, but how do i get the location of diffrent funktions in the VFTable?.
    That should be fairly obvious if you have the device pointer...
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  7. #7
    Viano's Avatar Active Member
    Reputation
    37
    Join Date
    May 2008
    Posts
    172
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by misz View Post
    ah now i understand ...
    That is a lie!
    Viano

  8. #8
    misz's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a little crash i cant seem to fix.

    Update: Fixed Crash, but still does not work.

    Newest code i use:

    Code:
    Device device = new Device((IntPtr)NativeIDirect3D9);
    Device is Microsoft.DirectX.Device.

    So after that code i am able to access DisplayMode, but i cant ex acces Vieport, or clear the screen, if i do i get a "Attempted to read or write protected memory." error.

    Then i tryed to do.

    Code:
    device = new Device((IntPtr)NativeIDirect3DDevice9);
    But with that code i could not do anything.
    Last edited by misz; 02-28-2010 at 04:20 PM.

Similar Threads

  1. [Question] Using model edits without running WoWME every time?
    By Selenti in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-07-2008, 10:59 AM
  2. [Question] Using Glider Profiles In Wowmimic
    By motokid985 in forum World of Warcraft General
    Replies: 0
    Last Post: 04-16-2008, 06:29 PM
  3. [Question] Using Renamer.
    By Frombehind in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-21-2007, 03:18 PM
  4. [Question] Using Hex Editor.
    By Frombehind in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-20-2007, 11:28 AM
  5. [Question] Use of the Nagrand Cloud Layer in Azeroth Skies
    By iindigo in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-03-2007, 07:17 PM
All times are GMT -5. The time now is 06:31 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search