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 #if !defined(XS_VERSION)
57 typedef struct _NTMEMORYSTATUSEX
70 ullAvailExtendedVirtual;
73 #if !defined(__MINGW32__) && !defined(__MINGW64__)
83 (CALLBACK *LPFNDLLFUNC1)(DWORD,UINT);
86 (CALLBACK *LPFNDLLFUNC2)(NTMEMORYSTATUSEX *);
90 #if defined(MAGICKCORE_BZLIB_DELEGATE)
96 extern MagickPrivate char
97 *NTGetLastError(void);
99 #if !defined(MAGICKCORE_LTDL_DELEGATE)
100 extern MagickPrivate const char
101 *NTGetLibraryError(void);
104 #if !defined(XS_VERSION)
105 extern MagickPrivate const char
106 *NTGetLibraryError(void);
108 extern MagickPrivate DIR
109 *NTOpenDirectory(const char *);
111 extern MagickPrivate double
115 extern MagickPrivate int
117 #if !defined(__MINGW32__) && !defined(__MINGW64__)
118 gettimeofday(struct timeval *,struct timezone *),
121 NTCloseDirectory(DIR *),
122 NTCloseLibrary(void *),
123 NTControlHandler(void),
125 NTTruncateFile(int,off_t),
126 NTGhostscriptDLL(char *,int),
127 NTGhostscriptEXE(char *,int),
128 NTGhostscriptFonts(char *,int),
129 NTGhostscriptLoadDLL(void),
130 NTInitializeLibrary(void),
131 NTSetSearchPath(const char *),
132 NTSyncMemory(void *,size_t,int),
133 NTUnmapMemory(void *,size_t),
134 NTSystemCommand(const char *);
136 extern MagickPrivate ssize_t
137 NTSystemConfiguration(int),
138 NTTellDirectory(DIR *);
140 extern MagickPrivate MagickBooleanType
141 NTGatherRandomData(const size_t,unsigned char *),
142 NTGetExecutionPath(char *,const size_t),
143 NTGetModulePath(const char *,char *),
144 NTReportEvent(const char *,const MagickBooleanType),
145 NTReportException(const char *,const MagickBooleanType);
147 extern MagickPrivate struct dirent
148 *NTReadDirectory(DIR *);
150 extern MagickPrivate unsigned char
151 *NTRegistryKeyLookup(const char *),
152 *NTResourceToBlob(const char *);
154 extern MagickPrivate void
155 NTWindowsGenesis(void),
156 *NTGetLibrarySymbol(void *,const char *),
157 *NTMapMemory(char *,size_t,int,int,int,MagickOffsetType),
158 *NTOpenLibrary(const char *),
159 NTSeekDirectory(DIR *,ssize_t);
161 #endif /* !XS_VERSION */
163 #endif /* MAGICKCORE_WINDOWS_SUPPORT */
165 #if defined(__cplusplus) || defined(c_plusplus)
169 #endif /* !_MAGICKCORE_NT_BASE_H */