Adobe 38040334 - Dreamweaver CS3 User Manual page 365

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
unsigned long *modtime
the file was last modified. The time is given as the operating-system time value. For more information about the
operating-system time value, see
• The
unsigned long *createtime
that the file was created. The time is given as the operating-system time value. For more information on the
operating system time value, see
Returns
A Boolean value:
JS_TRUE
or an error occurs while getting the attributes.
Example
char dwConfig = "file:///c|/Program Files/Adobe/Adobe Dreamweaver CS3/
Configuration/Extensions.txt";
unsigned long attrs;
unsigned long filesize;
unsigned long modtime;
unsigned long createtime;
MM_GetConfigAttributes(dwConfig, &attrs, &filesize, &modtime, &createtime);
JSBool MM_SetConfigFileAttributes()
Availability
Dreamweaver MX.
Description
This function sets the attributes that you specify for the file, if they are different from the current attributes.
If the specified file URL is in the Dreamweaver Configuration folder, this function first copies the file to the user
Configuration folder before it sets the attributes. If the attributes are the same as the current file attributes, the file is
not copied.
Arguments
char *fileURL, unsigned long attrs
• The
argument is a pointer to a string that names the file for which you want to set the attributes,
char *fileURL
which is provided as a file:// URL.
• The
unsigned long attrs
following constants to set the attributes:
MM_FILEATTR_NORMAL
MM_FILEATTR_RDONLY
MM_FILEATTR_HIDDEN
MM_FILEATTR_SYSTEM
MM_FILEATTR_SUBDIR
Returns
A Boolean value:
JS_TRUE
or it is marked for deletion.
argument is the address of an integer in which the function returns the time that
DWfile.getModificationDate()
argument is the address of an integer in which the function returns the time
DWfile.getCreationDate()
indicates success;
JS_FALSE
argument specifies the attribute bits to set on the file. You can use a logical
indicates success;
JS_FALSE
in the Dreamweaver API Reference.
in the Dreamweaver API Reference.
indicates failure. Returns
JS_FALSE
indicates failure. Returns
JS_FALSE
DREAMWEAVER CS3
Extending Dreamweaver
if the file does not exist
on the
OR
if the file does not exist
359

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents