Exemplo n.º 1
0
int once_test(void)
{
    CHECK(InitializeOnce(&o1));
    InitializeOnceDone(&o1);
    CHECK(!InitializeOnce(&o1));

    return 0;
}
Exemplo n.º 2
0
Process::Process()
    : _core()
    , _modules( *this )
    , _memory( this )
    , _threads( _core )
    , _hooks( _memory )
    , _localHooks( *this )
    , _remote( *this )
    , _mmap( *this )
    , _nativeLdr( *this )
{
    // Ensure InitOnce is called
    InitializeOnce();
}