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.

27 lines
1.2 KiB

  1. #define COUNTRY_CODE_SIZE 10
  2. #define AREA_CODE_SIZE 10
  3. #define TELEPHONE_NUMBER_SIZE 50
  4. #define ROUTING_NAME_SIZE 150
  5. #define CANONICAL_NUMBER_SIZE (10+COUNTRY_CODE_SIZE+AREA_CODE_SIZE+TELEPHONE_NUMBER_SIZE+ROUTING_NAME_SIZE)
  6. typedef struct tagPARSEDTELNUMBER
  7. {
  8. TCHAR szCountryCode[COUNTRY_CODE_SIZE+1]; // country code
  9. TCHAR szAreaCode[AREA_CODE_SIZE+1]; // area code
  10. TCHAR szTelNumber[TELEPHONE_NUMBER_SIZE+1]; // telephone number
  11. TCHAR szRoutingName[ROUTING_NAME_SIZE+1]; // routing name within the tel number destination
  12. } PARSEDTELNUMBER, *LPPARSEDTELNUMBER;
  13. BOOL EncodeFaxAddress(LPTSTR lpszFaxAddr, LPPARSEDTELNUMBER lpParsedFaxAddr);
  14. BOOL DecodeFaxAddress(LPTSTR lpszFaxAddr, LPPARSEDTELNUMBER lpParsedFaxAddr);
  15. /*
  16. * Function pointer prototypes for fax config functions
  17. */
  18. typedef BOOL (* PFN_DECODE_FAX_ADDRESS)(LPTSTR lpszFaxAddr, LPPARSEDTELNUMBER lpParsedFaxAddr);
  19. typedef BOOL (* PFN_ENCODE_FAX_ADDRESS)(LPTSTR lpszFaxAddr, LPPARSEDTELNUMBER lpParsedFaxAddr);
  20. #define FAXCFG_DECODE_FAX_ADDRESS TEXT("DecodeFaxAddress")
  21. #define FAXCFG_ENCODE_FAX_ADDRESS TEXT("EncodeFaxAddress")
  22. #define FAXCFG_DLL TEXT("awfxcg32.dll")