Game Controller Control Panel Applet Extension

SUMMARY

The Game Controller Control Panel Extension provides IHV/ISV with a mechanism to display the attributes of their device while writing as little code as possible. This is a functional sample.

BUILDING THE SAMPLE

To build the sample using NMAKE, at the DOS prompt, type NMAKE CPLSVR1.MAK. To build it using BUILD, at the DOS prompt, type BUILD. (If you are using BUILD, you will also need to define TARGET_WIN95 for a Win9x version.)

Required headers and libraries include Dinput.h, Dinputd.h, and Dinput.lib.

The files that are necessary to build this sample include Cplsvr1.h, Dicpl.h, Dicputil.h, Pages.h, Resource.h, Resrc1.h, Cplsvr1.rc, Btndwn.ico, Btnup.ico, Config.ico, Winflag.ico, Button.cpp, Cplsvr1.cpp, Dicputil.cpp, Pages.cpp, and Cplsvr1.def.

Once built, the sample produces one binary, a DLL. Checked and free builds are both available, and both functional. The sample is installed via an .inf: Cplsvrnt.inf.

RESOURCES

For information, tools, and other resources, see http://msdn.microsoft.com/developer.

CODE TOUR

File Manifest

File		Description

Cplsvr1.htm	The documentation for this sample (this file)
BtnDwn.ico	Down state icon used in Button.cpp
BtnUp.ico	Up state icon used in Button.cpp 
Button.cpp	Example button custom control 
Config.ico	Icon displayed in application tabs 
Cplsvr1.cpp	Extension COM server code 
Cplsvr1.def	Application .def file 
Cplsvr1.h	Prototypes for Cplsvr1.cpp 
Cplsvr1.inf	Installation file for Win9x 
Cplsvr1.mak	Makefile to build file via NMAKE 
Cplsvr1.rc	Resource file for CPLSVR1 
CplsvrNT.inf	Installation file for Windows 2000 
Dicpl.h		Prototype file for IID_IDIGameCntrlPropSheet interface
Dicputil.h	Prototype file for Dicputil.cpp  
Pages.h		Prototype file for Pages.cpp 
Resource.h	Defines for resources  
Resrc1.h	Defines for resources 
Winflag.ico	Icon displayed in application titlebar  
Makefile	Makefile for BUILD environment 
Dicputil.cpp	DirectInput utility services implementation 
Pages.cpp	Property Sheet Page implementation 
Sources		Sources file for BUILD environment 

Top of page

© 1998 Microsoft Corporation