DscInit

Universal Driver Documentation
Initializes the Universal Driver. A call to this function must always be included at the beginning of any program utilizing Universal Driver.

Table of contents

Function Definition

BYTE dscInit(WORD version);

Function Parameters

NameDescription
versionThe expected version number of the driver. This number can be found at the top of file DSCUD.H. The driver will match this number with the number embedded in its code. If the numbers do not match, an error is returned. This feature is provided mainly to assist in debugging problems that may arise due to differences between different versions of the driver.

Return Value

Error code or 0.

Example Code

    ERRPARAMS errparams;

    if ((result = dscInit(DSC_VERSION)) != DE_NONE)
    {
        dscGetLastError(&errparams);
        fprintf(stderr, "dscInit failed: %s (%s)\n", 
                dscGetErrorString(result), errparams.errstring);
        return result;
    }


This page was last modified 11:17, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.