OALIoCtlHalGetRandomSeed (Windows Embedded CE 6.0)
1/5/2010
This function implements the IOCTL_HAL_GET_RANDOM_SEED handler. OALIoCtlHalGetRandomSeed creates a 64-bit random number and stores it in the output buffer.
Syntax
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 Value
TRUE indicates success.
FALSE indicates failure.
Requirements
Header | oal_ioctl.h |
Library | Developer Implemented |
Windows Embedded CE | Windows CE 5.0 and later |