2015-05-31 10:12:29 -05:00
|
|
|
// 31 may 2015
|
|
|
|
#define UNICODE
|
|
|
|
#define _UNICODE
|
|
|
|
#define STRICT
|
|
|
|
#define STRICT_TYPED_ITEMIDS
|
2016-04-20 18:51:30 -05:00
|
|
|
|
2015-05-31 10:12:29 -05:00
|
|
|
// see https://github.com/golang/go/issues/9916#issuecomment-74812211
|
2015-12-22 15:00:51 -06:00
|
|
|
// TODO get rid of this
|
2015-05-31 10:12:29 -05:00
|
|
|
#define INITGUID
|
2016-04-20 18:51:30 -05:00
|
|
|
|
2015-11-27 12:35:24 -06:00
|
|
|
// for the manifest
|
2016-05-29 11:00:55 -05:00
|
|
|
#ifndef _UI_STATIC
|
2015-11-27 12:35:24 -06:00
|
|
|
#define ISOLATION_AWARE_ENABLED 1
|
2016-05-29 11:00:55 -05:00
|
|
|
#endif
|
2016-04-20 18:51:30 -05:00
|
|
|
|
2015-05-31 17:45:11 -05:00
|
|
|
// get Windows version right; right now Windows Vista
|
2016-04-20 18:51:30 -05:00
|
|
|
// unless otherwise stated, all values from Microsoft's sdkddkver.h
|
|
|
|
// TODO is all of this necessary? how is NTDDI_VERSION used?
|
|
|
|
// TODO plaform update sp2
|
|
|
|
#define WINVER 0x0600 /* from Microsoft's winnls.h */
|
|
|
|
#define _WIN32_WINNT 0x0600
|
|
|
|
#define _WIN32_WINDOWS 0x0600 /* from Microsoft's pdh.h */
|
|
|
|
#define _WIN32_IE 0x0700
|
|
|
|
#define NTDDI_VERSION 0x06000000
|
|
|
|
|
2015-05-31 10:12:29 -05:00
|
|
|
#include <windows.h>
|
2016-04-20 18:51:30 -05:00
|
|
|
|
2015-11-27 18:59:46 -06:00
|
|
|
// Microsoft's resource compiler will segfault if we feed it headers it was not designed to handle
|
|
|
|
#ifndef RC_INVOKED
|
2015-05-31 10:12:29 -05:00
|
|
|
#include <commctrl.h>
|
2016-04-23 23:33:42 -05:00
|
|
|
#include <uxtheme.h>
|
2016-04-20 18:51:30 -05:00
|
|
|
#include <windowsx.h>
|
|
|
|
#include <shobjidl.h>
|
|
|
|
#include <d2d1.h>
|
2016-05-05 20:49:50 -05:00
|
|
|
#include <d2d1helper.h>
|
2016-04-20 18:51:30 -05:00
|
|
|
#include <dwrite.h>
|
2016-05-25 00:08:55 -05:00
|
|
|
#include <usp10.h>
|
2016-04-20 18:51:30 -05:00
|
|
|
|
2015-05-31 10:12:29 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <wchar.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdio.h>
|
2015-09-08 11:11:01 -05:00
|
|
|
#include <math.h>
|
2015-10-11 06:51:14 -05:00
|
|
|
#include <float.h>
|
2016-04-21 20:57:36 -05:00
|
|
|
#include <inttypes.h>
|
2016-04-20 18:51:30 -05:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
2016-05-13 22:29:41 -05:00
|
|
|
#include <sstream>
|
2015-11-27 18:59:46 -06:00
|
|
|
#endif
|