summaryrefslogtreecommitdiffstats
path: root/private/oleutest/oletest/attest.h
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/oletest/attest.h
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/oletest/attest.h')
-rw-r--r--private/oleutest/oletest/attest.h123
1 files changed, 123 insertions, 0 deletions
diff --git a/private/oleutest/oletest/attest.h b/private/oleutest/oletest/attest.h
new file mode 100644
index 000000000..7a6c9a5a2
--- /dev/null
+++ b/private/oleutest/oletest/attest.h
@@ -0,0 +1,123 @@
+//+-------------------------------------------------------------------------
+//
+// Microsoft Windows
+// Copyright (C) Microsoft Corporation, 1992 - 1993.
+//
+// File: attest.h
+//
+// Contents: declarations for upper layer apartment thread test
+//
+// Classes: CBareFactory
+// CATTestIPtrs
+//
+// Functions:
+//
+// History: dd-mmm-yy Author Comment
+// 04-Jan-95 t-ScottH author
+//
+//--------------------------------------------------------------------------
+
+#ifndef _ATTEST_H
+#define _ATTEST_H
+
+//+-------------------------------------------------------------------------
+//
+// Class:
+//
+// Purpose:
+//
+// Interface:
+//
+// History: dd-mmm-yy Author Comment
+//
+// Notes:
+//
+//--------------------------------------------------------------------------
+
+class CATTestIPtrs
+{
+
+public:
+ CATTestIPtrs();
+
+ STDMETHOD(Reset)();
+
+ IOleObject *_pOleObject;
+ IOleCache2 *_pOleCache2;
+ IDataObject *_pDataObject;
+ IPersistStorage *_pPersistStorage;
+ IRunnableObject *_pRunnableObject;
+ IViewObject2 *_pViewObject2;
+ IExternalConnection *_pExternalConnection;
+ IOleLink *_pOleLink;
+};
+
+//+-------------------------------------------------------------------------
+//
+// Class: CBareFactory
+//
+// Purpose: use as a class factory which doesn't do anything in
+// OleCreateEmbeddingHelper API
+//
+// Interface: IClassFactory
+//
+// History: dd-mmm-yy Author Comment
+// 11-Jan-95 t-ScottH author
+//
+// Notes:
+//
+//--------------------------------------------------------------------------
+
+class CBareFactory : public IClassFactory
+{
+
+public:
+ STDMETHOD(QueryInterface) (REFIID iid, LPVOID FAR* ppvObj);
+ STDMETHOD_(ULONG,AddRef) (void);
+ STDMETHOD_(ULONG,Release) (void);
+ STDMETHOD(CreateInstance) (LPUNKNOWN pUnkOuter, REFIID iid,
+ LPVOID FAR* ppv);
+ STDMETHOD(LockServer) ( BOOL fLock );
+
+ CBareFactory();
+
+private:
+ ULONG _cRefs;
+};
+
+// runs 3 test routines and returns results
+void ATTest(void);
+
+// get pointers to interfaces and creates thread to ensure
+// interface methods return RPC_E_WRONG_ERROR
+HRESULT CreateEHelperQuery(void);
+
+HRESULT LinkObjectQuery(void);
+
+HRESULT GetClipboardQuery(void);
+
+// new thread functions to try interface methods
+void LinkObjectTest(void);
+
+void CreateEHTest(void);
+
+void GetClipboardTest(void);
+
+// interface methods with NULL parameters
+void OleLinkMethods(void);
+
+void OleObjectMethods(void);
+
+void PersistStorageMethods(void);
+
+void DataObjectMethods(void);
+
+void RunnableObjectMethods(void);
+
+void ViewObject2Methods(void);
+
+void OleCache2Methods(void);
+
+void ExternalConnectionsMethods(void);
+
+#endif //!ATTEST_H