2012-12-24 10:20:23 -05:00
|
|
|
// dxwndhost.h : DXWNDHOST Application's main header file
|
|
|
|
//
|
|
|
|
|
|
|
|
#if !defined(AFX_DXWNDHOST_H__C68B92A2_C45F_4B59_986D_5BBC6BAD3AD8__INCLUDED_)
|
|
|
|
#define AFX_DXWNDHOST_H__C68B92A2_C45F_4B59_986D_5BBC6BAD3AD8__INCLUDED_
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
#pragma once
|
|
|
|
#endif // _MSC_VER > 1000
|
|
|
|
|
|
|
|
#ifndef __AFXWIN_H__
|
|
|
|
#error include 'stdafx.h' before including this file for PCH
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "resource.h" // Main symbols
|
|
|
|
|
2014-02-07 11:39:27 -05:00
|
|
|
extern int MessageBoxLang(UINT, UINT, UINT);
|
|
|
|
extern int MessageBoxLangArg(UINT, UINT, UINT, ...);
|
|
|
|
|
2012-12-24 10:20:23 -05:00
|
|
|
// DxWnd host app private data
|
|
|
|
// fields here are associated to TARGETMAP records, but need not to be passed
|
|
|
|
// to the dxwnd hook callback, so they are left in a separate array to save
|
|
|
|
// the (limited) IPC space and allow for more record entryes (currently 255).
|
|
|
|
|
2015-07-01 12:40:14 -04:00
|
|
|
#define MAX_NOTES 1024
|
2015-09-09 12:41:24 -04:00
|
|
|
#define MAX_REGISTRY 2048
|
2015-11-02 11:40:21 -05:00
|
|
|
#define MAX_TITLE 80
|
2015-07-01 12:40:14 -04:00
|
|
|
|
2012-12-24 10:20:23 -05:00
|
|
|
typedef struct PRIVATEMAP
|
|
|
|
{
|
2015-11-02 11:40:21 -05:00
|
|
|
char title[MAX_TITLE+1];
|
2014-04-22 12:39:07 -04:00
|
|
|
char launchpath[MAX_PATH+1];
|
2016-08-22 12:46:56 -04:00
|
|
|
char startfolder[MAX_PATH+1];
|
2015-09-19 12:41:27 -04:00
|
|
|
char *notes;
|
|
|
|
char *registry;
|
2012-12-24 10:20:23 -05:00
|
|
|
}PRIVATEMAP;
|
|
|
|
|
2016-04-03 12:42:48 -04:00
|
|
|
typedef struct {
|
|
|
|
TARGETMAP *TM;
|
|
|
|
PRIVATEMAP *PM;
|
2016-11-26 11:48:21 -05:00
|
|
|
char *ExePath;
|
2016-04-03 12:42:48 -04:00
|
|
|
} ThreadInfo_Type;
|
|
|
|
ThreadInfo_Type;
|
|
|
|
|
2017-03-25 10:00:24 -04:00
|
|
|
extern char gInitPath[MAX_PATH+1];
|
2016-08-15 12:46:49 -04:00
|
|
|
extern void OutTrace(const char *, ...);
|
2015-10-21 12:42:12 -04:00
|
|
|
|
2012-12-24 10:20:23 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CDxwndhostApp:
|
|
|
|
// For the definition of this class action please see the file dxwndhost.cpp.
|
|
|
|
//
|
|
|
|
|
|
|
|
class CDxwndhostApp : public CWinApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CDxwndhostApp();
|
|
|
|
|
|
|
|
// Override
|
|
|
|
// ClassWizard Generates a virtual function overrides.
|
|
|
|
//{{AFX_VIRTUAL(CDxwndhostApp)
|
|
|
|
public:
|
|
|
|
virtual BOOL InitInstance();
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
|
|
|
//{{AFX_MSG(CDxwndhostApp)
|
|
|
|
afx_msg void OnAppAbout();
|
2016-06-26 12:46:13 -04:00
|
|
|
afx_msg void OnViewHelp();
|
2012-12-24 10:20:23 -05:00
|
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
|
|
// Microsoft Visual C++ Will insert additional declarations immediately before the previous line.
|
|
|
|
|
|
|
|
#endif // !defined(AFX_DXWNDHOST_H__C68B92A2_C45F_4B59_986D_5BBC6BAD3AD8__INCLUDED_)
|