Partager via


OALIoCtlHalGetRandomSeed (Windows CE 5.0)

Send Feedback

This function implements the IOCTL_HAL_GET_RANDOM_SEED handler. OALIoCtlHalGetRandomSeed creates a 64-bit random number and stores it in the output buffer.

BOOL OALIoCtlHalGetRandomSeed(  UINT32 dwIoControlCode,  VOID* lpInBuf,  UINT32 nInBufSize,  VOID* lpOutBuf,  UINT32 nOutBufSize,  UINT32* lpBytesReturned);

Parameters

  • dwIoControlCode
    [in] Set to IOCTL_HAL_GET_RANDOM_SEED.
  • lpInBuf
    [in] Set to NULL.
  • nInBufSize
    [in] Set to zero.
  • lpOutBuf
    [in] Set to the address of an allocated output buffer for storing the random bytes.
  • nOutBufSize
    [in] Set to the size of the output buffer. This value must be less than or equal to 1024.
  • lpBytesReturned
    [in] DWORD pointer to receive the size of data returned (up to 24 bytes) in lpOutBuf.

Return Values

TRUE indicates success.

FALSE indicates failure.

Remarks

Requirements

OS Versions: Windows CE Version 5.0 and later
Header: Oal_ioctl.h
Link Library: Developer-defined

See Also

IOCTL Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.