Source code of Windows XP (NT5)
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.

107 lines
2.2 KiB

  1. __foldwin32sstuff __foldwin32sstuff;
  2. foldstyleinitialization = true;
  3. /*
  4. * COMMDLG thunks for Win32s
  5. */
  6. /*
  7. * Open issues:
  8. *
  9. */
  10. enablemapdirect3216 = true;
  11. flatthunks = false; /* BUGBUG [KevinR] 01-Sep-1993 */
  12. #include "..\types.thk"
  13. #include "..\dlgtypes.thk"
  14. /*
  15. * Exported COMMDLG functions
  16. *
  17. * The functions are ordered as in the def files to make it easier to
  18. * follow which functions are done, which are missing, etc.
  19. */
  20. /**********************************************************************
  21. *
  22. * COMMDLG.DLL exports
  23. *
  24. **********************************************************************/
  25. /*
  26. * GetOpenFileName
  27. * GetSaveFileName
  28. * ChooseColor
  29. * ChooseFont
  30. * CommDlgExtendedError
  31. * GetFileTitle
  32. */
  33. BOOL GetOpenFileName(LPOPENFILENAME lpOfn) =
  34. BOOL ThkGetOpenFileName(LPOPENFILENAME lpOfn)
  35. {
  36. lpOfn = raw pack unpack;
  37. Flags = local 4;
  38. }
  39. BOOL GetSaveFileName(LPOPENFILENAME lpOfn) =
  40. BOOL ThkGetSaveFileName(LPOPENFILENAME lpOfn)
  41. {
  42. lpOfn = raw pack unpack;
  43. Flags = local 4;
  44. }
  45. BOOL ChooseColor(LPCHOOSECOLOR lpcc) =
  46. BOOL ThkChooseColor(LPCHOOSECOLOR lpcc)
  47. {
  48. lpcc = raw pack unpack;
  49. Flags = local 4; /* Saves CHOOSECOLOR flags field */
  50. lpCustColorsSeg = local 4; /* Saves segment for lpCustColors */
  51. lpTemplateNameSeg = local 4; /* Saves segment for lpTemplateName */
  52. }
  53. BOOL ChooseFont(LPCHOOSEFONT lpcf) =
  54. BOOL ThkChooseFont(LPCHOOSEFONT lpcf)
  55. {
  56. lpcf = raw pack unpack;
  57. Flags = local 4;
  58. lpTemplateNameTemp = local 4;
  59. lpszStyleTemp = local 4;
  60. }
  61. DWORD CommDlgExtendedError() =
  62. DWORD ThkCommDlgExtendedError()
  63. {
  64. }
  65. int GetFileTitleI(LPSTR lpszFile, LPSTR lpszTitle, WORD wBufSize, DWORD dwFlags) =
  66. int GetFileTitleI(LPSTR lpszFile, LPSTR lpszTitle, WORD wBufSize, DWORD dwFlags)
  67. {
  68. faulterrorcode = -1;
  69. }
  70. DWORD ParseFileFrom32(LPSTR lpszFile, DWORD dwFlags) =
  71. DWORD ThkParseFile(LPSTR lpszFile, DWORD dwFlags)
  72. {
  73. }
  74. DWORD PathQualify(LPSTR lpszFile) =
  75. DWORD ThkPathQualify(LPSTR lpszFile)
  76. {
  77. }
  78. /* Private API: COMDLG32 must run this thunk during its init routine.
  79. *
  80. * We declare pCB32Tab as DWORD, not POINTER. We want the linear
  81. * address passed thru untouched.
  82. */
  83. VOID DlgThunkInit(DWORD pCB32Tab) =
  84. VOID DlgThunkInit(DWORD pCB32Tab)
  85. {
  86. }