Terminate DirectX Applications (games)

Anybody knows how to safely terminate DirectX applications (games) within code? Thanks!
SoulessZeroAsked:
Who is Participating?
 
gmayoCommented:
Your own app or another app?

If the former:
  // To create
  D3D8 := Direct3DCreate9(D3D_SDK_VERSION);

  // To destroy
  D3D8 := nil;


Geoff M.
0
 
SoulessZeroAuthor Commented:
Thanks, sorry i didn't make it clear.

I mean from my own application. Co'z I will be write an Internet Cafe software that will take control of Client PC, if user's time is up then Server has to send some string commands to Client program (runnning on Client PC) and tell client program to terminate any running DirectX games safely.
0
 
gmayoCommented:
Oh, you want to tell *other* DX apps to close. Can you just send a WM_QUIT to the window?

Geoff M.
0
 
SoulessZeroAuthor Commented:
I  know there is a trick that can "force" DirectX app to terminate by calling some function of DirectX Helper. but i forgot in what website... :(
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.