#ifndef __NVPANELAPI_H__
#define __NVPANELAPI_H__#ifdef __cplusplus
    extern "C" {
#endif#ifndef PGAMMARAMP
#   define PGAMMARAMP void*
#   define REDEFINED_PGAMMARAMP
#endif//PGAMMARAMP#ifndef CDECL
#   define CDECL __cdecl
#endif //CDECL#define NVAPI_OPERATION_SUCCEEDED                       0
#define NVAPI_ERROR_INVALID_INPUT                       1
#define NVAPI_ERROR_NO_TV                               2
#define NVAPI_ERROR_FAILED_INITIALIZATION               3
#define NVAPI_ERROR_HARDWARE_DOESNT_SUPPORT_FEATURE     4
#define NVAPI_ERROR_SETTING_INCONGRUENT_WITH_MODALITY   5
#define NVAPI_WARNING_WSS_INCONGRUENT_WITH_CP           6
#define NVAPI_ERROR_UNKNOWN                             7
// Display Information functions.enum NVDISPLAYMODE
{
    NVDISPLAYMODE_NONE        = -1,         
    NVDISPLAYMODE_STANDARD    =  0,         
    NVDISPLAYMODE_CLONE       =  1,         
    NVDISPLAYMODE_HSPAN       =  2,         
    NVDISPLAYMODE_VSPAN       =  3,        
    NVDISPLAYMODE_DUALVIEW    =  4,    
};enum NVDISPLAYTYPE 
{
    NVDISPLAYTYPE_NONE        =     -1,    
    NVDISPLAYTYPE_CRT         = 0x1000,     
    NVDISPLAYTYPE_DFP         = 0x2000,     
    NVDISPLAYTYPE_DFP_LAPTOP  = 0x2001,    
    NVDISPLAYTYPE_TV          = 0x3000,    
    NVDISPLAYTYPE_TV_HDTV     = 0x3001,    
};
#define NVDISPLAYTYPE_CLASS_MASK 0xF000     enum NVTVFORMAT
{
    NVTVFORMAT_NONE           =  -1,        
    NVTVFORMAT_NTSC_M         =   0,       
    NVTVFORMAT_NTSC_J         =   1,        
    NVTVFORMAT_PAL_M          =   2,        
    NVTVFORMAT_PAL_A          =   3,        
    NVTVFORMAT_PAL_N          =   4,        
    NVTVFORMAT_PAL_NC         =   5,        
    NVTVFORMAT_HD576i         =   8,     
    NVTVFORMAT_HD480i         =   9,       
    NVTVFORMAT_HD480p         =  10,       
    NVTVFORMAT_HD576p         =  11,     
    NVTVFORMAT_HD720p         =  12,        
    NVTVFORMAT_HD1080i        =  13,      
    NVTVFORMAT_HD1080p        =  14,        
    NVTVFORMAT_HD720i         =  16,       
};enum NVDFPSCALING
{
    NVDFPSCALING_NONE         =  -1,        
    NVDFPSCALING_NATIVE       =   1,        
    NVDFPSCALING_SCALED       =   2,     
    NVDFPSCALING_CENTERED     =   3,       
    NVDFPSCALING_SCALED8BIT   =   4,        
    NVDFPSCALING_SCALEDASPECT =   5,      
};enum NVBOARDTYPE
{
    NVBOARDTYPE_GEFORCE        =   0,        
    NVBOARDTYPE_QUADRO         =   1,        
    NVBOARDTYPE_NVS            =   2,        
};#define MAX_NVDISPLAYNAME  256            #define NVDISPLAYINFO1_ALL                  0xffffffff  
#define NVDISPLAYINFO1_WINDOWSDEVICENAME    0x00000001  
#define NVDISPLAYINFO1_ADAPTERNAME          0x00000002  
#define NVDISPLAYINFO1_DRIVERVERSION        0x00000004  
#define NVDISPLAYINFO1_DISPLAYMODE          0x00000008  
#define NVDISPLAYINFO1_WINDOWSMONITORNUMBER 0x00000010  
#define NVDISPLAYINFO1_DISPLAYHEADINDEX     0x00000020  
#define NVDISPLAYINFO1_DISPLAYISPRIMARY     0x00000040  
#define NVDISPLAYINFO1_DISPLAYNAME          0x00000080  
#define NVDISPLAYINFO1_VENDORNAME           0x00000100  
#define NVDISPLAYINFO1_MODELNAME            0x00000200  
#define NVDISPLAYINFO1_GENERICNAME          0x00000400  
#define NVDISPLAYINFO1_UNIQUEID             0x00000800  
#define NVDISPLAYINFO1_DISPLAYTYPE          0x00001000  
#define NVDISPLAYINFO1_DISPLAYWIDTH         0x00002000  
#define NVDISPLAYINFO1_DISPLAYHEIGHT        0x00004000  
#define NVDISPLAYINFO1_GAMMACHARACTERISTIC  0x00008000  
#define NVDISPLAYINFO1_OPTIMALMODE          0x00010000  
#define NVDISPLAYINFO1_MAXIMUMSAFEMODE      0x00020000  
#define NVDISPLAYINFO1_BITSPERPEL           0x00040000  
#define NVDISPLAYINFO1_PELSWIDTH            0x00080000 
#define NVDISPLAYINFO1_PELSHEIGHT           0x00100000  
#define NVDISPLAYINFO1_DISPLAYFREQUENCY     0x00200000  
#define NVDISPLAYINFO1_DISPLAYRECT          0x00400000  
#define NVDISPLAYINFO1_VISIBLEPELSWIDTH     0x00800000 
#define NVDISPLAYINFO1_VISIBLEPELSHEIGHT    0x01000000 
#define NVDISPLAYINFO1_DEGREESROTATION      0x02000000 
#define NVDISPLAYINFO1_TVFORMAT             0x04000000  
#define NVDISPLAYINFO1_DFPSCALING           0x08000000  
#define NVDISPLAYINFO1_TVCONNECTORTYPES     0x10000000  
#define NVDISPLAYINFO1_CURRENTCONNECTORTYPE 0x20000000 
#define NVDISPLAYINFO1_BOARDTYPE            0x40000000  
#define NVDISPLAYINFO1_DISPLAYINSTANCECOUNT 0x80000000 

解决方案 »

  1.   


    #define NVDISPLAYINFO2_ALL                  0xffffffff  
    #define NVDISPLAYINFO2_PRODUCTNAME          0x00000001  
    typedef struct tagNVDISPLAYINFO
    {
        DWORD cbSize;                           
        DWORD dwInputFields1;                    
        DWORD dwOutputFields1;                       
        DWORD dwOutputFields2;    
        char  szWindowsDeviceName[_MAX_PATH];
        char  szAdapterName[MAX_NVDISPLAYNAME];
        char  szDriverVersion[64];              
        enum  NVDISPLAYMODE nDisplayMode;       
        DWORD dwWindowsMonitorNumber;          
        int   nDisplayHeadIndex;                
        BOOL  bDisplayIsPrimary;                    char  szDisplayName[MAX_NVDISPLAYNAME]; 
        char  szVendorName[MAX_NVDISPLAYNAME]; 
        char  szModelName[MAX_NVDISPLAYNAME];   
        char  szGenericName[MAX_NVDISPLAYNAME]; 
        DWORD dwUniqueId;                           enum  NVDISPLAYTYPE nDisplayType;       
        DWORD mmDisplayWidth;                   
        DWORD mmDisplayHeight;                  
        float fGammaCharacteristic;             
        
        DWORD dwOptimalPelsWidth;               
        DWORD dwOptimalPelsHeight;              
        DWORD dwOptimalDisplayFrequency;            DWORD dwMaximumSafePelsWidth;           
        DWORD dwMaximumSafePelsHeight;          
        DWORD dwMaximumSafeDisplayFrequency;        DWORD dwBitsPerPel;                     
        DWORD dwPelsWidth;                      
        DWORD dwPelsHeight;                     
        DWORD dwDisplayFrequency;               
        RECT  rcDisplayRect;                    
        DWORD dwVisiblePelsWidth;               
        DWORD dwVisiblePelsHeight;                  DWORD dwDegreesRotation;                
        enum  NVTVFORMAT nTvFormat;             
        enum  NVDFPSCALING nDfpScaling;             DWORD dwTVConnectorTypes;               
        DWORD dwCurrentConnectorType;           
        DWORD dwBoardType;                         DWORD dwDisplayInstance;                
        DWORD dwDisplayInstanceCount;               char  szProductName[MAX_NVDISPLAYNAME]; 
    } NVDISPLAYINFO;
    BOOL APIENTRY NvGetDisplayInfo( LPCSTR pszDeviceMoniker, NVDISPLAYINFO* pDisplayInfo );
    typedef BOOL (APIENTRY* fNvGetDisplayInfo)( LPCSTR pszDeviceMoniker, NVDISPLAYINFO* pDisplayInfo );
    DWORD APIENTRY dtcfgex( LPSTR lpszCmdLine );
    typedef DWORD (APIENTRY* fdtcfgex)( LPSTR lpszCmdLine );DWORD WINAPI GetdtcfgLastError( void );
    typedef DWORD (WINAPI* fGetdtcfgLastError)( void );DWORD WINAPI GetdtcfgLastErrorEx( LPSTR lpszCmdline, DWORD *PdwCmdLineSize );
    typedef DWORD (WINAPI* fGetdtcfgLastErrorEx)( LPSTR lpszCmdline, DWORD *PdwCmdLineSize );enum NVCOLORAPPLY
    {
        NVCOLORAPPLY_DESKTOP,         
        NVCOLORAPPLY_OVERLAYVMR,       
        NVCOLORAPPLY_FULLSCREENVIDEO,      NVCOLORAPPLY_COUNT            
    };BOOL CDECL NvColorGetGammaRamp( LPCSTR szUserDisplay, PGAMMARAMP pGammaNew );
    typedef BOOL (CDECL* fNvColorGetGammaRamp)( LPCSTR szUserDisplay, PGAMMARAMP pGammaNew );BOOL CDECL NvColorSetGammaRamp( LPCSTR szUserDisplay, DWORD dwUserRotateFlag, PGAMMARAMP pGammaNew );
    typedef BOOL (CDECL* fNvColorSetGammaRamp)( LPCSTR szUserDisplay, DWORD dwUserRotateFlag, PGAMMARAMP pGammaNew );BOOL APIENTRY NvColorGetGammaRampEx( LPCSTR szUserDisplay, PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom );
    typedef BOOL (APIENTRY* fNvColorGetGammaRampEx)( LPCSTR szUserDisplay, PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom );BOOL APIENTRY NvColorSetGammaRampEx( LPCSTR szUserDisplay, const PGAMMARAMP pGammaNew, NVCOLORAPPLY applyTo );
    typedef BOOL (APIENTRY* fNvColorSetGammaRampEx)( LPCSTR szUserDisplay, const PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom );
    BOOL CDECL  NvGetFullScreenVideoMirroringEnabled( LPCSTR szUserDisplay , BOOL* pbEnabled );
    typedef BOOL (CDECL* fNvGetFullScreenVideoMirroringEnabled)( LPCSTR szUserDisplay , BOOL* pbEnabled );BOOL CDECL  NvSetFullScreenVideoMirroringEnabled( LPCSTR szUserDisplay , BOOL* pbEnabled ); 
    typedef BOOL (CDECL* fNvSetFullScreenVideoMirroringEnabled)( LPCSTR szUserDisplay , BOOL* pbEnabled ); int  APIENTRY  NvGetWindowsDisplayState( int iDisplayIndex );
    typedef int (APIENTRY* fNvGetWindowsDisplayState)( int iDisplayIndex );
    BOOL APIENTRY  NvCplGetFlatPanelNativeRes( LPCSTR dfpMoniker , DWORD *width, DWORD *height );
    typedef BOOL (APIENTRY* fNvCplGetFlatPanelNativeRes)( LPCSTR dfpMoniker , DWORD *width, DWORD *height );BOOL CDECL  NvCplGetScalingStatus( LPCSTR szDeviceMoniker , DWORD* pdwStatus );
    typedef BOOL (CDECL* fNvCplGetScalingStatus)( LPCSTR szDeviceMoniker , DWORD* pdwStatus );BOOL CDECL NvSelectDisplayDevice(unsigned int uiDisplayDeviceNumber); 
    default device
    typedef BOOL (CDECL* fNvSelectDisplayDevice)(unsigned int uiDisplayDeviceNumber);BOOL APIENTRY  NvCplGetConnectedDevicesString( LPSTR lpszTextBuffer, DWORD cbTextBuffer, BOOL bOnlyActive );
    typedef BOOL (APIENTRY* fNvCplGetConnectedDevicesString)( LPSTR lpszTextBuffer, DWORD cbTextBuffer, BOOL bOnlyActive );
    BOOL APIENTRY  nvGetPwrMzrLevel( DWORD* dwBatteryLevel , DWORD* dwACLevel );
    typedef BOOL (APIENTRY* fnvGetPwrMzrLevel)( DWORD* dwBatteryLevel , DWORD* dwACLevel );BOOL APIENTRY  nvSetPwrMzrLevel( DWORD* dwBatteryLevel , DWORD* dwACLevel );
    typedef BOOL (APIENTRY* fnvSetPwrMzrLevel)( DWORD* dwBatteryLevel , DWORD* dwACLevel );void APIENTRY PowerManageHelper_Nvcpl( HWND hwnd, HINSTANCE hInst, LPSTR lpszCmdLine, int nCmdShow );
    typedef void (APIENTRY* fPowerManageHelper_Nvcpl)( HWND hwnd, HINSTANCE hInstance, LPSTR lpszCmdLine, int nCmdShow );
      

  2.   


    #define NVCPL_API_AGP_BUS_MODE      1
    #define NVCPL_API_VIDEO_RAM_SIZE    2
    #define NVCPL_API_TX_RATE           3
    #define NVCPL_API_CURRENT_AA_VALUE  4
    #define NVCPL_API_AGP_LIMIT         5
    #define NVCPL_API_FRAME_QUEUE_LIMIT 6BOOL CDECL  nvCplGetDataInt( long lFlag, long* plInfo );
    typedef BOOL (CDECL* fnvCplGetDataInt)( long lFlag, long* plInfo );BOOL CDECL  nvCplSetDataInt( long lFlag, long plInfo );
    typedef BOOL (CDECL* fnvCplSetDataInt)( long lFlag, long plInfo );
    BOOL CDECL  nvCplGetThermalSettings( int iDisplayIndex , DWORD* dwCoreTemp, DWORD* dwAmbientTemp, DWORD* UpperLimit );
    typedef BOOL (CDECL* fnvCplGetThermalSettings)( int iDisplayIndex , DWORD* dwCoreTemp, DWORD* dwAmbientTemp, DWORD* UpperLimit );BOOL CDECL NvSetDVDOptimalEnabled( BOOL bEnable );
    typedef BOOL (CDECL* fNvSetDVDOptimalEnabled)( BOOL bEnable );BOOL CDECL  NvCplIsExternalPowerConnectorAttached( BOOL* p_bExternalPowerConnectorAttached );
    typedef BOOL (CDECL* fNvCplIsExternalPowerConnectorAttached)( BOOL* p_bExternalPowerConnectorAttached );#define NVAPI_TVFORMAT_NTSC_M       0
    #define NVAPI_TVFORMAT_NTSC_J       1
    #define NVAPI_TVFORMAT_PAL_M        2
    #define NVAPI_TVFORMAT_PAL_ABDGHI   3
    #define NVAPI_TVFORMAT_PAL_N        4
    #define NVAPI_TVFORMAT_PAL_NC       5
    #define NVAPI_TVFORMAT_HD480I       9
    #define NVAPI_TVFORMAT_HD480P       10
    #define NVAPI_TVFORMAT_HD576P       11
    #define NVAPI_TVFORMAT_HD720P       12
    #define NVAPI_TVFORMAT_HD1080I      13
    #define NVAPI_TVFORMAT_HD1080P      14
    #define NVAPI_TVFORMAT_HD576I       15
    #define NVAPI_TVFORMAT_HD720I       16
    #define NVAPI_TVFORMAT_D1           NVAPI_TVFORMAT_HD480I
    #define NVAPI_TVFORMAT_D2           NVAPI_TVFORMAT_HD480P
    #define NVAPI_TVFORMAT_D3           NVAPI_TVFORMAT_HD1080I
    #define NVAPI_TVFORMAT_D4           NVAPI_TVFORMAT_HD720P
    #define NVAPI_TVFORMAT_D5           NVAPI_TVFORMAT_HD1080PBOOL CDECL NvGetCurrentTVFormat( DWORD* pdwFormat );
    typedef BOOL (CDECL* fNvGetCurrentTVFormat)( DWORD* pdwFormat );#define NVAPI_TV_ENCODER_CONNECTOR_UNKNOWN       0x0
    #define NVAPI_TV_ENCODER_CONNECTOR_SDTV          0x1
    #define NVAPI_TV_ENCODER_CONNECTOR_HDTV          0x2
    #define NVAPI_TV_ENCODER_CONNECTOR_HDTV_AND_SDTV 0x3 BOOL CDECL NvGetTVConnectedStatus( DWORD* pdwConnected );
    typedef BOOL (CDECL* fNvGetTVConnectedStatus)( DWORD* pdwConnected );#define NVCPL_API_OVERSCAN_SHIFT                            0x00000010
    #define NVCPL_API_UNDERSCAN                                 0x00000020
    #define NVCPL_API_NATIVEHD                                  0x00000080BOOL CDECL  NVTVOutManageOverscanConfiguration( DWORD dwSelectedTVFormat,
                                                    DWORD *pdwOverscanConfig,                  
                                                    BOOL  bReadConfig );        //TRUE==read, FALSE==write                  
                                                                      
                                                                      
    typedef BOOL (CDECL* fNVTVOutManageOverscanConfiguration)( DWORD dwSelectedTVFormat,
                                                               DWORD *pdwOverscanConfig,       
                                                               BOOL bReadConfig );    //TRUE==read, FALSE==write       
                                                                       
                                                                      
    //#if 0
                                            #define NVAPI_ASPECT_FULLSCREEN     0  /* 4:3 aspect              */
                                            #define NVAPI_ASPECT_LETTERBOX      1  /* 4:3 aspect, letterbox'd */
                                            #define NVAPI_ASPECT_WIDESCREEN     2  /* 16:9 aspect             */                                        BOOL CDECL NvSetHDAspect( DWORD* pdwAspect );
                                            typedef BOOL (CDECL* fNvSetHDAspect)( DWORD* pdwAspect );
    //#endif#define NVAPI_LICENSE_TYPE_OVERCLOCKING       1
    #define NVAPI_LICENSE_TYPE_ADVANCED_TIMING    2BOOL CDECL NvGetShowLicenseKeyAgreement( DWORD dwLicenseType, DWORD* pdwData );
    typedef BOOL (CDECL* fNvGetShowLicenseKeyAgreement)( DWORD dwLicenseType, DWORD* pdwData );BOOL CDECL NvSetShowLicenseKeyAgreement( DWORD dwLicenseType, DWORD dwData );
    typedef BOOL (CDECL* fNvSetShowLicenseKeyAgreement)( DWORD dwLicenseType, DWORD dwData );#ifdef __cplusplus
    #define _cplusplus
    } //extern "C" {
    #endif#endif  // __NVPANELAPI_H__
      

  3.   

    我记得有个工具可以把.h直接转化成.pas的
      

  4.   

    用工具给你搞一下
    C TO PASCAL CONVERTER
    unit Unit1;
    {*************************************************************************-> Converted with C to Pascal Converter 1.0
    -> Release: 1.5.11.2008
    -> Email: [email protected]
    -> Updates: http://cc.codegear.com/Author/302259
    -> Copyright ? 2005-2008 Ural Gunaydin, All rights reserved.*************************************************************************}interfaceuses
    Windows, Messages, SysUtils, Classes;{$ifndef __NVPANELAPI_H__}
    const __NVPANELAPI_H__ =; {$ifdef __cplusplus}
         //'C' begin  
    {$endif} {$ifndef PGAMMARAMP}
    #  define PGAMMARAMP Pointer  
    #  define REDEFINED_PGAMMARAMP 
    {$endif}//PGAMMARAMP {$ifndef CDECL}
    #  define CDECL __cdecl 
    {$endif} //CDECL const NVAPI_OPERATION_SUCCEEDED =                      0; 
    const NVAPI_ERROR_INVALID_INPUT =                      1; 
    const NVAPI_ERROR_NO_TV =                              2; 
    const NVAPI_ERROR_FAILED_INITIALIZATION =              3; 
    const NVAPI_ERROR_HARDWARE_DOESNT_SUPPORT_FEATURE =    4; 
    const NVAPI_ERROR_SETTING_INCONGRUENT_WITH_MODALITY =  5; 
    const NVAPI_WARNING_WSS_INCONGRUENT_WITH_CP =          6; 
    const NVAPI_ERROR_UNKNOWN =                            7; 
    // Display Information functions. const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
     NVDISPLAYMODE 
    begin  
        NVDISPLAYMODE_NONE        = -1,        
        NVDISPLAYMODE_STANDARD    =  0,        
        NVDISPLAYMODE_CLONE      =  1,        
        NVDISPLAYMODE_HSPAN      =  2,        
        NVDISPLAYMODE_VSPAN      =  3,        
        NVDISPLAYMODE_DUALVIEW    =  4,    
    ); const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
     NVDISPLAYTYPE 
    begin  
        NVDISPLAYTYPE_NONE        =    -1,    
        NVDISPLAYTYPE_CRT        = $1000,    
        NVDISPLAYTYPE_DFP        = $2000,    
        NVDISPLAYTYPE_DFP_LAPTOP  = $2001,    
        NVDISPLAYTYPE_TV          = $3000,    
        NVDISPLAYTYPE_TV_HDTV    = $3001,    
    ); 
    const NVDISPLAYTYPE_CLASS_MASK = $F000;    const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
     NVTVFORMAT 
    begin  
        NVTVFORMAT_NONE          =  -1,        
        NVTVFORMAT_NTSC_M        =  0,      
        NVTVFORMAT_NTSC_J        =  1,        
        NVTVFORMAT_PAL_M          =  2,        
        NVTVFORMAT_PAL_A          =  3,        
        NVTVFORMAT_PAL_N          =  4,        
        NVTVFORMAT_PAL_NC        =  5,        
        NVTVFORMAT_HD576i        =  8,    
        NVTVFORMAT_HD480i        =  9,      
        NVTVFORMAT_HD480p        =  10,      
        NVTVFORMAT_HD576p        =  11,    
        NVTVFORMAT_HD720p        =  12,        
        NVTVFORMAT_HD1080i        =  13,      
        NVTVFORMAT_HD1080p        =  14,        
        NVTVFORMAT_HD720i        =  16,      
    ); const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
     NVDFPSCALING 
    begin  
        NVDFPSCALING_NONE        =  -1,        
        NVDFPSCALING_NATIVE      =  1,        
        NVDFPSCALING_SCALED      =  2,    
        NVDFPSCALING_CENTERED    =  3,      
        NVDFPSCALING_SCALED8BIT  =  4,        
        NVDFPSCALING_SCALEDASPECT =  5,      
    ); const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
     NVBOARDTYPE 
    begin  
        NVBOARDTYPE_GEFORCE        =  0,        
        NVBOARDTYPE_QUADRO        =  1,        
        NVBOARDTYPE_NVS            =  2,        
    ); 
      

  5.   

    const MAX_NVDISPLAYNAME =  256;            const NVDISPLAYINFO1_ALL =                  $ffffffff;  
    const NVDISPLAYINFO1_WINDOWSDEVICENAME =    $00000001;  
    const NVDISPLAYINFO1_ADAPTERNAME =          $00000002;  
    const NVDISPLAYINFO1_DRIVERVERSION =        $00000004;  
    const NVDISPLAYINFO1_DISPLAYMODE =          $00000008;  
    const NVDISPLAYINFO1_WINDOWSMONITORNUMBER = $00000010;  
    const NVDISPLAYINFO1_DISPLAYHEADINDEX =    $00000020;  
    const NVDISPLAYINFO1_DISPLAYISPRIMARY =    $00000040;  
    const NVDISPLAYINFO1_DISPLAYNAME =          $00000080;  
    const NVDISPLAYINFO1_VENDORNAME =          $00000100;  
    const NVDISPLAYINFO1_MODELNAME =            $00000200;  
    const NVDISPLAYINFO1_GENERICNAME =          $00000400;  
    const NVDISPLAYINFO1_UNIQUEID =            $00000800;  
    const NVDISPLAYINFO1_DISPLAYTYPE =          $00001000;  
    const NVDISPLAYINFO1_DISPLAYWIDTH =        $00002000;  
    const NVDISPLAYINFO1_DISPLAYHEIGHT =        $00004000;  
    const NVDISPLAYINFO1_GAMMACHARACTERISTIC =  $00008000;  
    const NVDISPLAYINFO1_OPTIMALMODE =          $00010000;  
    const NVDISPLAYINFO1_MAXIMUMSAFEMODE =      $00020000;  
    const NVDISPLAYINFO1_BITSPERPEL =          $00040000;  
    const NVDISPLAYINFO1_PELSWIDTH =            $00080000; 
    const NVDISPLAYINFO1_PELSHEIGHT =          $00100000;  
    const NVDISPLAYINFO1_DISPLAYFREQUENCY =    $00200000;  
    const NVDISPLAYINFO1_DISPLAYRECT =          $00400000;  
    const NVDISPLAYINFO1_VISIBLEPELSWIDTH =    $00800000; 
    const NVDISPLAYINFO1_VISIBLEPELSHEIGHT =    $01000000; 
    const NVDISPLAYINFO1_DEGREESROTATION =      $02000000; 
    const NVDISPLAYINFO1_TVFORMAT =            $04000000;  
    const NVDISPLAYINFO1_DFPSCALING =          $08000000;  
    const NVDISPLAYINFO1_TVCONNECTORTYPES =    $10000000;  
    const NVDISPLAYINFO1_CURRENTCONNECTORTYPE = $20000000; 
    const NVDISPLAYINFO1_BOARDTYPE =            $40000000;  
    const NVDISPLAYINFO1_DISPLAYINSTANCECOUNT = $80000000; const NVDISPLAYINFO2_ALL =                  $ffffffff;  
    const NVDISPLAYINFO2_PRODUCTNAME =          $00000001;  
    type
    tagNVDISPLAYINFO = record  
      
        DWORD cbSize;                          
        DWORD dwInputFields1;                    
        DWORD dwOutputFields1;                      
        DWORD dwOutputFields2;    
          szWindowsDeviceName: array[0.._MAX_PATH-1] of Char; 
          szAdapterName: array[0..MAX_NVDISPLAYNAME-1] of Char; 
          szDriverVersion: array[0..64-1] of Char;              
        const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
      NVDISPLAYMODE nDisplayMode;      
        DWORD dwWindowsMonitorNumber;          
        integer  nDisplayHeadIndex;                
        BOOL  bDisplayIsPrimary;                      szDisplayName: array[0..MAX_NVDISPLAYNAME-1] of Char; 
          szVendorName: array[0..MAX_NVDISPLAYNAME-1] of Char; 
          szModelName: array[0..MAX_NVDISPLAYNAME-1] of Char;  
          szGenericName: array[0..MAX_NVDISPLAYNAME-1] of Char; 
        DWORD dwUniqueId;                          const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
      NVDISPLAYTYPE nDisplayType;      
        DWORD mmDisplayWidth;                  
        DWORD mmDisplayHeight;                  
        Single fGammaCharacteristic;            
        
        DWORD dwOptimalPelsWidth;              
        DWORD dwOptimalPelsHeight;              
        DWORD dwOptimalDisplayFrequency;            DWORD dwMaximumSafePelsWidth;          
        DWORD dwMaximumSafePelsHeight;          
        DWORD dwMaximumSafeDisplayFrequency;        DWORD dwBitsPerPel;                    
        DWORD dwPelsWidth;                      
        DWORD dwPelsHeight;                    
        DWORD dwDisplayFrequency;              
        TRect  rcDisplayRect;                    
        DWORD dwVisiblePelsWidth;              
        DWORD dwVisiblePelsHeight;                  DWORD dwDegreesRotation;                
        const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
      NVTVFORMAT nTvFormat;            
        const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
      NVDFPSCALING nDfpScaling;            DWORD dwTVConnectorTypes;              
        DWORD dwCurrentConnectorType;          
        DWORD dwBoardType;                        DWORD dwDisplayInstance;                
        DWORD dwDisplayInstanceCount;                szProductName: array[0..MAX_NVDISPLAYNAME-1] of Char; 
     end;
     NVDISPLAYINFO = tagNVDISPLAYINFO;
     
      

  6.   

    function NvGetDisplayInfo(pszDeviceMoniker: PAnsiChar; pDisplayInfo: PNVDISPLAYINFO ): BOOL; stdcall;
    type  BOOL ( fNvGetDisplayInfo)( PAnsiChar pszDeviceMoniker, NVDISPLAYINFO* pDisplayInfo ); stdcall;
    function dtcfgex(lpszCmdLine: PAnsiChar ): DWORD; stdcall;
    type  DWORD ( fdtcfgex)( PAnsiChar lpszCmdLine ); stdcall;function GetdtcfgLastError(): DWORD; 
    type  DWORD (WINAPI* fGetdtcfgLastError)(); function WINAPI GetdtcfgLastErrorEx(lpszCmdline: PAnsiChar; var PdwCmdLineSize: DWORD ): DWORD; 
    type  DWORD (WINAPI* fGetdtcfgLastErrorEx)( PAnsiChar lpszCmdline, DWORD *PdwCmdLineSize ); const
    (**** Convert following enum types to constants. ****
     **** e.g. v1 = n, where v1 is constant and n is the value ****
     **** if a constant has a value, do not assign a new value ****)
     NVCOLORAPPLY 
    begin  
        NVCOLORAPPLY_DESKTOP,        
        NVCOLORAPPLY_OVERLAYVMR,      
        NVCOLORAPPLY_FULLSCREENVIDEO,      NVCOLORAPPLY_COUNT            
    ); function CDECL NvColorGetGammaRamp(szUserDisplay: PAnsiChar; pGammaNew: PGAMMARAMP ): BOOL; 
    type  BOOL (CDECL* fNvColorGetGammaRamp)( PAnsiChar szUserDisplay, PGAMMARAMP pGammaNew ); function CDECL NvColorSetGammaRamp(szUserDisplay: PAnsiChar; dwUserRotateFlag: DWORD; pGammaNew: PGAMMARAMP ): BOOL; 
    type  BOOL (CDECL* fNvColorSetGammaRamp)( PAnsiChar szUserDisplay, DWORD dwUserRotateFlag, PGAMMARAMP pGammaNew ); function NvColorGetGammaRampEx(szUserDisplay: PAnsiChar; pGammaNew: PGAMMARAMP; applyFrom: NVCOLORAPPLY ): BOOL; stdcall;
    type  BOOL ( fNvColorGetGammaRampEx)( PAnsiChar szUserDisplay, PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom ); stdcall;function NvColorSetGammaRampEx(szUserDisplay: PAnsiChar; pGammaNew: PGAMMARAMP; applyTo: NVCOLORAPPLY ): BOOL; stdcall;
    type  BOOL ( fNvColorSetGammaRampEx)( PAnsiChar szUserDisplay, const PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom ); stdcall;
    function CDECL  NvGetFullScreenVideoMirroringEnabled(pbEnabled: PBOOL ): BOOL; 
    type  BOOL (CDECL* fNvGetFullScreenVideoMirroringEnabled)( PAnsiChar szUserDisplay , BOOL* pbEnabled ); function CDECL  NvSetFullScreenVideoMirroringEnabled(pbEnabled: PBOOL ): BOOL; 
    type  BOOL (CDECL* fNvSetFullScreenVideoMirroringEnabled)( PAnsiChar szUserDisplay , BOOL* pbEnabled ); function   NvGetWindowsDisplayState(iDisplayIndex: integer ): integer; stdcall;
    type  integer ( fNvGetWindowsDisplayState)( integer iDisplayIndex ); stdcall;
    function  NvCplGetFlatPanelNativeRes(var width: DWORD; var height: DWORD ): BOOL; stdcall;
    type  BOOL ( fNvCplGetFlatPanelNativeRes)( PAnsiChar dfpMoniker , DWORD *width, DWORD *height ); stdcall;function CDECL  NvCplGetScalingStatus(pdwStatus: PDWORD ): BOOL; 
    type  BOOL (CDECL* fNvCplGetScalingStatus)( PAnsiChar szDeviceMoniker , DWORD* pdwStatus ); function CDECL NvSelectDisplayDevice(uiDisplayDeviceNumber: Word): BOOL; 
    default device 
    type  BOOL (CDECL* fNvSelectDisplayDevice)(Word uiDisplayDeviceNumber); function  NvCplGetConnectedDevicesString(lpszTextBuffer: PAnsiChar; cbTextBuffer: DWORD; bOnlyActive: BOOL ): BOOL; stdcall;
    type  BOOL ( fNvCplGetConnectedDevicesString)( PAnsiChar lpszTextBuffer, DWORD cbTextBuffer, BOOL bOnlyActive ); stdcall;
    function  nvGetPwrMzrLevel(dwACLevel: PDWORD ): BOOL; stdcall;
    type  BOOL ( fnvGetPwrMzrLevel)( DWORD* dwBatteryLevel , DWORD* dwACLevel ); stdcall;function  nvSetPwrMzrLevel(dwACLevel: PDWORD ): BOOL; stdcall;
    type  BOOL ( fnvSetPwrMzrLevel)( DWORD* dwBatteryLevel , DWORD* dwACLevel ); stdcall;procedure PowerManageHelper_Nvcpl(hwnd: HWND; hInst: HINST; lpszCmdLine: PAnsiChar; nCmdShow: integer ); stdcall;
    type  procedure (v1: fPowerManageHelper_Nvcpll)( HWND hwnd, HINST hInstance, PAnsiChar lpszCmdLine, integer nCmdShow ); stdcall;
    const NVCPL_API_AGP_BUS_MODE =      1; 
    const NVCPL_API_VIDEO_RAM_SIZE =    2; 
    const NVCPL_API_TX_RATE =          3; 
    const NVCPL_API_CURRENT_AA_VALUE =  4; 
    const NVCPL_API_AGP_LIMIT =        5; 
    const NVCPL_API_FRAME_QUEUE_LIMIT = 6; 
      

  7.   

    uses
      windows;
    type
      PGAMMARAMP = Pointer;const NVAPI_OPERATION_SUCCEEDED =                     0;
    const NVAPI_ERROR_INVALID_INPUT =                     1;
    const NVAPI_ERROR_NO_TV         =                     2;
    const NVAPI_ERROR_FAILED_INITIALIZATION  =            3;
    const NVAPI_ERROR_HARDWARE_DOESNT_SUPPORT_FEATURE =   4;
    const NVAPI_ERROR_SETTING_INCONGRUENT_WITH_MODALITY = 5;
    const NVAPI_WARNING_WSS_INCONGRUENT_WITH_CP         = 6;
    const NVAPI_ERROR_UNKNOWN                           = 7;
    // Display Information functions.type
      NVDISPLAYMODE =
    (
        NVDISPLAYMODE_NONE        = -1,
        NVDISPLAYMODE_STANDARD    =  0,
        NVDISPLAYMODE_CLONE      =  1,
        NVDISPLAYMODE_HSPAN      =  2,
        NVDISPLAYMODE_VSPAN      =  3,
        NVDISPLAYMODE_DUALVIEW    =  4
    );NVDISPLAYTYPE =
    (
        NVDISPLAYTYPE_NONE        =    -1,    
        NVDISPLAYTYPE_CRT        = $1000,    
        NVDISPLAYTYPE_DFP        = $2000,
        NVDISPLAYTYPE_DFP_LAPTOP  = $2001,
        NVDISPLAYTYPE_TV          = $3000,
        NVDISPLAYTYPE_TV_HDTV    = $3001
    );
    const NVDISPLAYTYPE_CLASS_MASK = $F000;
    type
      NVTVFORMAT =
    (
        NVTVFORMAT_NONE          =  -1,
        NVTVFORMAT_NTSC_M        =  0,      
        NVTVFORMAT_NTSC_J        =  1,        
        NVTVFORMAT_PAL_M          =  2,        
        NVTVFORMAT_PAL_A          =  3,        
        NVTVFORMAT_PAL_N          =  4,        
        NVTVFORMAT_PAL_NC        =  5,        
        NVTVFORMAT_HD576i        =  8,
        NVTVFORMAT_HD480i        =  9,      
        NVTVFORMAT_HD480p        =  10,
        NVTVFORMAT_HD576p        =  11,    
        NVTVFORMAT_HD720p        =  12,        
        NVTVFORMAT_HD1080i        =  13,      
        NVTVFORMAT_HD1080p        =  14,
        NVTVFORMAT_HD720i        =  16
    );  NVDFPSCALING =
    (
        NVDFPSCALING_NONE        =  -1,
        NVDFPSCALING_NATIVE      =  1,
        NVDFPSCALING_SCALED      =  2,
        NVDFPSCALING_CENTERED    =  3,
        NVDFPSCALING_SCALED8BIT  =  4,
        NVDFPSCALING_SCALEDASPECT =  5
    ); NVBOARDTYPE =
    (
        NVBOARDTYPE_GEFORCE        =  0,
        NVBOARDTYPE_QUADRO        =  1,
        NVBOARDTYPE_NVS            =  2
    );const MAX_NVDISPLAYNAME  =256;const NVDISPLAYINFO1_ALL                  =$ffffffff;
    const NVDISPLAYINFO1_WINDOWSDEVICENAME    =$00000001;
    const NVDISPLAYINFO1_ADAPTERNAME          =$00000002;
    const NVDISPLAYINFO1_DRIVERVERSION        =$00000004;
    const NVDISPLAYINFO1_DISPLAYMODE          =$00000008;
    const NVDISPLAYINFO1_WINDOWSMONITORNUMBER =$00000010;
    const NVDISPLAYINFO1_DISPLAYHEADINDEX    =$00000020 ;
    const NVDISPLAYINFO1_DISPLAYISPRIMARY    =$00000040 ;
    const NVDISPLAYINFO1_DISPLAYNAME          =$00000080;
    const NVDISPLAYINFO1_VENDORNAME          =$00000100 ;
    const NVDISPLAYINFO1_MODELNAME            =$00000200;
    const NVDISPLAYINFO1_GENERICNAME          =$00000400;
    const NVDISPLAYINFO1_UNIQUEID            =$00000800 ;
    const NVDISPLAYINFO1_DISPLAYTYPE          =$00001000;
    const NVDISPLAYINFO1_DISPLAYWIDTH        =$00002000 ;
    const NVDISPLAYINFO1_DISPLAYHEIGHT        =$00004000;
    const NVDISPLAYINFO1_GAMMACHARACTERISTIC  =$00008000;
    const NVDISPLAYINFO1_OPTIMALMODE          =$00010000;
    const NVDISPLAYINFO1_MAXIMUMSAFEMODE      =$00020000;
    const NVDISPLAYINFO1_BITSPERPEL          =$00040000 ;
    const NVDISPLAYINFO1_PELSWIDTH            =$00080000;
    const NVDISPLAYINFO1_PELSHEIGHT          =$00100000 ;
    const NVDISPLAYINFO1_DISPLAYFREQUENCY    =$00200000 ;
    const NVDISPLAYINFO1_DISPLAYRECT          =$00400000;
    const NVDISPLAYINFO1_VISIBLEPELSWIDTH    =$00800000 ;
    const NVDISPLAYINFO1_VISIBLEPELSHEIGHT    =$01000000;
    const NVDISPLAYINFO1_DEGREESROTATION      =$02000000;
    const NVDISPLAYINFO1_TVFORMAT            =$04000000 ;
    const NVDISPLAYINFO1_DFPSCALING          =$08000000 ;
    const NVDISPLAYINFO1_TVCONNECTORTYPES    =$10000000 ;
    const NVDISPLAYINFO1_CURRENTCONNECTORTYPE =$20000000;
    const NVDISPLAYINFO1_BOARDTYPE            =$40000000;
    const NVDISPLAYINFO1_DISPLAYINSTANCECOUNT =$80000000;const NVDISPLAYINFO2_ALL                  =$ffffffff ;
    const NVDISPLAYINFO2_PRODUCTNAME          =$00000001;type
      tagNVDISPLAYINFO = record    cbSize: LongWord;
        dwInputFields1: LongWord;
        dwOutputFields1: LongWord;
        dwOutputFields2: LongWord;
        szWindowsDeviceName: array[0.._MAX_PATH - 1] of AnsiChar;
        szAdapterName: array[0..MAX_NVDISPLAYNAME-1] of AnsiChar;
        szDriverVersion: Array[0..64-1] of AnsiChar;
        nDisplayMode: NVDISPLAYMODE;
        dwWindowsMonitorNumber: LongWord;
        nDisplayHeadIndex: Integer;
        bDisplayIsPrimary: LongBool;    szDisplayName: array[0..MAX_NVDISPLAYNAME-1] of AnsiChar;
        szVendorName: array[0..MAX_NVDISPLAYNAME-1] of AnsiChar;
        szModelName: array[0..MAX_NVDISPLAYNAME-1] of AnsiChar;
        szGenericName: array[0..MAX_NVDISPLAYNAME-1] of AnsiChar;
        dwUniqueId: LongWord;    nDisplayType: NVDISPLAYTYPE ;
        mmDisplayWidth: LongWord;
        mmDisplayHeight: LongWord;
        fGammaCharacteristic: Single;
        
        dwOptimalPelsWidth: LongWord;
        dwOptimalPelsHeight: LongWord;
        dwOptimalDisplayFrequency: LongWord;    dwMaximumSafePelsWidth: LongWord;
        dwMaximumSafePelsHeight: LongWord;
        dwMaximumSafeDisplayFrequency: LongWord;    dwBitsPerPel: LongWord;
        dwPelsWidth: LongWord;
        dwPelsHeight: LongWord;
        dwDisplayFrequency: LongWord;
        rcDisplayRect:TRect;
        dwVisiblePelsWidth: LongWord;
        dwVisiblePelsHeight: LongWord;    dwDegreesRotation: LongWord;
        nTvFormat: NVTVFORMAT ;
        nDfpScaling: NVDFPSCALING ;    dwTVConnectorTypes: LongWord;
        dwCurrentConnectorType: LongWord;
        dwBoardType: LongWord;    dwDisplayInstance: LongWord;
        dwDisplayInstanceCount: LongWord;    szProductName: array[0..MAX_NVDISPLAYNAME-1] of AnsiChar;
    end;
       NVDISPLAYINFO = tagNVDISPLAYINFO;
      

  8.   

    function NvGetDisplayInfo( pszDeviceMoniker: PChar; var pDisplayInfo: NVDISPLAYINFO  ): LongBool; stdcall; external;...
    type
      fNvGetDisplayInfo = function ( pszDeviceMoniker: PChar; var pDisplayInfo: NVDISPLAYINFO ): LongBool; stdcall;
    function dtcfgex( lpszCmdLine:PChar ): LongWord;stdcall; external;...
    type  fdtcfgex= function ( lpszCmdLine: PChar ): LongWord;stdcall;function GetdtcfgLastError: LongWord; stdcall;  external;...
    type
     fGetdtcfgLastError = function: LongWord; stdcall;function GetdtcfgLastErrorEx( lpszCmdline: PChar; var PdwCmdLineSize: LongWord ): LongWord; stdcall; external;...
    type
      fGetdtcfgLastErrorEx= function( lpszCmdline: PChar; var PdwCmdLineSize : LongWord): LongWord; stdcall;NVCOLORAPPLY =
    (
        NVCOLORAPPLY_DESKTOP,
        NVCOLORAPPLY_OVERLAYVMR,
        NVCOLORAPPLY_FULLSCREENVIDEO,    NVCOLORAPPLY_COUNT
    );function NvColorGetGammaRamp( szUserDisplay: PChar; pGammaNew: PGAMMARAMP  ): LongBool;cdecl; external;...
    type
      fNvColorGetGammaRamp = function( szUserDisplay: PChar; pGammaNew: PGAMMARAMP  ): LongBool;cdecl;function NvColorSetGammaRamp( szUserDisplay: PChar; dwUserRotateFlag: LongWORD ; pGammaNew: PGAMMARAMP  ): LongBool;cdecl; external;...
    type
      fNvColorSetGammaRamp= function( szUserDisplay: PChar; dwUserRotateFlag: LongWORD ; pGammaNew: PGAMMARAMP  ): LongBool;cdecl;function NvColorGetGammaRampEx( LPCSTR szUserDisplay, PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom ): LongBool;stdcall; external;...
    type
     fNvColorGetGammaRampEx= function( LPCSTR szUserDisplay, PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom ): LongBool;stdcall;function NvColorSetGammaRampEx( LPCSTR szUserDisplay, const PGAMMARAMP pGammaNew, NVCOLORAPPLY applyTo ): LongBool;stdcall; external;...
    type
    fNvColorSetGammaRampEx=function( LPCSTR szUserDisplay, const PGAMMARAMP pGammaNew, NVCOLORAPPLY applyFrom ): LongBool;stdcall;
    function NvGetFullScreenVideoMirroringEnabled( szUserDisplay:PChar;var pbEnabled: LongBool ): LongBool;cdecl; external;...
    type
     fNvGetFullScreenVideoMirroringEnabled= function( szUserDisplay:PChar;var pbEnabled: LongBool ): LongBool;cdecl;function NvSetFullScreenVideoMirroringEnabled( szUserDisplay: PChar; pbEnabled: PLongBool): LongBool;cdecl; external;...
    type
     fNvSetFullScreenVideoMirroringEnabled=function( szUserDisplay: PChar; pbEnabled: PLongBool ): LongBool;cdecl;function  NvGetWindowsDisplayState( iDisplayIndex:integer ): Integer;stdcall; external ...
    type
      fNvGetWindowsDisplayState= function( iDisplayIndex:integer  ): Integer;stdcall;
    function NvCplGetFlatPanelNativeRes(dfpMoniker: PChar ; var width: LongWord;var height: LongWord): LongBool; stdcall;external ...
    type
    fNvCplGetFlatPanelNativeRes= function( dfpMoniker: PChar ; var width: LongWord;var height: LongWord ): LongBool; stdcall;function  NvCplGetScalingStatus( szDeviceMoniker: PChar; pdwStatus: PLongWORD): LongBool;cdecl; external;...
    type
      fNvCplGetScalingStatus=function( szDeviceMoniker: PChar; pdwStatus: PLongWORD ): LongBool;cdecl;function NvSelectDisplayDevice(uiDisplayDeviceNumber: LongWord): LongBool;cdecl; external;...
    default device
    type
     fNvSelectDisplayDevice=function( uiDisplayDeviceNumber: LongWord): LongBool; stdcall;function NvCplGetConnectedDevicesString(lpszTextBuffer: PChar; cbTextBuffer: LongWORD ; bOnlyActive: LongBOOL): LongBool; stdcall;
    type
      fNvCplGetConnectedDevicesString=function( lpszTextBuffer: PChar; cbTextBuffer: LongWORD ; bOnlyActive: LongBOOL  ): LongBool; stdcall;
    function nvGetPwrMzrLevel( dwBatteryLevel: PLongWORD ; dwACLevel: PLongWORD  ): LongBool; stdcall;external;
    type
      fnvGetPwrMzrLevel= function( dwBatteryLevel: PLongWORD ; dwACLevel: PLongWORD  ): LongBool; stdcall;function nvSetPwrMzrLevel( dwBatteryLevel: PLongWORD; dwACLevel: PLongWord): LongBool;stdcall;external...
    type
    fnvSetPwrMzrLevel= function( dwBatteryLevel: PLongWORD; dwACLevel: PLongWord ): LongBool; stdcall;procedure PowerManageHelper_Nvcpl( hwnd: HWND ; hInst: THandle ; lpszCmdLine: PChar ; nCmdShow: integer  ); stdcall;external;
    type
       fPowerManageHelper_Nvcpl= procedure( hwnd: HWND ; hInst: THandle ; lpszCmdLine: PChar ; nCmdShow: integer  );stdcall;const NVCPL_API_AGP_BUS_MODE      =1;
    const NVCPL_API_VIDEO_RAM_SIZE    =2;
    const NVCPL_API_TX_RATE          =3 ;
    const NVCPL_API_CURRENT_AA_VALUE  =4;
    const NVCPL_API_AGP_LIMIT        =5 ;
    const NVCPL_API_FRAME_QUEUE_LIMIT =6;
      

  9.   

    function nvCplGetDataInt( lFlag: longint ;var plInfo: LongInt ): LongBool;cdecl; external;...
    type
     fnvCplGetDataInt= function( lFlag: longint ;var plInfo: LongInt ): LongBool;cdecl;function nvCplSetDataInt( lFlag: longint ; plInfo: longint  ): LongBool;cdecl; external;...
    type
      fnvCplSetDataInt=function( lFlag: longint ; plInfo: longint  ): LongBool;cdecl;
    function nvCplGetThermalSettings( iDisplayIndex: integer  ; var dwCoreTemp: LongWORD; var dwAmbientTemp: LongWord;var UpperLimit: LongWord ): LongBool;cdecl; external;...
    type
      fnvCplGetThermalSettings= function( iDisplayIndex: integer  ; var dwCoreTemp: LongWORD; var dwAmbientTemp: LongWord;var UpperLimit: LongWord): LongBool;cdecl;function NvSetDVDOptimalEnabled(  bEnable: LongBOOL  ): LongBool;cdecl; external;...
    type
      fNvSetDVDOptimalEnabled= function( bEnable: LongBOOL  ): LongBool;cdecl;function NvCplIsExternalPowerConnectorAttached( p_bExternalPowerConnectorAttached: PLongBOOL ): LongBool;cdecl; external;...
    type
      fNvCplIsExternalPowerConnectorAttached = function ( p_bExternalPowerConnectorAttached: PLongBool ): LongBool;cdecl;const NVAPI_TVFORMAT_NTSC_M      =0 ;
    const NVAPI_TVFORMAT_NTSC_J      =1 ;
    const NVAPI_TVFORMAT_PAL_M       = 2;
    const NVAPI_TVFORMAT_PAL_ABDGHI  =3 ;
    const NVAPI_TVFORMAT_PAL_N       = 4;
    const NVAPI_TVFORMAT_PAL_NC      =5 ;
    const NVAPI_TVFORMAT_HD480I      =9 ;
    const NVAPI_TVFORMAT_HD480P      =10;
    const NVAPI_TVFORMAT_HD576P      =11;
    const NVAPI_TVFORMAT_HD720P      =12;
    const NVAPI_TVFORMAT_HD1080I     = 13;
    const NVAPI_TVFORMAT_HD1080P     = 14;
    const NVAPI_TVFORMAT_HD576I      =15;
    const NVAPI_TVFORMAT_HD720I      =16;
    const NVAPI_TVFORMAT_D1          =NVAPI_TVFORMAT_HD480I ;
    const NVAPI_TVFORMAT_D2          =NVAPI_TVFORMAT_HD480P ;
    const NVAPI_TVFORMAT_D3          =NVAPI_TVFORMAT_HD1080I;
    const NVAPI_TVFORMAT_D4          =NVAPI_TVFORMAT_HD720P ;
    const NVAPI_TVFORMAT_D5          =NVAPI_TVFORMAT_HD1080P;BOOL CDECL NvGetCurrentTVFormat( DWORD* pdwFormat ): LongBool;cdecl; external;...
    type
     fNvGetCurrentTVFormat= function ( DWORD* pdwFormat ): LongBool;cdecl;const NVAPI_TV_ENCODER_CONNECTOR_UNKNOWN      $0
    const NVAPI_TV_ENCODER_CONNECTOR_SDTV          $1
    const NVAPI_TV_ENCODER_CONNECTOR_HDTV          $2
    const NVAPI_TV_ENCODER_CONNECTOR_HDTV_AND_SDTV $3function NvGetTVConnectedStatus( var pdwConnected: LongWORD  ): LongBool;cdecl; external;...
    type
     fNvGetTVConnectedStatus = function( var pdwConnected: LongWORD ): LongBool;cdecl;const NVCPL_API_OVERSCAN_SHIFT                           = $00000010;
    const NVCPL_API_UNDERSCAN                                =$00000020 ;
    const NVCPL_API_NATIVEHD                                 = $00000080;function NVTVOutManageOverscanConfiguration( dwSelectedTVFormat:LongWORD ;
                                                    pdwOverscanConfig: PLongWORD ;
                                                    bReadConfig: LongBOOL   ): LongBool;cdecl; external;...        //TRUE==read, FALSE==write
                                                                      
                                                                      
    type
      fNVTVOutManageOverscanConfiguration = function ( dwSelectedTVFormat: LongWORD ;
                                                              pdwOverscanConfig: PLongWORD;
                                                              bReadConfig: LongBOOL  ): LongBool;cdecl;    //TRUE==read, FALSE==write
                                                                      
                                                                      
    //#if 0 
                                            const NVAPI_ASPECT_FULLSCREEN    =0;  (* 4:3 aspect              *)
                                            const NVAPI_ASPECT_LETTERBOX     = 1;  (* 4:3 aspect, letterbox'd *)
                                            const NVAPI_ASPECT_WIDESCREEN    =2;  (* 16:9 aspect            *)                                        BOOL CDECL NvSetHDAspect( DWORD* pdwAspect ): LongBool;cdecl; external;...
                                            type
                                              fNvSetHDAspect= function( pdwAspect: PLongWORD ): LongBool;cdecl;
    //#endif const NVAPI_LICENSE_TYPE_OVERCLOCKING      = 1;
    const NVAPI_LICENSE_TYPE_ADVANCED_TIMING    = 2;function NvGetShowLicenseKeyAgreement( dwLicenseType: LongWord; var pdwData: LongWord ): LongBool;cdecl; external;...
    type
      fNvGetShowLicenseKeyAgreement = function(  dwLicenseType:LongWord; var pdwData:LongWord ): LongBool;cdecl;function NvSetShowLicenseKeyAgreement( dwLicenseType: LongWord ; dwData: LongWord  ): LongBool;cdecl; external;...
    type
      fNvSetShowLicenseKeyAgreement = function( dwLicenseType: LongWord; dwData:LongWord ): LongBool;cdecl;