Adobe 38040334 - Dreamweaver CS3 User Manual page 35

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is the file handle that
noteHandle
• The
keyBufArray[64]
• The
argument is the integer that
keyArrayMaxLen
maximum number of items in the key buffer array.
Returns
A Boolean value:
indicates the operation is successful;
true
the key names.
Example
The following code prints the key names and values of all the keys in the Design Notes file that are associated with
the welcome.html file:
typedef char[64] InfoKey;
FileHandle noteHandle = OpenNotesFile("file:///c|/sites/avocado8/iwjs/welcome.html");
if (noteHandle > 0){
int keyCount = GetNotesKeyCount(noteHandle);
if (keyCount <= 0)
return;
InfoKey* keys = new InfoKey[keyCount];
BOOL succeeded = GetNotesKeys(noteHandle, keys, keyCount);
if (succeeded){
for (int i=0; i < keyCount; i++){
printf("Key is: %s\n", keys[i]);
printf("Value is: %s\n\n", GetNote(noteHandle, keys[i]);
}
}
delete []keys;
}
CloseNotesFile(noteHandle);
BOOL GetSiteRootForFile()
Description
This function determines the site root for the specified Design Notes file.
Arguments
const char* filePath, char* siteRootBuf, int siteRootBufMaxLen, {InfoPrefs
• The
argument is the file://URL of the file for which you want the site root.
filePath
• The
argument is the buffer where the site root is stored.
siteRootBuf
• The
siteRootBufMaxLen
• The
argument, which is optional, is a reference to a
infoPrefs
stored.
Returns
A Boolean value:
indicates the operation is successful;
true
the address of the buffer that stores the site root. If you specify the
the Design Notes preferences for the site. The
, both of type
DesignNotes
OpenNotesFile()
argument is the buffer array where the keys are stored.
argument is the maximum size of the buffer that
InfoPrefs
.
BOOL
returns.
GetNotesKeyCount(noteHandle)
otherwise. The
false
siteRootBuf
in which the preferences for the site are
struct
otherwise. The
false
argument, the function also returns
infoPrefs
struct has two variables:
DREAMWEAVER CS3
returns, indicating the
argument receives
keyBufArray
*
infoPrefs}
references.
argument receives
siteRootBuf
and
bUseDesignNotes
bUpload-
30
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents