nleddrv.cpp
来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C++ 代码 · 共 147 行
CPP
147 行
/*
Copyright(c) 1998,1999 SIC/Hitachi,Ltd.
Module Name:
nleddrv.cpp
Revision History:
26th April 1999 Released
*/
#include <windows.h>
#include <nled.h>
#include <led_drvr.h>
#include <types.h>
/*
PeRP HAS NO LED's so this module is easy...
*/
/*++
@doc EXTERNAL DRIVERS
@func BOOL | NLedDriverGetDeviceInfo | Retrieves information about the notification LED.
@parm INT | nInfoId | Id number of the information to retrieve.
@parm PVOID | pOutput | Buffer to put the information.
@comm This is the function interface to the driver..
@xref
--*/
BOOL
WINAPI
NLedDriverGetDeviceInfo(
INT nInfoId,
PVOID pOutput
)
{
DEBUGMSG(1, (TEXT("+NLedDriverGetDeviceInfo(nInfoId=%d, pOutput=%p)\r\n"), nInfoId, pOutput));
if ( nInfoId == NLED_COUNT_INFO_ID )
{
struct NLED_COUNT_INFO *p = (struct NLED_COUNT_INFO*)pOutput;
p -> cLeds = 0;
DEBUGMSG(1, (TEXT("-NLedDriverGetDeviceInfo returning TRUE\r\n")));
return TRUE;
}
SetLastError(ERROR_GEN_FAILURE);
DEBUGMSG(1, (TEXT("-NLedDriverGetDeviceInfo returning FALSE\r\n")));
return FALSE;
}
/*++
@doc EXTERNAL DRIVERS
@func BOOL | NLedDriverSetDevice | Changes setting of the notification LED.
@parm INT | nInfoId | Id number of the setting.
@parm PVOID | pInput | Buffer which has the new settings.
@comm This is the function interface to the driver..
@xref
--*/
BOOL
WINAPI
NLedDriverSetDevice(
INT nInfoId,
PVOID pInput
)
{
SetLastError(ERROR_GEN_FAILURE);
return FALSE;
}
/*++
@doc EXTERNAL DRIVERS
@func VOID | NLedDriverPowerDown | Power up/down notification to the LED device(s).
@parm BOOL | power_down | TRUE = Power down, FALSE = power up.
--*/
VOID
NLedDriverPowerDown(
BOOL power_down
)
{
return;
}
BOOL
NLedDriverInitialize(
VOID
)
{
return TRUE;
}
/*++
@doc EXTERNAL DRIVERS
@func BOOL | NLedDriverDllEntry | This is the entry/exit point for the dll.
@parm HANDLE | hinstDll | Instance handle of the Dll.
@parm DWORD | fdwReason | The reason why the function was called.
@parm LPVOID | 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;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?