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.

70 lines
2.9 KiB

  1. #include <windows.h>
  2. #include <shellapi.h>
  3. #include <stdio.h>
  4. #include <tchar.h>
  5. #include "faxutil.h"
  6. #include "faxreg.h"
  7. #include "winfax.h"
  8. int _cdecl
  9. main(
  10. int argc,
  11. char *argvA[]
  12. )
  13. {
  14. PREG_FAX_SERVICE RegFaxSvc;
  15. DWORD i;
  16. HeapInitialize();
  17. RegFaxSvc = GetFaxRegistry();
  18. if (!RegFaxSvc) {
  19. DebugPrint(( TEXT("could not get the fax registry data") ));
  20. return 1;
  21. }
  22. _tprintf( TEXT("--- global fax service values ---\n\n" ));
  23. _tprintf( TEXT("\tretries.............0x%08x\n"), RegFaxSvc->Retries );
  24. _tprintf( TEXT("\tretry delay.........0x%08x\n"), RegFaxSvc->RetryDelay );
  25. _tprintf( TEXT("\tdirty days..........0x%08x\n"), RegFaxSvc->DirtyDays );
  26. _tprintf( TEXT("\tarea code...........0x%08x\n"), RegFaxSvc->AreaCode );
  27. _tprintf( TEXT("\ttoll prefix count...0x%08x\n"), RegFaxSvc->TollPrefixCount );
  28. _tprintf( TEXT("\tbranding............0x%08x\n"), RegFaxSvc->Branding );
  29. _tprintf( TEXT("\tuse device tsid.....0x%08x\n"), RegFaxSvc->UseDeviceTsid );
  30. _tprintf( TEXT("\n\n--- device providers ---\n\n" ));
  31. for (i=0; i<RegFaxSvc->DeviceProviderCount; i++) {
  32. _tprintf( TEXT("\tname ...............%s\n"), RegFaxSvc->DeviceProviders[i].FriendlyName );
  33. _tprintf( TEXT("\timage name..........%s\n"), RegFaxSvc->DeviceProviders[i].ImageName );
  34. _tprintf( TEXT("\tprovider name.......%s\n\n"), RegFaxSvc->DeviceProviders[i].ProviderName );
  35. }
  36. _tprintf( TEXT("\n--- fax devices ---\n\n" ));
  37. for (i=0; i<RegFaxSvc->DeviceCount; i++) {
  38. _tprintf( TEXT("\tname................%s\n"), RegFaxSvc->Devices[i].Name );
  39. _tprintf( TEXT("\tprovider............%s\n"), RegFaxSvc->Devices[i].Provider );
  40. _tprintf( TEXT("\tpriority............%d\n"), RegFaxSvc->Devices[i].Priority );
  41. _tprintf( TEXT("\t--- routing ---\n") );
  42. _tprintf( TEXT("\t\tmask...............0x%08x\n"), RegFaxSvc->Devices[i].Routing->Mask );
  43. _tprintf( TEXT("\t\tprinter............%s\n"), RegFaxSvc->Devices[i].Routing->Printer );
  44. _tprintf( TEXT("\t\tdirectory..........%s\n"), RegFaxSvc->Devices[i].Routing->StoreDirectory );
  45. _tprintf( TEXT("\t\tprofile............%s\n"), RegFaxSvc->Devices[i].Routing->ProfileName );
  46. _tprintf( TEXT("\t\tcsid...............%s\n"), RegFaxSvc->Devices[i].Routing->CSID );
  47. _tprintf( TEXT("\t\ttsid...............%s\n"), RegFaxSvc->Devices[i].Routing->TSID );
  48. }
  49. _tprintf( TEXT("\n--- logging ---\n\n" ));
  50. for (i=0; i<RegFaxSvc->LoggingCount; i++) {
  51. _tprintf( TEXT("\tname................%s\n"), RegFaxSvc->Logging[i].CategoryName );
  52. _tprintf( TEXT("\t\tlevel...............%d\n"), RegFaxSvc->Logging[i].Level );
  53. _tprintf( TEXT("\t\tnumber..............%d\n"), RegFaxSvc->Logging[i].Number );
  54. }
  55. return 0;
  56. }