The prototype definitions of the APPC function are as follows:
void WINAPI APPC(long);
HANDLE WINAPI WinAsyncAPPC (hWnd, LPAPPC);
The VCB address parameter, a 32-bit pointer, is declared as a long integer and thus requires casting from a pointer to a long integer.