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.

87 lines
2.8 KiB

  1. #include <winfax.h>
  2. void CallEverythingWithGarbage ()
  3. {
  4. FaxAbort (NULL, 0);
  5. FaxAccessCheck (NULL, 0);
  6. FaxClose (NULL);
  7. FaxCompleteJobParamsA (NULL, NULL);
  8. FaxCompleteJobParamsW (NULL, NULL);
  9. FaxConnectFaxServerA (NULL, NULL);
  10. FaxConnectFaxServerW (NULL, NULL);
  11. FaxEnableRoutingMethodA (NULL, NULL, FALSE);
  12. FaxEnableRoutingMethodW (NULL, NULL, FALSE);
  13. FaxEnumGlobalRoutingInfoA (NULL, NULL, NULL);
  14. FaxEnumGlobalRoutingInfoW (NULL, NULL, NULL);
  15. FaxEnumJobsA (NULL, NULL, NULL);
  16. FaxEnumJobsW (NULL, NULL, NULL);
  17. FaxEnumPortsA (NULL, NULL, NULL);
  18. FaxEnumPortsW (NULL, NULL, NULL);
  19. FaxEnumRoutingMethodsA (NULL, NULL, NULL);
  20. FaxEnumRoutingMethodsW (NULL, NULL, NULL);
  21. FaxFreeBuffer (NULL);
  22. FaxGetConfigurationA (NULL, NULL);
  23. FaxGetConfigurationW (NULL, NULL);
  24. FaxGetDeviceStatusA (NULL, NULL);
  25. FaxGetDeviceStatusW (NULL, NULL);
  26. FaxGetJobA (NULL, 0, NULL);
  27. FaxGetJobW (NULL, 0, NULL);
  28. FaxGetLoggingCategoriesA (NULL, NULL, NULL);
  29. FaxGetLoggingCategoriesW (NULL, NULL, NULL);
  30. FaxGetPageData (NULL, 0, NULL, NULL, NULL, NULL);
  31. FaxGetPortA (NULL, NULL);
  32. FaxGetPortW (NULL, NULL);
  33. FaxGetRoutingInfoA (NULL, NULL, NULL, NULL);
  34. FaxGetRoutingInfoW (NULL, NULL, NULL, NULL);
  35. FaxInitializeEventQueue (NULL, NULL, NULL, NULL, 0);
  36. FaxOpenPort (NULL, 0, 0, NULL);
  37. FaxPrintCoverPageA (NULL, NULL);
  38. FaxPrintCoverPageW (NULL, NULL);
  39. FaxRegisterRoutingExtensionW (NULL, NULL, NULL, NULL, NULL, NULL);
  40. FaxRegisterServiceProviderW (NULL, NULL, NULL, NULL);
  41. FaxSendDocumentA (NULL, NULL, NULL, NULL, NULL);
  42. FaxSendDocumentW (NULL, NULL, NULL, NULL, NULL);
  43. FaxSendDocumentForBroadcastA (NULL, NULL, NULL, NULL, NULL);
  44. FaxSendDocumentForBroadcastW (NULL, NULL, NULL, NULL, NULL);
  45. FaxSetConfigurationA (NULL, NULL);
  46. FaxSetConfigurationW (NULL, NULL);
  47. FaxSetGlobalRoutingInfoA (NULL, NULL);
  48. FaxSetGlobalRoutingInfoW (NULL, NULL);
  49. FaxSetJobA (NULL, 0, 0, NULL);
  50. FaxSetJobW (NULL, 0, 0, NULL);
  51. FaxSetLoggingCategoriesA (NULL, NULL, 0);
  52. FaxSetLoggingCategoriesW (NULL, NULL, 0);
  53. FaxSetPortA (NULL, NULL);
  54. FaxSetPortW (NULL, NULL);
  55. FaxSetRoutingInfoA (NULL, NULL, NULL, 0);
  56. FaxSetRoutingInfoW (NULL, NULL, NULL, 0);
  57. FaxStartPrintJobA (NULL, NULL, NULL, NULL);
  58. FaxStartPrintJobW (NULL, NULL, NULL, NULL);
  59. }
  60. #ifndef _UNICODE
  61. int main (
  62. int argc,
  63. char *argv[]
  64. )
  65. {
  66. //
  67. // We only check the linkage - not performance.
  68. //
  69. CallEverythingWithGarbage();
  70. return 0;
  71. }
  72. #else
  73. int wmain (
  74. int argc,
  75. WCHAR *argv[]
  76. )
  77. {
  78. //
  79. // We only check the linkage - not performance.
  80. //
  81. CallEverythingWithGarbage();
  82. return 0;
  83. }
  84. #endif