home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / t / tornado / TNdemo / !TMTDemo / h / TMTMod
Encoding:
Text File  |  1996-12-30  |  1.4 KB  |  69 lines

  1. /* TMTMod.h
  2. Provides Win32 API veneers for TMT module
  3. by N. Douglas
  4. Started: 30-11-1996
  5. Last updated: 30-12-1996 version 0.10
  6.  
  7. Note that parts of this API is (C) to Microsoft Corp.
  8. */
  9.  
  10. #ifndef _TMTMod_h
  11. #define _TMTMod_h
  12.  
  13. #define Tornado_Initialise    0xc0000
  14. #define Tornado_Closedown    0xc0001
  15. #define Tornado_Poll        0xc0002
  16. #define Tornado_RedrawWindow     0xc0003
  17. #define Tornado_GetRectangle    0xc0004
  18. #define Tornado_NeedReset    0xc0005
  19. #define Tornado_SetPollMask    0xc0006
  20.  
  21. #define MSG_PASSON 0
  22. #define MSG_HANDLED 1
  23.  
  24. #define TRUE 1
  25. #define FALSE 0
  26. #define BOOL unsigned
  27.  
  28. typedef BOOL (*function)(int *);
  29.  
  30.  
  31. typedef struct SECURITY_ATTRIBUTES
  32. {
  33.   /* Dunno what this is yet! */
  34.   int n;
  35.  
  36. } SECURITY_ATTRIBUTES;
  37.  
  38. typedef int HANDLE;
  39. typedef SECURITY_ATTRIBUTES *LPSECURITY_ATTRIBUTES;
  40. typedef int DWORD;
  41. typedef int *LPTHREAD_START_ROUTINE;
  42. typedef int LPVOID;
  43. typedef DWORD *LPDWORD;
  44.  
  45. extern HANDLE CreateThread(
  46.  
  47.     LPSECURITY_ATTRIBUTES,    /* address of thread security attributes */
  48.     DWORD,            /* initial thread stack size, in bytes */
  49.     LPTHREAD_START_ROUTINE,    /* address of thread function */
  50.     LPVOID,            /* argument for new thread */
  51.     DWORD,            /* creation flags */
  52.     LPDWORD            /* address of returned thread ID */
  53.    );
  54.  
  55. extern void ExitThread(
  56.  
  57.     DWORD            /* exit code for this thread */
  58.    );
  59.  
  60. extern BOOL TerminateThread(
  61.  
  62.     HANDLE,            /* handle to the thread */
  63.     DWORD             /* exit code for the thread */
  64.    );
  65.  
  66. extern DWORD GetLastError(void);
  67.  
  68. #endif
  69.