MagickCore  6.9.11
Convert, Edit, Or Compose Bitmap Images
nt-base-private.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2020 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  Exit(int),
95 #if !defined(__MINGW32__)
96  gettimeofday(struct timeval *,struct timezone *),
97 #endif
98  IsWindows95(void),
99  NTCloseDirectory(DIR *),
100  NTCloseLibrary(void *),
101  NTControlHandler(void),
102  NTExitLibrary(void),
103  NTTruncateFile(int,off_t),
104  NTGhostscriptDLL(char *,int),
105  NTGhostscriptEXE(char *,int),
106  NTGhostscriptFonts(char *,int),
107  NTGhostscriptLoadDLL(void),
108  NTInitializeLibrary(void),
109  NTSetSearchPath(const char *),
110  NTUnmapMemory(void *,size_t),
111  NTSystemCommand(const char *,char *);
112 
113 extern MagickPrivate ssize_t
114  NTSystemConfiguration(int);
115 
117  NTGatherRandomData(const size_t,unsigned char *),
118  NTGetExecutionPath(char *,const size_t),
119  NTGetModulePath(const char *,char *),
120  NTReportEvent(const char *,const MagickBooleanType);
121 
123  NTLongPathsEnabled();
124 
125 extern MagickPrivate struct dirent
126  *NTReadDirectory(DIR *);
127 
128 extern MagickPrivate unsigned char
129  *NTRegistryKeyLookup(const char *),
130  *NTResourceToBlob(const char *);
131 
132 extern MagickPrivate void
133  *NTGetLibrarySymbol(void *,const char *),
134  NTInitializeWinsock(MagickBooleanType),
135  *NTMapMemory(char *,size_t,int,int,int,MagickOffsetType),
136  *NTOpenLibrary(const char *),
137  NTWindowsGenesis(void),
138  NTWindowsTerminus(void);
139 
140 #endif /* !XS_VERSION */
141 
142 #endif /* MAGICKCORE_WINDOWS_SUPPORT */
143 
144 #if defined(__cplusplus) || defined(c_plusplus)
145 }
146 #endif /* !C++ */
147 
148 #endif /* !MAGICKCORE_NT_BASE_H */
MagickExport
#define MagickExport
Definition: method-attribute.h:80
_DIR
Definition: mac.h:42
dirent::d_namlen
int d_namlen
Definition: mac.h:59
delegate.h
delegate-private.h
Exit
MagickExport int Exit(int)
dirent
Definition: mac.h:54
splay-tree.h
MagickPrivate
#define MagickPrivate
Definition: method-attribute.h:81
MagickBooleanType
MagickBooleanType
Definition: magick-type.h:199
DIR
struct _DIR DIR
exception.h
dirent::d_name
char d_name[255]
Definition: mac.h:56
MagickOffsetType
ssize_t MagickOffsetType
Definition: magick-type.h:135