CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CYBWin32Headers.hpp
Go to the documentation of this file.
1 #pragma once
3 
4 namespace CYB {
5  namespace Platform {
7  namespace Win32 {
9 #ifdef TARGET_OS_WINDOWS
10  #define WINBLUE_KBSPRING14 //updated APIs
11  #define WIN32_LEAN_AND_MEAN //kiss
12  #include <Windows.h>
13  #include <Shellapi.h>
14  #include <Shlwapi.h>
15  //Shlobj.h has too many shitty inline functions
16  //defining the exported ones here
17 #pragma region ShlobjDefs
18  HRESULT SHGetKnownFolderPath(
19  _In_ REFKNOWNFOLDERID rfid,
20  _In_ DWORD dwFlags,
21  _In_opt_ HANDLE hToken,
22  _Out_ PWSTR *ppszPath
23  );
24 #pragma endregion
25  #undef WIN32_LEAN_AND_MEAN
26  #undef Yield
27  #undef min
28  #undef max
29  #undef CreateProcess
30  #undef CreateDirectory
31  #undef DeleteFile
32 #endif
33  };
35  };
36 };
37 
38 #ifdef TARGET_OS_WINDOWS
39 using oschar_t = wchar_t;
41 #endif
42 
43 #include "CYBUTF16String.hpp"
Defines the Win32 only UTF16 converter.