Solved

Terminate DirectX Applications (games)

Posted on 2003-10-26
6
158 Views
Last Modified: 2010-04-05
Anybody knows how to safely terminate DirectX applications (games) within code? Thanks!
0
Comment
Question by:SoulessZero
  • 2
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
gmayo earned 50 total points
ID: 9623524
Your own app or another app?

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

  // To destroy
  D3D8 := nil;


Geoff M.
0
 

Author Comment

by:SoulessZero
ID: 9625853
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
 
LVL 8

Expert Comment

by:gmayo
ID: 9627621
Oh, you want to tell *other* DX apps to close. Can you just send a WM_QUIT to the window?

Geoff M.
0
 

Author Comment

by:SoulessZero
ID: 9648481
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question