156 lines
5.8 KiB
C
156 lines
5.8 KiB
C
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
|
|||
|
//<2F> <20>
|
|||
|
//<2F> This is a part of the Microsoft Direct Input SDK. <20>
|
|||
|
//<2F> Copyright (C) 1992-1997 Microsoft Corporation <20>
|
|||
|
//<2F> All rights reserved. <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F> This source code is only intended as a supplement to the <20>
|
|||
|
//<2F> Microsoft Direct Input SDK References and related <20>
|
|||
|
//<2F> electronic documentation provided with the SDK. <20>
|
|||
|
//<2F> See these sources for detailed information regarding the <20>
|
|||
|
//<2F> Microsoft Direct Input API. <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|||
|
|
|||
|
#ifndef _DX_CPL_
|
|||
|
#define _DX_CPL_
|
|||
|
|
|||
|
// maximum pages allowed on a server
|
|||
|
#define MAX_PAGES 26
|
|||
|
|
|||
|
// Interface ID
|
|||
|
// {7854FB22-8EE3-11d0-A1AC-0000F8026977}
|
|||
|
DEFINE_GUID(IID_IDIGameCntrlPropSheet,
|
|||
|
0x7854fb22, 0x8ee3, 0x11d0, 0xa1, 0xac, 0x0, 0x0, 0xf8, 0x2, 0x69, 0x77);
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
|
|||
|
//<2F> <20>
|
|||
|
//<2F> STRUCTURES <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|||
|
|
|||
|
// This pragma may not be supported by all compilers.
|
|||
|
// Please consult your compiler documentation.
|
|||
|
#pragma pack(8)
|
|||
|
|
|||
|
typedef struct
|
|||
|
{
|
|||
|
DWORD dwSize;
|
|||
|
LPWSTR lpwszPageTitle;
|
|||
|
DLGPROC fpPageProc;
|
|||
|
BOOL fProcFlag;
|
|||
|
DLGPROC fpPrePostProc;
|
|||
|
BOOL fIconFlag;
|
|||
|
LPWSTR lpwszPageIcon;
|
|||
|
LPWSTR lpwszTemplate;
|
|||
|
LPARAM lParam;
|
|||
|
HINSTANCE hInstance;
|
|||
|
} DIGCPAGEINFO, *LPDIGCPAGEINFO;
|
|||
|
|
|||
|
|
|||
|
typedef struct
|
|||
|
{
|
|||
|
DWORD dwSize;
|
|||
|
USHORT nNumPages;
|
|||
|
LPWSTR lpwszSheetCaption;
|
|||
|
BOOL fSheetIconFlag;
|
|||
|
LPWSTR lpwszSheetIcon;
|
|||
|
} DIGCSHEETINFO, *LPDIGCSHEETINFO;
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
|
|||
|
//<2F> <20>
|
|||
|
//<2F> Interface as Exposed by the InProcServer Property Sheet <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|||
|
DECLARE_INTERFACE_( IDIGameCntrlPropSheet, IUnknown)
|
|||
|
{
|
|||
|
// IUnknown Members
|
|||
|
STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID * ppvObj) PURE;
|
|||
|
STDMETHOD_(ULONG, AddRef) (THIS) PURE;
|
|||
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|||
|
|
|||
|
// IServerProperty Members
|
|||
|
STDMETHOD(GetSheetInfo) (THIS_ LPDIGCSHEETINFO *) PURE;
|
|||
|
STDMETHOD(GetPageInfo) (THIS_ LPDIGCPAGEINFO *) PURE;
|
|||
|
STDMETHOD(SetID) (THIS_ USHORT nID) PURE;
|
|||
|
};
|
|||
|
typedef IDIGameCntrlPropSheet *LPIDIGAMECNTRLPROPSHEET;
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
|
|||
|
//<2F> <20>
|
|||
|
//<2F> CLASS DEFINITION for CServerClassFactory <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|||
|
class CServerClassFactory : public IClassFactory
|
|||
|
{
|
|||
|
protected:
|
|||
|
ULONG m_ServerCFactory_refcount;
|
|||
|
|
|||
|
public:
|
|||
|
// constructor
|
|||
|
CServerClassFactory(void);
|
|||
|
// destructor
|
|||
|
~CServerClassFactory(void);
|
|||
|
|
|||
|
// IUnknown methods
|
|||
|
STDMETHODIMP QueryInterface(REFIID, PPVOID);
|
|||
|
STDMETHODIMP_(ULONG) AddRef(void);
|
|||
|
STDMETHODIMP_(ULONG) Release(void);
|
|||
|
|
|||
|
// IClassFactory methods
|
|||
|
STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, PPVOID);
|
|||
|
STDMETHODIMP LockServer(BOOL);
|
|||
|
};
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
|
|||
|
//<2F> <20>
|
|||
|
//<2F> CLASS DEFINITION for CDIGameCntrlPropSheet <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|||
|
class CDIGameCntrlPropSheet : public IDIGameCntrlPropSheet
|
|||
|
{
|
|||
|
friend CServerClassFactory;
|
|||
|
|
|||
|
private:
|
|||
|
short m_cProperty_refcount;
|
|||
|
short m_nID;
|
|||
|
|
|||
|
public:
|
|||
|
CDIGameCntrlPropSheet(void);
|
|||
|
~CDIGameCntrlPropSheet(void);
|
|||
|
|
|||
|
// IUnknown methods
|
|||
|
virtual STDMETHODIMP QueryInterface(REFIID, PPVOID);
|
|||
|
virtual STDMETHODIMP_(ULONG) AddRef(void);
|
|||
|
virtual STDMETHODIMP_(ULONG) Release(void);
|
|||
|
|
|||
|
virtual STDMETHODIMP GetSheetInfo(LPDIGCSHEETINFO *ppSheetInfo);
|
|||
|
virtual STDMETHODIMP GetPageInfo (LPDIGCPAGEINFO *ppPageInfo );
|
|||
|
virtual STDMETHODIMP SetID(USHORT nID);
|
|||
|
virtual STDMETHODIMP_(USHORT) GetID(void) {return m_nID;}
|
|||
|
};
|
|||
|
typedef CDIGameCntrlPropSheet *LPCDIGAMECNTRLPROPSHEET;
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ
|
|||
|
//<2F> <20>
|
|||
|
//<2F> ERRORS <20>
|
|||
|
//<2F> <20>
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ
|
|||
|
#define DIGCERR_ERRORSTART 0x80097000
|
|||
|
#define DIGCERR_NUMPAGESZERO 0x80097001
|
|||
|
#define DIGCERR_NODLGPROC 0x80097002
|
|||
|
#define DIGCERR_NOPREPOSTPROC 0x80097003
|
|||
|
#define DIGCERR_NOTITLE 0x80097004
|
|||
|
#define DIGCERR_NOCAPTION 0x80097005
|
|||
|
#define DIGCERR_NOICON 0x80097006
|
|||
|
#define DIGCERR_STARTPAGETOOLARGE 0x80097007
|
|||
|
#define DIGCERR_NUMPAGESTOOLARGE 0x80097008
|
|||
|
#define DIGCERR_INVALIDDWSIZE 0x80097009
|
|||
|
#define DIGCERR_ERROREND 0x80097100
|
|||
|
|
|||
|
#endif // _DX_CPL_
|
|||
|
|