Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - d3d9 ? #18

Closed
LeimonDust opened this issue Mar 12, 2019 · 4 comments
Closed

Question - d3d9 ? #18

LeimonDust opened this issue Mar 12, 2019 · 4 comments

Comments

@LeimonDust
Copy link

LeimonDust commented Mar 12, 2019

Hello
How i can use this library for hide CreateDevice?

if (pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hwnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pd3dDevice) < 0) { pD3D->Release(); return 0; }

@JustasMasiulis
Copy link
Owner

AFAIK there is nothing to import/hide here. In the binary this will simply be invoking a function pointer that lies in the vtable.

@LeimonDust
Copy link
Author

Oh, sorry
I wanted to ask how to hide this import:
pD3D = Direct3DCreate9(D3D_SDK_VERSION); if (pD3D == NULL) return 0;

This seems not working for me
pD3D = LI_FN(Direct3DCreate9)(D3D_SDK_VERSION);

@JustasMasiulis
Copy link
Owner

That should be completely fine. Could it be that you forgot to load d3d9.dll? Because if you have no imports from it, it won't be automatically loaded on startup.

@JustasMasiulis
Copy link
Owner

More than a week has passed so I'll consider this issue resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants