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.

41 lines
1.2 KiB

  1. /*********************************************************************
  2. Registration Wizard
  3. cntryinf.h
  4. 10/12/94 - Tracy Ferrier
  5. (c) 1994-95 Microsoft Corporation
  6. *********************************************************************/
  7. //#define TAPI_CURRENT_VERSION 0x00010004
  8. #ifndef __CNTRYINF__
  9. #define __CNTRYINF__
  10. #include <tchar.h>
  11. #include <tapi.h>
  12. #define kCountryCodeUnitedStates 1
  13. BOOL CountryCodeFromSzCountryCode(HINSTANCE hInstance,LPTSTR szCountry,DWORD* lpCountry);
  14. DWORD GetCountryCodeUsingTapiId(DWORD dwCountryId, DWORD *dwCountryCode) ;
  15. BOOL GetTapiCurrentCountry(HINSTANCE hInstance,DWORD* dwpCountry);
  16. BOOL FFillCountryList(HINSTANCE hInstance,HWND hwndCB,LPTSTR szCountry,DWORD* lpCountry);
  17. class CCntryInfo {
  18. public :
  19. #ifdef _TAPI
  20. LINECOUNTRYLIST *m_pCountry;
  21. #endif
  22. CCntryInfo();
  23. ~CCntryInfo();
  24. int GetCountryCode(_TCHAR *czCountryName);
  25. int GetCountryCode( DWORD dwTapiId);
  26. _TCHAR * GetCountryName(int iCode =0);
  27. void FillCountryList(HINSTANCE hInstance,HWND hwndCB);
  28. int GetTapiCountryCode(_TCHAR * czCountryName);
  29. int GetTapiIDForTheCountryIndex(int iCntryIndex=0); // Useful to Get the Actual TAPI Country Index
  30. };
  31. extern CCntryInfo gTapiCountryTable;
  32. #endif //__CNTRYINF__