NLedDriverSetDevice

This function changes the setting of the notification LED.

BOOL NLedDriverSetDevice(
  INT nId,
  PVOID pInput 
);

Parameters

  • nId
    [in] Integer that specifies what information is to be set. You can set it to NLED_SETTINGS_INFO_ID to indicate that the pInput buffer contains information about the current settings for the notification LED.
  • pInput
    [out] Pointer to the buffer that contains the NLED_SETTINGS_INFO structure. This structure contains the new settings for the notification LED.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

The NLedDriverSetDevice function changes the setting of the notification LED. Platforms with no LEDs can call SetLastError and return FALSE.

The following code example shows an implementation of NLedDriverSetDevice.

BOOL
WINAPI
NLedDriverSetDevice( INT nId, PVOID pInput )
{
  SetLastError(ERROR_GEN_FAILURE);
  return (FALSE);
}

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Led_drvr.h.
Link Library: Nleddrv.lib.

See Also

Notification LED Drivers | NLED_SETTINGS_INFO

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.