2 * Win32 miscellaneous functions
4 * Copyright 1995 Thomas Sandford (tdgsandf@prds-grn.demon.co.uk)
7 /* Misc. new functions - they should be moved into appropriate files
17 /***********************************************************************
18 * RaiseException (KERNEL32.??)
20 * Stub function - does not allow exceptions to be caught yet
22 WINAPI VOID RaiseException(DWORD dwExceptionCode,
23 DWORD dwExceptionFlags,
25 const DWORD * lpArguments)
27 ExitProcess(dwExceptionCode); /* what status should be used here ? */
30 /***********************************************************************
31 * GetProcAddress (KERNEL32.257)
34 WINAPI FARPROC W32_GetProcAddress(HMODULE hModule,
39 modulename = MODULE_GetModuleName(hModule);
40 if (modulename == NULL)
41 return (FARPROC) NULL;
42 if (((int) lpszProc) & 0xffff)
43 return RELAY32_GetEntryPoint(modulename, lpszProc, 0);
45 return RELAY32_GetEntryPoint(modulename, (char *) NULL, (int) lpszProc);