summaryrefslogtreecommitdiffstats
path: root/private/oleutest/balls/common/csrvapp.hxx
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/balls/common/csrvapp.hxx
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/oleutest/balls/common/csrvapp.hxx')
-rw-r--r--private/oleutest/balls/common/csrvapp.hxx79
1 files changed, 79 insertions, 0 deletions
diff --git a/private/oleutest/balls/common/csrvapp.hxx b/private/oleutest/balls/common/csrvapp.hxx
new file mode 100644
index 000000000..bae147da2
--- /dev/null
+++ b/private/oleutest/balls/common/csrvapp.hxx
@@ -0,0 +1,79 @@
+//+-------------------------------------------------------------------
+//
+// File: csrvapp.hxx
+//
+// Contents: CTestServerApp declarations &
+// miscellaneous tidbits.
+//
+// History: 24-Nov-92 DeanE Created
+//
+//---------------------------------------------------------------------
+
+#ifndef __CSRVAPP_HXX__
+#define __CSRVAPP_HXX__
+
+// #include <com.hxx>
+
+#define LOG_ABORT -1
+#define LOG_PASS 1
+#define LOG_FAIL 0
+
+// Application Window messages
+#define WM_RUNTEST (WM_USER + 1)
+#define WM_REPORT (WM_USER + 2)
+
+
+// WM_REPORT wParam codes
+#define MB_SHOWVERB 0x0001
+#define MB_PRIMVERB 0x0002
+
+
+// Global variables
+extern HWND g_hwndMain;
+
+
+// Forward declarations
+class FAR CDataObject;
+class FAR CPersistStorage;
+class FAR COleObject;
+class FAR CTestEmbedCF;
+
+
+//+-------------------------------------------------------------------
+// Class: CTestServerApp
+//
+// Synopsis: Class that holds application-wide data and methods
+//
+// Methods: InitApp
+// CloseApp
+// GetEmbeddedFlag
+//
+// History: 17-Dec-92 DeanE Created
+//--------------------------------------------------------------------
+class FAR CTestServerApp
+{
+public:
+
+// Constructor/Destructor
+ CTestServerApp();
+ ~CTestServerApp();
+
+ SCODE InitApp (LPSTR lpszCmdline);
+ SCODE CloseApp (void);
+ BOOL GetEmbeddedFlag (void);
+ ULONG IncEmbeddedCount(void);
+ ULONG DecEmbeddedCount(void);
+
+private:
+ IClassFactory *_pteClassFactory;
+ ULONG _cEmbeddedObjs; // Count of embedded objects this server
+ // is controlling now
+ DWORD _dwRegId; // OLE registration ID
+ BOOL _fRegistered; // TRUE if srv was registered w/OLE
+ BOOL _fInitialized; // TRUE if OleInitialize was OK
+ BOOL _fEmbedded; // TRUE if OLE started us at the request
+ // of an embedded obj in a container app
+};
+
+
+#endif // __CSRVAPP_HXX__