1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
/*
Windows NT Utility Methods for ImageMagick.
*/
#ifndef _MAGICK_NT_H
#define _MAGICK_NT_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#include <windows.h>
#include <winuser.h>
#include <wingdi.h>
#include <io.h>
#include <errno.h>
#if defined(_DEBUG)
#include <crtdbg.h>
#endif
/*
Define declarations.
*/
#define PROT_READ 1
#define PROT_WRITE 2
#define PROT_READWRITE 3
#define MAP_SHARED 1
#define MAP_PRIVATE 2
#define F_OK 0
#define R_OK 4
#define W_OK 2
#define RW_OK 6
#define lt_dlerror NTGetLastError
#if defined(_MT) && defined(WIN32)
#define SAFE_GLOBAL __declspec(thread)
#else
#define SAFE_GLOBAL
#endif
/*
Typedef declarations.
*/
typedef UINT (CALLBACK *LPFNDLLFUNC1)(DWORD,UINT);
#if !defined(XS_VERSION)
typedef struct _DIR
{
HANDLE
hSearch;
WIN32_FIND_DATA
Win32FindData;
BOOL
firsttime;
} DIR;
struct dirent
{
char
d_name[2048];
int
d_namlen;
};
#endif
/*
NT utilities routines.
*/
extern MagickExport char
*NTGetExecutionPath(void),
*SetClientName(const char *),
*NTGetLastError(void);
MagickExport Image
*ReadEMFImage(const ImageInfo *,ExceptionInfo *);
extern MagickExport int
Exit(int),
IsWindows95(),
NTSystemCommand(const char *);
#if !defined(XS_VERSION)
extern MagickExport DIR
*opendir(char *);
extern MagickExport double
NTElapsedTime(void),
NTUserTime(void);
extern MagickExport int
munmap(void *,size_t),
lt_dlinit(void);
extern MagickExport long
telldir(DIR *);
extern MagickExport struct dirent
*readdir(DIR *);
extern MagickExport unsigned char
*NTResourceToBlob(const char *);
extern MagickExport unsigned int
NTIsMagickConflict(const char *);
extern MagickExport void
closedir(DIR *),
*mmap(char *,size_t,int,int,int,off_t),
NTErrorHandler(const ExceptionType,const char *,const char *),
NTWarningHandler(const ExceptionType,const char *,const char *),
seekdir(DIR *,long),
lt_dlsetsearchpath(char *),
*lt_dlopen(char *),
lt_dlclose(void *),
*lt_dlsym(void *, char *);
#endif
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif
|