2 Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 https://www.imagemagick.org/script/license.php
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.
16 MagickCore Windows NT private methods.
18 #ifndef MAGICKCORE_NT_BASE_PRIVATE_H
19 #define MAGICKCORE_NT_BASE_PRIVATE_H
21 #include "MagickCore/delegate.h"
22 #include "MagickCore/delegate-private.h"
23 #include "MagickCore/exception.h"
24 #include "MagickCore/splay-tree.h"
26 #if defined(__cplusplus) || defined(c_plusplus)
30 #if defined(MAGICKCORE_WINDOWS_SUPPORT)
32 #if !defined(XS_VERSION)
57 typedef struct _NTMEMORYSTATUSEX
70 ullAvailExtendedVirtual;
73 #if !defined(__MINGW32__)
85 (CALLBACK *LPFNDLLFUNC1)(DWORD,UINT);
88 (CALLBACK *LPFNDLLFUNC2)(NTMEMORYSTATUSEX *);
92 #if defined(MAGICKCORE_BZLIB_DELEGATE)
98 extern MagickPrivate char
99 *NTGetLastError(void);
101 #if !defined(MAGICKCORE_LTDL_DELEGATE)
102 extern MagickPrivate const char
103 *NTGetLibraryError(void);
106 #if !defined(XS_VERSION)
107 extern MagickPrivate const char
108 *NTGetLibraryError(void);
110 extern MagickPrivate DIR
111 *NTOpenDirectory(const char *);
113 extern MagickPrivate double
118 extern MagickPrivate int
120 #if !defined(__MINGW32__)
121 gettimeofday(struct timeval *,struct timezone *),
124 NTCloseDirectory(DIR *),
125 NTCloseLibrary(void *),
126 NTControlHandler(void),
128 NTTruncateFile(int,off_t),
129 NTGhostscriptDLL(char *,int),
130 NTGhostscriptEXE(char *,int),
131 NTGhostscriptFonts(char *,int),
132 NTGhostscriptLoadDLL(void),
133 NTInitializeLibrary(void),
134 NTSetSearchPath(const char *),
135 NTSyncMemory(void *,size_t,int),
136 NTUnmapMemory(void *,size_t),
137 NTSystemCommand(const char *,char *);
139 extern MagickPrivate ssize_t
141 NTSystemConfiguration(int),
142 NTTellDirectory(DIR *);
144 extern MagickPrivate MagickBooleanType
145 NTGatherRandomData(const size_t,unsigned char *),
146 NTGetExecutionPath(char *,const size_t),
147 NTGetModulePath(const char *,char *),
148 NTReportEvent(const char *,const MagickBooleanType);
150 extern MagickPrivate struct dirent
151 *NTReadDirectory(DIR *);
153 extern MagickPrivate unsigned char
154 *NTRegistryKeyLookup(const char *),
155 *NTResourceToBlob(const char *);
157 extern MagickPrivate void
158 *NTGetLibrarySymbol(void *,const char *),
159 NTInitializeWinsock(MagickBooleanType),
160 *NTMapMemory(char *,size_t,int,int,int,MagickOffsetType),
161 *NTOpenLibrary(const char *),
162 NTSeekDirectory(DIR *,ssize_t),
163 NTWindowsGenesis(void),
164 NTWindowsTerminus(void);
166 #endif /* !XS_VERSION */
168 #endif /* MAGICKCORE_WINDOWS_SUPPORT */
170 #if defined(__cplusplus) || defined(c_plusplus)
174 #endif /* !MAGICKCORE_NT_BASE_H */