MagickCore  6.9.12-43
Convert, Edit, Or Compose Bitmap Images
nt-base-private.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore Windows NT private methods.
17 */
18 #ifndef MAGICKCORE_NT_BASE_PRIVATE_H
19 #define MAGICKCORE_NT_BASE_PRIVATE_H
20 
21 #include "magick/delegate.h"
23 #include "magick/exception.h"
24 #include "magick/splay-tree.h"
25 
26 #if defined(__cplusplus) || defined(c_plusplus)
27 extern "C" {
28 #endif
29 
30 #if defined(MAGICKCORE_WINDOWS_SUPPORT)
31 
32 #if !defined(XS_VERSION)
33 struct dirent
34 {
35  char
36  d_name[2048];
37 
38  int
39  d_namlen;
40 };
41 
42 typedef struct _DIR
43 {
44  HANDLE
45  hSearch;
46 
47  WIN32_FIND_DATAW
48  Win32FindData;
49 
50  BOOL
51  firsttime;
52 
53  struct dirent
54  file_info;
55 } DIR;
56 
57 #if !defined(__MINGW32__)
58 struct timezone
59 {
60  int
61  tz_minuteswest,
62  tz_dsttime;
63 };
64 #endif
65 
66 #endif
67 
68 #if defined(MAGICKCORE_BZLIB_DELEGATE)
69 # if defined(_WIN32)
70 # define BZ_IMPORT 1
71 # endif
72 #endif
73 
74 extern MagickPrivate char
75  *NTGetLastError(void);
76 
77 #if !defined(MAGICKCORE_LTDL_DELEGATE)
78 extern MagickPrivate const char
79  *NTGetLibraryError(void);
80 #endif
81 
82 #if !defined(XS_VERSION)
83 extern MagickPrivate const char
84  *NTGetLibraryError(void);
85 
86 extern MagickPrivate DIR
87  *NTOpenDirectory(const char *);
88 
89 extern MagickPrivate double
90  NTElapsedTime(void),
91  NTUserTime(void);
92 
93 extern MagickPrivate int
94 #if !defined(__MINGW32__)
95  gettimeofday(struct timeval *,struct timezone *),
96 #endif
97  NTCloseDirectory(DIR *),
98  NTCloseLibrary(void *),
99  NTControlHandler(void),
100  NTExitLibrary(void),
101  NTTruncateFile(int,off_t),
102  NTGhostscriptEXE(char *,int),
103  NTGhostscriptFonts(char *,int),
104  NTInitializeLibrary(void),
105  NTSetSearchPath(const char *),
106  NTUnmapMemory(void *,size_t),
107  NTSystemCommand(const char *,char *);
108 
109 extern MagickPrivate ssize_t
110  NTSystemConfiguration(int);
111 
113  NTGatherRandomData(const size_t,unsigned char *),
114  NTGetExecutionPath(char *,const size_t),
115  NTGetModulePath(const char *,char *),
116  NTReportEvent(const char *,const MagickBooleanType);
117 
119  NTLongPathsEnabled();
120 
121 extern MagickPrivate struct dirent
122  *NTReadDirectory(DIR *);
123 
124 extern MagickPrivate unsigned char
125  *NTRegistryKeyLookup(const char *),
126  *NTResourceToBlob(const char *);
127 
128 extern MagickPrivate void
129  *NTGetLibrarySymbol(void *,const char *),
130  NTInitializeWinsock(MagickBooleanType),
131  *NTMapMemory(char *,size_t,int,int,int,MagickOffsetType),
132  *NTOpenLibrary(const char *),
133  NTWindowsGenesis(void),
134  NTWindowsTerminus(void);
135 
136 #endif /* !XS_VERSION */
137 
138 #endif /* MAGICKCORE_WINDOWS_SUPPORT */
139 
140 #if defined(__cplusplus) || defined(c_plusplus)
141 }
142 #endif /* !C++ */
143 
144 #endif /* !MAGICKCORE_NT_BASE_H */
Definition: mac.h:53
Definition: mac.h:41
ssize_t MagickOffsetType
Definition: magick-type.h:135
MagickBooleanType
Definition: magick-type.h:198
struct _DIR DIR
#define MagickPrivate
Definition: method-attribute.h:81
#define MagickExport
Definition: method-attribute.h:80
int d_namlen
Definition: mac.h:59
char d_name[255]
Definition: mac.h:56