Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

  1. /* File: D:\WACKER\translat.hh (Created: 24-Aug-1994)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 1 $
  7. * $Date: 10/05/98 12:39p $
  8. */
  9. struct stTransInternal
  10. {
  11. HSESSION hSession;
  12. HINSTANCE hInstance; /* Returned from LoadLibrary */
  13. };
  14. typedef struct stTransInternal ST_TRANS_INT;
  15. typedef ST_TRANS_INT *PST_TRANS_INT;
  16. // For now we'll include the .HH file where we need access to the
  17. // structure. Later, we'll go back and write wrappers for the
  18. // few places this needs to referenced. Also, the session handle
  19. // should probably not own the translate handle. It may be more
  20. // appropriate to think of this as function of the cloop - mrw, 3/1/95
  21. //
  22. struct stTranslate
  23. {
  24. int (*pfnIsDeviceLoaded)(VOID *pV);
  25. int (*pfnDoDialog)(HWND hWnd, VOID *pV);
  26. VOID *(*pfnCreate)(HSESSION hSession); // why is this void *? - mrw
  27. int (*pfnInit)(VOID *pV);
  28. int (*pfnLoad)(VOID *pV);
  29. int (*pfnSave)(VOID *pV);
  30. int (*pfnDestroy)(VOID *pV);
  31. int (*pfnIn)(VOID *pV, TCHAR cC, int *nReady, int nSize, TCHAR *pszC);
  32. int (*pfnOut)(VOID *pV, TCHAR cC, int *nReady, int nSize, TCHAR *pszC);
  33. VOID *pDllHandle; /* the handle from the DLL */
  34. VOID *pInternal; /* internal handle used internally */
  35. };
  36. typedef struct stTranslate ST_TRANSLATE;
  37. typedef ST_TRANSLATE *HHTRANSLATE;
  38. // These functions as well as the function pointers above take VOID *
  39. // pointers. I'ld like to see them point to some incomplete type
  40. // at the very least for typechecking purposes. - mrw 3/1/95
  41. //
  42. static int translateInternalFalse(VOID *pV);
  43. static int translateInternalTrue(VOID *pV);
  44. static VOID *translateInternalVoid(HSESSION hSession);
  45. static int translateInternalDoDlg(HWND hWnd, VOID *pV);
  46. static int translateInternalCio(VOID *pV, TCHAR cC, int *nR, int nS, TCHAR *pC);