nleddrv.cpp

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C++ 代码 · 共 124 行

CPP
124
字号
/* -*-C-*-
 *
 * $Revision: 1.1 $
 *   $Author: kwelton $
 *     $Date: 2000/04/12 20:40:43 $
 *
 * Module Name:  nleddrv.cpp
 *
 * Abstract:
 *    Provides control of the notification LED.
 *
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
 * ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
 * PARTICULAR PURPOSE.
 *
 * Copyright (c) 1995, 1996, 1997  Microsoft Corporation
 * Copyright (c) 2000 ARM Limited
 * All Rights Reserved
 */

#include <windows.h>
#include <nled.h>
#include <led_drvr.h>
#include <types.h>

/*
 * Integrator has no LED's so this module is easy...
 */


/*
 * @func        NLedDriverGetDeviceInfo
 *
 *    Retrieves information about the notification LED.
 *
 * @parms
 *
 *    nInfoId   Id number of the information to retrieve.
 *
 *    pOutput   Buffer to put the information.
 *
 * @comm
 *
 *    This is the function interface to the driver..
 */
BOOL WINAPI NLedDriverGetDeviceInfo(INT nInfoId, PVOID pOutput)
{
    if (nInfoId == NLED_COUNT_INFO_ID)
    {
        struct NLED_COUNT_INFO *p = (struct NLED_COUNT_INFO*)pOutput;

        p->cLeds = 0;
        return TRUE;
    }

    SetLastError(ERROR_GEN_FAILURE);
    return FALSE;
}

/*
 * @func        NLedDriverSetDevice
 *
 *    Changes setting of the notification LED.
 *
 * @parms
 *
 *    nInfoId   Id number of the setting.
 *
 *    pInput    Buffer which has the new settings.
 *
 * @comm
 *
 *    This is the function interface to the driver..
 */
BOOL WINAPI NLedDriverSetDevice(INT nInfoId, PVOID pInput)
{
    SetLastError(ERROR_GEN_FAILURE);
    return FALSE;
}

/*
 * @func        NLedDriverPowerDown
 *
 *    Power up/down notification to the LED device(s).
 *
 * @parms
 *
 *    power_down TRUE = Power down, FALSE = power up.
 */
VOID NLedDriverPowerDown(BOOL power_down)
{
    return;
}

BOOL NLedDriverInitialize(VOID)
{
    return TRUE;
}

/*
 * @func        NLedDriverDllEntry
 *
 *    This is the entry/exit point for the dll.
 *
 * @parms
 *
 *    hinstDll          Instance handle of the Dll.
 *
 *    fdwReason         The reason why the function was called.
 *
 *    lpvReserved       Reserved, not used.
 *
 * @rdesc
 *
 *    If the function was successful TRUE is returned; otherwise, FALSE.
*/
BOOL NLedDriverDllEntry(HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
{
    return TRUE;
}

/* EOF nleddrv.cpp */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?