Mobile API Reference  MicroStrategy 2019
PDCwindows.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : PDCwindows.h
3 // AUTHOR : Perl Script
4 // CREATION : 6/13/02
5 // Copyright (C) MicroStrategy, Inc. 2002
6 //==============================================================================================
7 #ifndef PDCwindows_h
8 #define PDCwindows_h
9 
10 // this must be the *first* file included
11 #include "ProtectedSource/Prolog.h"
12 
13 #if defined(WIN32) && !defined(_USE_MSI_COM)
14  #ifndef STRICT
15  #define STRICT // be type-safe
16  #endif
17 
18 // #ifndef _WIN32_WINNT
19 // #define _WIN32_WINNT 0x0500 // for Windows 2000+ APIs
20 // #endif
21 
22  #include "ProtectedSource/DisableRareWin32API.h"
23  #include <windows.h>
24  #include "ProtectedSource/UndefineWin32APIAliases.h"
25 #else
26  //==============================================================================================
27  // FILENAME : windows.h
28  // AUTHOR : Will Hurwood
29  // CREATION : 7/10/2001
30  // Copyright (C) MicroStrategy Incorporated 2001
31  // All rights reserved
32  //==============================================================================================
33  // This header file stands in for the standard 'windows.h' header file used in VC++
34  // We make minimal effort to declare symbols and functions in the same file as
35  // used in Windows.
36 
37  // We are using this file to hold symbols and declarations that seem to be part of
38  // the windows environment.
39  #ifndef __WINDOWS_H__
40  #define __WINDOWS_H__
41 
42  #include "PDCrpc.h"
43  #include "PDCwtypes.h"
44 
45  // Hash define away some VC++ / 16-bit Windows extensions
46  #ifndef WIN32
47  #define __stdcall
48  #define _declspec(dllexport)
49  #define __cdecl
50  #endif
51 
52  #define WINAPI __stdcall
53  #define APIENTRY WINAPI
54 
55  #include "PDCwindef.h"
56  #include "PDCwinnt.h"
57  #include "PDCwinbase.h"
58 
59  // Enumeration constants used in DLL Main functions
60  #define DLL_PROCESS_ATTACH 1
61  #define DLL_PROCESS_DETACH 0
62 
63  // 2002-12-05 vovechkin
64  // these are not supported on UNIX, so they should be used
65  // on neither Windows nor UNIX to prevent subtle bugs
66  //#define DLL_THREAD_ATTACH 2
67  //#define DLL_THREAD_DETACH 3
68 
69  // API call made by thread on DLL startup
70  // Tells WinAPI to stop informing DLL each time a thread attaches to it
72  {
73  return 1;
74  }
75 
77  // Dec 3, 2001 vovechkin:
78  // Use MBase::GetLastError() instead, defined in Base/Base/LastError.h
79  //DWORD GetLastError(void);
80 
81  void SetLastError(DWORD dwErrCode);
82 
83  // Memory Management APIs, which is in winbase.h
84  #include "PDCstdlib.h"
85 
86  #define CopyMemory(Destination,Source,Length) memcpy((Destination),(Source),(Length))
87  #define ZeroMemory(Destination,Length) memset((Destination),0,(Length))
88 
89  #ifndef THREAD_PRIORITY_NORMAL
90  #define THREAD_PRIORITY_NORMAL 0
91  #endif
92 
93  #endif /* __WINDOWS_H__ */
94 #endif // WIN32 && !_USE_MSI_COM
95 
96 // this must be the *last* file included
97 #include "ProtectedSource/Epilog.h"
98 
99 #endif // PDCwindows_h
signed char BOOL
Definition: PDCwtypes.h:101
HINSTANCE HMODULE
Definition: PDCwtypes.h:311
BOOL DisableThreadLibraryCalls(HMODULE)
Definition: PDCwindows.h:71
void SetLastError(DWORD dwErrCode)
unsigned long DWORD
Definition: PDCwtypes.h:121