User Guide
46 The Design Notes API
void CloseNotesFile()
Description
This function closes the specified Design Notes file and saves any changes. If all key/value
pairs are removed from the Design Note file, Dreamweaver deletes it. Dreamweaver deletes
the _notes folder when the last Design Notes file is deleted.
Arguments
FileHandle noteHandle
■ The noteHandle argument is the file handle that the OpenNotesFile() function returns.
Returns
Nothing.
BOOL FilePathToLocalURL()
Description
This function converts the specified local drive path to a file:// URL.
Arguments
const char* drivePath, char* localURLBuf, int localURLMaxLen
■ The drivePath argument is a string that contains the full drive path.
■ The localURLBuf argument is the buffer where the file:// URL is stored.
■ The localURLMaxLen argument is the maximum size of localURLBuf.
Returns
A Boolean value: true indicates the operation is successful; false otherwise. The
localURLBuf argument receives the file:// URL value.
BOOL GetNote()
Description
This function gets the value of the specified key in the specified Design Notes file.
Arguments
FileHandle noteHandle, const char keyName[64], char* valueBuf, int
valueBufLength
■ The noteHandle argument is the file handle that the OpenNotesFile() function returns.
000_DW_API_Print.book Page 46 Wednesday, July 20, 2005 11:58 AM