| 1 |
typedef int *FARPROC; |
| 2 |
static int * __restrict__ acceptex_fn; |
| 3 |
|
| 4 |
int xWSAIoctl(void*); |
| 5 |
static void get_fn(FARPROC* fn) |
| 6 |
{ |
| 7 |
FARPROC func; |
| 8 |
if (!xWSAIoctl( &func)) |
| 9 |
*fn = func; |
| 10 |
} |
| 11 |
|
| 12 |
void get_fn_pointers() |
| 13 |
{ |
| 14 |
get_fn((FARPROC*)&acceptex_fn); |
| 15 |
} |