AcquireUniqueFilename • AcquireUniqueFileResource • AcquireWizardResource • GetWizardResource • GetWizardResourceLimit • ListWizardResourceInfo • RelinquishWizardResource • RelinquishUniqueFileResource • SetWizardResourceLimit
AcquireUniqueFilename
AcquireUniqueFilename() replaces the contents of path by a unique path name.
The format of the AcquireUniqueFilename method is:
WizardBooleanType AcquireUniqueFilename(char *path,Exception *exception)
A description of each parameter follows.
Specifies a pointer to an array of characters. The unique path name is returned in this array.
Return any errors or warnings in this structure.
AcquireUniqueFileResource
AcquireUniqueFileResource() returns a unique file name, and returns a file descriptor for the file open for reading and writing.
The format of the AcquireUniqueFileResource() method is:
int AcquireUniqueFileResource(const char *path,char *filename, ExceptionInfo *exception)
A description of each parameter follows:
- path
- Open the file in this directory path.
- filename
- The unique filename is returned in this array.
- exception
- Return any errors or warnings in this structure.
AcquireWizardResource
AcquireWizardResource() acquires resources of the specified type. WizardFalse is returned if the specified resource is exhausted otherwise WizardTrue.
The format of the AcquireWizardResource() method is:
WizardBooleanType AcquireWizardResource(const ResourceType type, const WizardSizeType size)
A description of each parameter follows:
- type
- The type of resource.
- size
- The number of bytes needed from for this resource.
GetWizardResource
GetWizardResource() returns the the specified resource in megabytes.
The format of the GetWizardResource() method is:
WizardSizeType GetWizardResource(const ResourceType type)
A description of each parameter follows:
- type
- The type of resource.
GetWizardResourceLimit
GetWizardResourceLimit() returns the the specified resource limit in megabytes.
The format of the GetWizardResourceLimit() method is:
size_t GetWizardResourceLimit(const ResourceType type)
A description of each parameter follows:
- type
- The type of resource.
ListWizardResourceInfo
ListWizardResourceInfo() lists the resource info to a file.
The format of the ListWizardResourceInfo method is:
WizardBooleanType ListWizardResourceInfo(FILE *file, ExceptionInfo *exception)
A description of each parameter follows.
An pointer to a FILE.
Return any errors or warnings in this structure.
RelinquishWizardResource
RelinquishWizardResource() relinquishes resources of the specified type.
The format of the RelinquishWizardResource() method is:
void RelinquishWizardResource(const ResourceType type, const WizardSizeType size)
A description of each parameter follows:
- type
- The type of resource.
- size
- The size of the resource.
RelinquishUniqueFileResource
RelinquishUniqueFileResource() relinquishes a unique file resource.
The format of the RelinquishUniqueFileResource() method is:
WizardBooleanType RelinquishUniqueFileResource(const char *path, const WizardBooleanType trash))
A description of each parameter follows:
- name
- the name of the temporary resource.
- trash
- a value other than 0 trashs the file at the specified path.
SetWizardResourceLimit
SetWizardResourceLimit() sets the limit for a particular resource in bytes.
The format of the SetWizardResourceLimit() method is:
WizardBooleanType SetWizardResourceLimit(const ResourceType type, const WizardResourceType limit)
A description of each parameter follows:
- type
- The type of resource.
- limit
- The maximum limit for the resource.