beautypg.com

Bool getversionname(), Bool getversionnum(), Bool localurltofilepath() – Adobe Dreamweaver API Reference CS5 User Manual

Page 35

background image

30

DREAMWEAVER API REFERENCE

The Design Notes API

Last updated 8/27/2013

BOOL GetVersionName()

Description
This function gets the version name of the MMNotes shared library, which indicates the application that implemented it.

Arguments

char* versionNameBuf

,

int

versionNameBufMaxLen

The versionNameBuf argument is the buffer where the version name is stored.

The versionNameBufMaxLen argument is the maximum size of the buffer that the versionNameBuf argument
references.

Returns
A Boolean value:

true

indicates the operation is successful;

false

otherwise. Dreamweaver stores

"Dreamweaver"

in

versionNameBuf argument.

BOOL GetVersionNum()

Description
This function gets the version number of the MMNotes shared library, which lets you determine whether certain
functions are available.

Arguments

char* versionNumBuf, int

versionNumBufMaxLen

The versionNumBuf argument is the buffer where the version number is stored.

The versionNumBufMaxLen argument is the maximum size of the buffer that versionNumBuf references.

Returns
A Boolean value:

true

indicates the operation is successful;

false

otherwise. The versionNumBuf argument stores the

version number.

BOOL LocalURLToFilePath()

Description
This function converts the specified file:// URL to a local drive path.

Arguments
const char* localURL, char* drivePathBuf, int drivePathMaxLen

The localURL argument, which is expressed as a file:// URL, is the path to a local file.

The drivePathBuf argument is the buffer where the local drive path is stored.

The drivePathMaxLen argument is the maximum size of the buffer that the drivePathBuf argument references.