home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 September / CHIP_CD_1997_09_PL.iso / software / testsoft / labwind / demo.6 / main / include / dllsupp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-02  |  2.8 KB  |  62 lines

  1. /*============================================================================*/
  2. /*                        L a b W i n d o w s / C V I                         */
  3. /*----------------------------------------------------------------------------*/
  4. /*    Copyright (c) National Instruments 1987-1996.  All Rights Reserved.     */
  5. /*----------------------------------------------------------------------------*/
  6. /*                                                                            */
  7. /* Title:       dllsupp.h                                                     */
  8. /* Purpose:     Function declarations which must be used when using the       */
  9. /*              WATCOM function DefineUserProc16(). Since there are only      */
  10. /*              16 of the GETPROC_USEDEFINED_X handles, they are managed      */
  11. /*              by these functions.                                           */
  12. /*                                                                            */
  13. /*============================================================================*/
  14.  
  15. #include "cvidef.h"
  16. #include "cvirte.h"
  17.  
  18. #ifdef __cplusplus
  19.     extern "C" {
  20. #endif
  21.  
  22. int CVIFUNC GetProcUserDefinedHandle(void);
  23. void CVIFUNC FreeProcUserDefinedHandle(int handle);
  24.  
  25. /* This function should be used to free the handle allocated by               */
  26. /* GetIndirectFunctionHandle().                                               */
  27.  
  28. void CVIFUNC FreeIndirectHandle(void* handle);
  29.  
  30.  
  31. /* These functions get/set the 80x87 control word.                         */
  32. /* DLL's that use floating point operations need to save the control       */
  33. /* control word on entry to each function (only if it uses floating        */
  34. /* point operations) and restore it on exit                                */
  35. unsigned short CVIFUNC_C Get387CW(void);
  36. void CVIFUNC_C Set387CW(unsigned short);
  37.  
  38. /*  This function returns the hInstance parameter to WinMain for CVI       */
  39. unsigned CVIFUNC GetTaskInstance(void);
  40.  
  41. /* This function allocate a 16:16 alias for the 32 bit pointer 'p',        */
  42. /* capable of addressing 'size' bytes.                                     */
  43. /* If either p or size is zero, alias will be set to zero.                 */
  44. /* It returns 0 on success, -1 on failure.                                 */
  45. /* It works on buffers of size greater than 64K                            */
  46. int CVIFUNC Alloc16BitAlias (void *p, unsigned long size, unsigned long *alias);
  47.  
  48. /* This function deallocs an alias allocated with Alloc16BitAlias. It      */
  49. /* works on any alias from a successful call to Alloc16BitAlias.           */
  50.  
  51. void  CVIFUNC Free16BitAlias (unsigned long alias, unsigned long size);
  52.  
  53.  
  54.  
  55. #define WEM_NOOPENFILEERRORBOX  0x8000
  56.  
  57. int CVIFUNC SetWindowsErrorMode(int errorMode);
  58.  
  59. #ifdef __cplusplus
  60.     }
  61. #endif
  62.