• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

Terminate DirectX Applications (games)

Anybody knows how to safely terminate DirectX applications (games) within code? Thanks!
0
SoulessZero
Asked:
SoulessZero
  • 2
  • 2
1 Solution
 
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

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now