Ras Custom Scripting

Does anyone have experience writing a custom script for Remote Access Service? The windows sdk seems to be missing files in the sample for this. I found a framework for the CustomScript dll but it won't compile. This is the header for the exported function:

DWORD
RasCustomScriptExecute(
HANDLE hPort,
LPCWSTR lpszPhonebook,
LPCWSTR lpszEntryName,
PFNRASGETBUFFER pfnRasGetBuffer,
PFNRASFREEBUFFER pfnRasFreeBuffer,
PFNRASSENDBUFFER pfnRasSendBuffer,
PFNRASRECEIVEBUFFER pfnRasReceiveBuffer,
PFNRASRETRIEVEBUFFER pfnRasRetrieveBuffer,
HWND hWnd,
RASDIALPARAMS *pRasDialParams,
RASCUSTOMSCRIPTEXTENSIONS *pRasCustomScriptExtensions
//
// Skeletal function for a RAS custom script
//
)

All the function pointers that are passed in here are defined in ras.h, but the compile says they are undeclared. Any comments to help me out are a working example are greatly appreciated.

Thanks!
[1012 byte] By [What in the Sam Heck] at [2007-11-18 19:25:06]