MagickCore 6.9.11-60
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)
27extern "C" {
28#endif
29
30#if defined(MAGICKCORE_WINDOWS_SUPPORT)
31
32#if !defined(XS_VERSION)
33struct dirent
34{
35 char
36 d_name[2048];
37
38 int
40};
41
42typedef 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__)
58struct 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
74extern MagickPrivate char
75 *NTGetLastError(void);
76
77#if !defined(MAGICKCORE_LTDL_DELEGATE)
78extern MagickPrivate const char
79 *NTGetLibraryError(void);
80#endif
81
82#if !defined(XS_VERSION)
83extern MagickPrivate const char
84 *NTGetLibraryError(void);
85
86extern MagickPrivate DIR
87 *NTOpenDirectory(const char *);
88
89extern MagickPrivate double
90 NTElapsedTime(void),
91 NTUserTime(void);
92
93extern 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 NTGhostscriptDLL(char *,int),
103 NTGhostscriptEXE(char *,int),
104 NTGhostscriptFonts(char *,int),
105 NTGhostscriptLoadDLL(void),
106 NTInitializeLibrary(void),
107 NTSetSearchPath(const char *),
108 NTUnmapMemory(void *,size_t),
109 NTSystemCommand(const char *,char *);
110
111extern MagickPrivate ssize_t
112 NTSystemConfiguration(int);
113
115 NTGatherRandomData(const size_t,unsigned char *),
116 NTGetExecutionPath(char *,const size_t),
117 NTGetModulePath(const char *,char *),
118 NTReportEvent(const char *,const MagickBooleanType);
119
121 NTLongPathsEnabled();
122
123extern MagickPrivate struct dirent
124 *NTReadDirectory(DIR *);
125
126extern MagickPrivate unsigned char
127 *NTRegistryKeyLookup(const char *),
128 *NTResourceToBlob(const char *);
129
130extern MagickPrivate void
131 *NTGetLibrarySymbol(void *,const char *),
132 NTInitializeWinsock(MagickBooleanType),
133 *NTMapMemory(char *,size_t,int,int,int,MagickOffsetType),
134 *NTOpenLibrary(const char *),
135 NTWindowsGenesis(void),
136 NTWindowsTerminus(void);
137
138#endif /* !XS_VERSION */
139
140#endif /* MAGICKCORE_WINDOWS_SUPPORT */
141
142#if defined(__cplusplus) || defined(c_plusplus)
143}
144#endif /* !C++ */
145
146#endif /* !MAGICKCORE_NT_BASE_H */
struct _DIR DIR
ssize_t MagickOffsetType
Definition magick-type.h:139
MagickBooleanType
Definition magick-type.h:203
#define MagickPrivate
Definition method-attribute.h:81
#define MagickExport
Definition method-attribute.h:80
Definition mac.h:42
Definition mac.h:54
char d_name[255]
Definition mac.h:56
int d_namlen
Definition mac.h:59