NAME

nt - Windows NT Utility Methods for ImageMagick


SYNOPSIS

int Exit( int status );

int ImageFormatConflict( const char *magick );

int IsWindows95( );

int NTSystemCommand( const char *command );

int NTTemporaryFilename( char *filename );

void NTWarningHandler( const unsigned int warning, const char *message, const char *qualifier );

void closedir( DIR *entry );

DIR * opendir( char *path );

readdir( entry );

void seekdir( DIR *entry, long position );

long telldir( DIR *entry );


FUNCTION DESCRIPTIONS


closedir

Method closedir closes the named directory stream and frees the DIR structure.

The format of the closedir method is:

void closedir ( DIR *entry );

A description of each parameter follows:

entry:

Specifies a pointer to a DIR structure.


Exit

Method Exit calls TerminateProcess for Win95.

The format of the Exit method is:

int Exit ( int status );

A description of each parameter follows:

status:

an integer value representing the status of the terminating process.


ImageFormatConflict

Method ImageFormatConflict returns true if the image format conflicts with a logical drive (.e.g. X:).

The format of the ImageFormatConflict method is:

int ImageFormatConflict ( const char *magick );

A description of each parameter follows:

status:

Method ImageFormatConflict returns true if the image format conflicts with a logical drive.

magick:

Specifies the image format.


IsWindows95

Method IsWindows95 returns true if the system is Windows 95.

The format of the IsWindows95 method is:

int IsWindows95 ( );

A description of each parameter follows:

status:

an integer value representing the status of the terminating process.


NTSystemCommand

 Method NTSystemCommand executes the specified command and waits until it
 terminates.  The returned value is the exit status of the command.

The format of the NTSystemCommand method is:

int NTSystemCommand ( const char *command );

A description of each parameter follows:

command:

This string is the command to execute.


NTTemporaryFilename

 Method NTTemporaryFilename creates a name for a temporary file.  It
 returns zero if an error occurs.

The format of the TemporaryFilename method is:

int NTTemporaryFilename ( char *filename );

A description of each parameter follows:

filename:

Specifies a pointer to a string to place the filename.


NTWarningHandler

Method NTWarningHandler displays a warning message.

The format of the NTWarningHandler method is:

void NTWarningHandler ( const unsigned int warning, const char *message, const char *qualifier );

A description of each parameter follows:

warning:

Specifies the numeric warning category.

message:

Specifies the message to display before terminating the program.

qualifier:

Specifies any qualifier to the message.


opendir

Method opendir opens the directory named by filename and associates a directory stream with it.

The format of the opendir method is:

DIR *opendir ( char *path );

A description of each parameter follows:

entry:

Specifies a pointer to a DIR structure.


readdir

Method readdir returns a pointer to a structure representing the directory entry at the current position in the directory stream to which entry refers.

The format of the readdir

readdir ( entry );

A description of each parameter follows:

entry:

Specifies a pointer to a DIR structure.


seekdir

 Method seekdir sets the position of the next readdir() operation
 on the directory stream.

The format of the seekdir method is:

void seekdir ( DIR *entry, long position );

A description of each parameter follows:

entry:

Specifies a pointer to a DIR structure.

position:

specifies the position associated with the directory stream.


telldir

 Method telldir returns the current location associated  with  the
 named directory stream.

The format of the telldir method is:

long telldir ( DIR *entry );

A description of each parameter follows:

entry:

Specifies a pointer to a DIR structure.


DllMain

Method Dllmain is the entry point for the ImageMagick DLL library.