## Graphics Adapter Device Driver Reference

[prev][next][parent][TOC]

### PMIREQUEST_UNLOADPMIFILE

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

PMIREQUEST_UNLOADPMIFILE unloads the specified .PMI file. A .PMI file needs to be unloaded the same number of times it is loaded before all of its resources are freed. A .PMI file is loaded per driver-not per process. For example, a display driver, base video handler, and video configurator may all load the same .PMI file, which constitutes three users of the PMI subsystem. Before the PMI subsystem can be unloaded, PMIREQUEST_ UNLOADPMIFILE must be invoked three times before the file is unloaded.

    #include <svgadefs.h>

    PVIDEO_ADAPTER    pAdapter;    /*  Pointer to a VIDEO_ADAPTER data structure. */

    ULONG             ulFunction;  /*  Set equal to PMIREQUEST_UNLOADFILE. */

    PVOID             pIn;         /*  Pointer to the ASCII string of the .PMI file. */

    PVOID             pOut;        /*  NULL */

    APIRET            rc;          /*  Return codes. */

    rc = VIDEOPMI32Request(pAdapter, ulFunction,

           pIn, pOut);