>nt - Windows NT Utility Methods for ImageMagick9/


NAME



nt - Windows 7NT Utility Methods for ImageMagick




(

SYNOPSIS



)int Exit( int status );

Mint ImageFormatConflict( const char *magick );

%int IsWindows95( );

Jint NTSystemCommand( const char *command );

Iint NTTemporaryFilename( char *filename );

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

!void closedir( /DIR *entry );

ODIR * opendir( char *path );

"readdir( entry );

void seekdir( 1DIR *entry, long position );

long telldir( /DIR *entry );




B

FUNCTION DESCRIPTIONS






(

closedir



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

%The format of the closedir method is:7

void closedir ( DIR *entry );


=A description of each parameter follows:

7

entry:


Specifies a pointer to a #DIR structure.






Exit



-Method Exit calls TerminateProcess for Win95.

!The format of the Exit method is:2

int Exit ( int status );


=A description of each parameter follows:

#

status:


Dan integer value representing the status of the terminating process.






>

ImageFormatConflict



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

0The format of the ImageFormatConflict method is:I

int ImageFormatConflict ( const char *magick );


=A description of each parameter follows:

#

status:


JMethod ImageFormatConflict returns true if the image format conflicts witha 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:


Dan integer value representing the status of the terminating process.






6

NTSystemCommand



N

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


,The format of the NTSystemCommand method is:F

int NTSystemCommand ( const char *command );


=A description of each parameter follows:

$

command:


&This string is the command to execute.






>

NTTemporaryFilename



I

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


.The format of the TemporaryFilename method is:E

int NTTemporaryFilename ( char *filename );


=A description of each parameter follows:

%

filename:


6Specifies a pointer to a string to place the filename.






8

NTWarningHandler



3Method 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



EMethod opendir opens the directory named by filename and associates adirectory stream with it.

$The format of the opendir method is:6

DIR *opendir ( char *path );


=A description of each parameter follows:

"

entry:


Specifies a pointer to a #DIR structure.






&

readdir



JMethod readdir returns a pointer to a structure representing the directoryDentry at the current position in the directory stream to which entryrefers.

The format of the readdir,

readdir ( entry );


=A description of each parameter follows:

"

entry:


Specifies a pointer to a #DIR structure.






&

seekdir



F

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


$The format of the seekdir method is:E

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



G

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


$The format of the telldir method is:6

long telldir ( DIR *entry );


=A description of each parameter follows:

"

entry:


Specifies a pointer to a #DIR structure.






&

DllMain



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