Botan  2.6.0
Crypto and TLS for C++11
Namespaces | Macros
es_win32.cpp File Reference
#include <botan/internal/es_win32.h>
#include <windows.h>
#include <tlhelp32.h>

Go to the source code of this file.

Namespaces

 Botan
 

Macros

#define _WINSOCKAPI_
 
#define NOMINMAX   1
 
#define TOOLHELP32_ITER(DATA_TYPE, FUNC_FIRST, FUNC_NEXT)
 

Macro Definition Documentation

◆ _WINSOCKAPI_

#define _WINSOCKAPI_

Definition at line 11 of file es_win32.cpp.

◆ NOMINMAX

#define NOMINMAX   1

Definition at line 10 of file es_win32.cpp.

◆ TOOLHELP32_ITER

#define TOOLHELP32_ITER (   DATA_TYPE,
  FUNC_FIRST,
  FUNC_NEXT 
)
Value:
if(collected < POLL_TARGET) \
{ \
DATA_TYPE info; \
info.dwSize = sizeof(DATA_TYPE); \
if(FUNC_FIRST(snapshot, &info)) \
{ \
do \
{ \
rng.add_entropy_T(info); \
collected += EST_ENTROPY_THREAD_INFO; \
if(collected >= POLL_TARGET) \
break; \
} while(FUNC_NEXT(snapshot, &info)); \
} \
}

Referenced by Botan::Win32_EntropySource::poll().