Property | Type | Description |
Installed | Number | (Read Only) 1 if Text Driver SE installed, 0 if not installed. |
Method | Parameters | Description |
Install | String location | Installs Text Driver SE to specified location. Some events will be generated during the process. |
Uninstall | None | Uninstalls Text Driver SE. Some events will be generated during the process. |
AddPrinter | String | Installs a printer named by String to Text Driver drivers collection. |
DeletePrinter | String | Removes a printer named by String from Text Driver drivers collection. |
EnumeratePrinters | returns String | Returns printers belongs to Miraplacid Text Driver SE driver collection. Resulting string is a comma separated values string. |
Event | Parameters | Description |
OnProgress | Number | This event informs external software about installation/uninstallation progress. Value is in range 0 - 100. |
OnWarning | Number code, String message | Raises when non-critical event is occured. External software may ignore this event and continue. |
OnError | Number code, String message | Raises when critical error is happened. Further processing is impossible. If this occured during installation, rollback will be performed - all installed components will be removed. During rollback, OnProgress will be called with decreasing value. Code is internal Miraplacid value; it is provided for informational purposes. |
OnQuestion | String question, returns Number | Raises when some necessary resource is locked by user application. Event handler could try to
unlock the resource (for example, pop up a dialog box to user with the message to let him shutdown that process). If handler returns 0, process will be cancelled. If it returns 1, installer will try to use the resource again. |
Function | Parameters | Description |
MTDInstall | const wchar *location | Installs Text Driver SE to specified location. There is no way to obtain progress and error information. |
MTDUninstall | void | Uninstalls Text Driver SE. There is no way to obtain progress and error information. |
MTDAddPrinter | const wchar * | Installs a printer to Text Driver drivers collection. |
MTDDeletePrinter | const wchar * | Removes a printer from Text Driver drivers collection. |
MTDEnumeratePrinters | wchar *buf, unsigned long buflen | Enumerates printers as shown above and puts resulting string to buffer buf. If more memory needed to fit enumeration, function returns E_OUTOFMEMORY. |