summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_callproc.cpp
blob: ab26eb03ebd8408675ecd0fc280104e33c3a53ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "hdr/modern_commonheaders.h"
#include "hdr/modern_callproc.h"

//////////////////////////////////////////////////////////////////////////
// standard callback proc
int CALLBACK __DoCallBack( LPARAM pvStorage)
{
    call::__baseCall * storage = (call::__baseCall *) pvStorage;
    int res=storage->__DoCallStorageProc();
    delete storage;
    return res;
}

//////////////////////////////////////////////////////////////////////////
// To do: Replace __ProcessCall to switching threads etc 
// and specify _DoCallback as callback
int call::__ProcessCall( __baseCall * pStorage, ASYNC_T async )
{
    return __DoCallBack( (LPARAM)pStorage);
}