summaryrefslogtreecommitdiffstats
path: root/private/oleauto/tests/sdisptst/oleguids.c
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/oleauto/tests/sdisptst/oleguids.c
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 '')
-rw-r--r--private/oleauto/tests/sdisptst/oleguids.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/private/oleauto/tests/sdisptst/oleguids.c b/private/oleauto/tests/sdisptst/oleguids.c
new file mode 100644
index 000000000..4833df4e5
--- /dev/null
+++ b/private/oleauto/tests/sdisptst/oleguids.c
@@ -0,0 +1,51 @@
+/***
+*oleguids.c
+*
+* Copyright (C) 1992, Microsoft Corporation. All Rights Reserved.
+* Information Contained Herein Is Proprietary and Confidential.
+*
+*Purpose:
+* This file allocates (via Ole macro mania) the Ole GUIDS that are
+* referenced by the OLEDISP dll.
+*
+*Revision History:
+*
+* [00] 21-Jan-93 bradlo: Created.
+*
+*****************************************************************************/
+
+#ifdef _MAC
+# ifdef _MSC_VER
+# include <macos/types.h>
+# include <macos/packages.h>
+# include <macos/resource.h>
+# include <macos/menus.h>
+# include <macos/windows.h>
+# include <macos/osutils.h>
+# include <macos/appleeve.h>
+# else
+# include <types.h>
+# include <packages.h>
+# include <resources.h>
+# include <menus.h>
+# include <windows.h>
+# include <appleevents.h>
+# include <osutils.h>
+# include <AppleEvents.h>
+# endif
+#else
+# include <windows.h>
+#endif
+
+#include <ole2.h>
+
+// this redefines the Ole DEFINE_GUID() macro to do allocation.
+//
+#include <initguid.h>
+
+// due to the previous header, including this causes our DEFINE_GUID
+// definitions in the following headers to actually allocate data.
+
+// instantiate the ole2 guids that we use
+#include "oleguids.h"
+