NTSystemCommand(const char *,char *);
extern MagickPrivate ssize_t
+ NTGetPageSize(void),
NTSystemConfiguration(int),
NTTellDirectory(DIR *);
% %
% %
% %
++ N T G e t P a g e S i z e %
+% %
+% %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% NTGetPageSize() returns the page size under Windows.
+%
+% The format of the NTPageSize
+%
+% NTPageSize()
+%
+*/
+MagickPrivate ssize_t NTGetPageSize(void)
+{
+ SYSTEM_INFO
+ system_info;
+
+ GetSystemInfo(&system_info);
+ return((ssize_t) system_info.dwPageSize);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% %
+% %
% N T G h o s t s c r i p t D L L %
% %
% %
return(page_size);
#if defined(MAGICKCORE_HAVE_SYSCONF) && defined(_SC_PAGE_SIZE)
page_size=(ssize_t) sysconf(_SC_PAGE_SIZE);
-#else
-#if defined(MAGICKCORE_HAVE_GETPAGESIZE)
+#elif defined(MAGICKCORE_HAVE_GETPAGESIZE)
page_size=(ssize_t) getpagesize();
-#endif
+#elif defined(MAGICKCORE_WINDOWS_SUPPORT)
+ page_size=NTGetPageSize();
#endif
if (page_size <= 0)
page_size=16384;