22 #define RANDOM_BUFSIZE 1024
28 SYSHEAPINFO sysHeapInfo;
29 MEMMANINFO memManInfo;
49 GetCursorPos( &point );
50 addRandomData( randomState, &point,
sizeof( POINT ) );
51 GetCaretPos( &point );
52 addRandomData( randomState, &point,
sizeof( POINT ) );
57 memManInfo.dwSize =
sizeof( MEMMANINFO );
58 MemManInfo( &memManInfo );
59 addRandomData( randomState, &memManInfo,
sizeof( MEMMANINFO ) );
63 timerInfo.dwSize =
sizeof( TIMERINFO );
64 TimerCount( &timerInfo );
65 addRandomData( randomState, &timerInfo,
sizeof( TIMERINFO ) );
68 sysHeapInfo.dwSize =
sizeof( SYSHEAPINFO );
69 SystemHeapInfo( &sysHeapInfo );
70 addRandomData( randomState, &sysHeapInfo,
sizeof( SYSHEAPINFO ) );
73 endRandomData( randomState, 25 );
87 MODULEENTRY moduleEntry;
88 GLOBALENTRY globalEntry;
98 globalEntry.dwSize =
sizeof( GLOBALENTRY );
99 if( GlobalFirst( &globalEntry, GLOBAL_ALL ) )
102 addRandomData( randomState, &globalEntry,
sizeof( GLOBALENTRY ) );
105 while( count < 70 && GlobalNext( &globalEntry, GLOBAL_ALL ) );
111 moduleEntry.dwSize =
sizeof( MODULEENTRY );
112 if( ModuleFirst( &moduleEntry ) )
115 addRandomData( randomState, &moduleEntry,
sizeof( MODULEENTRY ) );
118 while( count < 20 && ModuleNext( &moduleEntry ) );
128 taskEntry.dwSize =
sizeof( TASKENTRY );
129 if( TaskFirst( &taskEntry ) )
132 addRandomData( randomState, &taskEntry,
sizeof( TASKENTRY ) );
133 if( taskEntry.hTask != GetCurrentTask() )
135 TaskGetCSIP( taskEntry.hTask ) );
138 while( count < 100 && TaskNext( &taskEntry ) );
141 endRandomData( randomState, 100 );