Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Wayfarer

Fake Dlls

This topic is 6940 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
TheTwistedOne,

Can you be a little more specific?

Isn''t COM taken care of within the real DirectX dll? If so, why
should I be worried if it works behind the scenes?

Wayfarer

Share this post


Link to post
Share on other sites
I think this is what TwistedOne is refering to:
In order to get the functions in the "fake" dll to be run, you have to implement and register all the interfaces that the normal DirectX dll will implement. However, because the IIDs are then registered to the "fake" dll there''s no way to get the entry points into the normal dll at runtime. You can''t probe the IUknown::QueryInterface on the IIDs, because the interface is pointing the "fake" dll.

I suppose you could get around this by manually identifying the entry points to each API function in the DirectX DLLs and explicitly binding to each one (either at runtime with LoadModule, or with some compile time hack). However, this would bind you to one specific DirectX version.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!