2 Copyright 1999-2014 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 http://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 #define WIN32_LEAN_AND_MEAN
34 #define _CRT_SECURE_NO_DEPRECATE 1
42 #if defined(_DEBUG) && !defined(__MINGW32__) && !defined(__MINGW64__)
46 #if !defined(XS_VERSION)
71 typedef struct _NTMEMORYSTATUSEX
84 ullAvailExtendedVirtual;
87 #if !defined(__MINGW32__) && !defined(__MINGW64__)
97 (CALLBACK *LPFNDLLFUNC1)(DWORD,UINT);
100 (CALLBACK *LPFNDLLFUNC2)(NTMEMORYSTATUSEX *);
104 #if defined(MAGICKCORE_BZLIB_DELEGATE)
110 extern MagickPrivate char
111 *NTGetLastError(void);
113 #if !defined(MAGICKCORE_LTDL_DELEGATE)
114 extern MagickPrivate const char
115 *NTGetLibraryError(void);
118 #if !defined(XS_VERSION)
119 extern MagickPrivate const char
120 *NTGetLibraryError(void);
122 extern MagickPrivate DIR
123 *NTOpenDirectory(const char *);
125 extern MagickPrivate double
129 extern MagickPrivate int
131 #if !defined(__MINGW32__) && !defined(__MINGW64__)
132 gettimeofday(struct timeval *,struct timezone *),
135 NTCloseDirectory(DIR *),
136 NTCloseLibrary(void *),
137 NTControlHandler(void),
139 NTTruncateFile(int,off_t),
140 NTGhostscriptDLL(char *,int),
141 NTGhostscriptEXE(char *,int),
142 NTGhostscriptFonts(char *,int),
143 NTGhostscriptLoadDLL(void),
144 NTInitializeLibrary(void),
145 NTSetSearchPath(const char *),
146 NTSyncMemory(void *,size_t,int),
147 NTUnmapMemory(void *,size_t),
148 NTSystemCommand(const char *);
150 extern MagickPrivate ssize_t
151 NTSystemConfiguration(int),
152 NTTellDirectory(DIR *);
154 extern MagickPrivate MagickBooleanType
155 NTGatherRandomData(const size_t,unsigned char *),
156 NTGetExecutionPath(char *,const size_t),
157 NTGetModulePath(const char *,char *),
158 NTReportEvent(const char *,const MagickBooleanType),
159 NTReportException(const char *,const MagickBooleanType);
161 extern MagickPrivate struct dirent
162 *NTReadDirectory(DIR *);
164 extern MagickPrivate unsigned char
165 *NTRegistryKeyLookup(const char *),
166 *NTResourceToBlob(const char *);
168 extern MagickPrivate void
169 NTWindowsGenesis(void),
170 *NTGetLibrarySymbol(void *,const char *),
171 *NTMapMemory(char *,size_t,int,int,int,MagickOffsetType),
172 *NTOpenLibrary(const char *),
173 NTSeekDirectory(DIR *,ssize_t);
175 #endif /* !XS_VERSION */
177 #endif /* MAGICKCORE_WINDOWS_SUPPORT */
179 #if defined(__cplusplus) || defined(c_plusplus)
183 #endif /* !_MAGICKCORE_NT_BASE_H */