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.

114 lines
5.5 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cm_phbk.h
  4. //
  5. // Module: CMPBK32.DLL
  6. //
  7. // Synopsis: Description of CM phone book API
  8. //
  9. // Copyright (c) 1998-1999 Microsoft Corporation
  10. //
  11. // Author: quintinb Created Header 08/19/99
  12. //
  13. //+----------------------------------------------------------------------------
  14. #ifndef _CMPHBK_INC
  15. #define _CMPHBK_INC
  16. typedef struct tagPhoneBookFilterStruct {
  17. DWORD dwCnt;
  18. struct {
  19. DWORD dwMask;
  20. DWORD dwMatch;
  21. } aData[1];
  22. } PhoneBookFilterStruct, *PPBFS;
  23. #define CM_PHBK_DllExportH extern "C" HRESULT WINAPI
  24. #define CM_PHBK_DllExportB extern "C" BOOL WINAPI
  25. #define CM_PHBK_DllExportV extern "C" void WINAPI
  26. #define CM_PHBK_DllExportP extern "C" PPBFS WINAPI
  27. #define CM_PHBK_DllExportD extern "C" DWORD WINAPI
  28. CM_PHBK_DllExportP PhoneBookCopyFilter(PPBFS pFilterIn);
  29. CM_PHBK_DllExportV PhoneBookFreeFilter(PPBFS pFilter);
  30. CM_PHBK_DllExportB PhoneBookMatchFilter(PPBFS pFilter, DWORD dwValue);
  31. typedef BOOL (WINAPI *PhoneBookParseInfoSvcFuncA)(LPCSTR pszSvc, PPBFS pFilter, DWORD_PTR dwParam);
  32. typedef BOOL (WINAPI *PhoneBookParseInfoSvcFuncW)(LPCWSTR pszSvc, PPBFS pFilter, DWORD_PTR dwParam);
  33. typedef BOOL (WINAPI *PhoneBookParseInfoRefFuncA)(LPCSTR pszFile, LPCSTR pszURL, PPBFS pFilterA, PPBFS pFilterB, DWORD_PTR dwParam);
  34. typedef BOOL (WINAPI *PhoneBookParseInfoRefFuncW)(LPCWSTR pszFile, LPCWSTR pszURL, PPBFS pFilterA, PPBFS pFilterB, DWORD_PTR dwParam);
  35. typedef struct tagPhoneBookParseInfoStructA {
  36. DWORD dwSize;
  37. LPSTR pszURL;
  38. DWORD dwURL;
  39. PPBFS pFilterA;
  40. PPBFS pFilterB;
  41. PhoneBookParseInfoSvcFuncA pfnSvc;
  42. DWORD_PTR dwSvcParam;
  43. PhoneBookParseInfoRefFuncA pfnRef;
  44. DWORD_PTR dwRefParam;
  45. } PhoneBookParseInfoStructA;
  46. typedef struct tagPhoneBookParseInfoStructW {
  47. DWORD dwSize;
  48. LPWSTR pszURL;
  49. DWORD dwURL;
  50. PPBFS pFilterA;
  51. PPBFS pFilterB;
  52. PhoneBookParseInfoSvcFuncW pfnSvc;
  53. DWORD_PTR dwSvcParam;
  54. PhoneBookParseInfoRefFuncW pfnRef;
  55. DWORD_PTR dwRefParam;
  56. } PhoneBookParseInfoStructW;
  57. CM_PHBK_DllExportB PhoneBookParseInfoA(LPCSTR pszFile, PhoneBookParseInfoStructA *pInfo);
  58. CM_PHBK_DllExportB PhoneBookParseInfoW(LPCWSTR pszFile, PhoneBookParseInfoStructW *pInfo);
  59. typedef void (WINAPI *PhoneBookCallBack)(unsigned int, DWORD_PTR);
  60. CM_PHBK_DllExportV PhoneBookEnumCountries(DWORD_PTR dwPB, PhoneBookCallBack pfnCountry, PPBFS pFilter, DWORD_PTR dwParam);
  61. CM_PHBK_DllExportB PhoneBookGetCountryNameA(DWORD_PTR dwPB, unsigned int nIdx, LPSTR pszCountryName, DWORD *pdwCountryName);
  62. CM_PHBK_DllExportB PhoneBookGetCountryNameW(DWORD_PTR dwPB, unsigned int nIdx, LPWSTR pszCountryName, DWORD *pdwCountryName);
  63. CM_PHBK_DllExportD PhoneBookGetCountryId(DWORD_PTR dwPB, unsigned int nIdx);
  64. CM_PHBK_DllExportD PhoneBookGetCurrentCountryId();
  65. CM_PHBK_DllExportV PhoneBookEnumRegions(DWORD_PTR dwPB, PhoneBookCallBack pfnRegion, DWORD dwCountryID, PPBFS pFilter, DWORD_PTR dwParam);
  66. CM_PHBK_DllExportB PhoneBookGetRegionNameA(DWORD_PTR dwPB, unsigned int nIdx, LPSTR pszRegionName, DWORD *pdwRegionName);
  67. CM_PHBK_DllExportB PhoneBookGetRegionNameW(DWORD_PTR dwPB, unsigned int nIdx, LPWSTR pszRegionName, DWORD *pdwRegionName);
  68. CM_PHBK_DllExportB PhoneBookGetPhoneCanonicalA(DWORD_PTR dwPB, DWORD dwIdx, LPSTR pszPhoneNumber, DWORD *pdwPhoneNumber);
  69. CM_PHBK_DllExportB PhoneBookGetPhoneCanonicalW(DWORD_PTR dwPB, DWORD dwIdx, LPWSTR pszPhoneNumber, DWORD *pdwPhoneNumber);
  70. CM_PHBK_DllExportB PhoneBookGetPhoneNonCanonicalA(DWORD_PTR dwPB, DWORD dwIdx, LPSTR pszPhoneNumber, DWORD *pdwPhoneNumber);
  71. CM_PHBK_DllExportB PhoneBookGetPhoneNonCanonicalW(DWORD_PTR dwPB, DWORD dwIdx, LPWSTR pszPhoneNumber, DWORD *pdwPhoneNumber);
  72. CM_PHBK_DllExportB PhoneBookHasPhoneType(DWORD_PTR dwPB, PPBFS pFilter);
  73. CM_PHBK_DllExportD PhoneBookGetPhoneType(DWORD_PTR dwPB, unsigned int nIdx);
  74. CM_PHBK_DllExportB PhoneBookGetPhoneDUNA(DWORD_PTR dwPB, DWORD dwIdx, LPSTR pszDUN, DWORD *pdwDUN);
  75. CM_PHBK_DllExportB PhoneBookGetPhoneDUNW(DWORD_PTR dwPB, DWORD dwIdx, LPWSTR pszDUN, DWORD *pdwDUN);
  76. CM_PHBK_DllExportV PhoneBookEnumNumbers(DWORD_PTR dwPB, PhoneBookCallBack pfnNumber, DWORD dwCountryID, unsigned int nRegion,
  77. PPBFS pFilter, DWORD_PTR dwParam);
  78. CM_PHBK_DllExportV PhoneBookEnumNumbersWithRegionsZero(DWORD_PTR dwPB, PhoneBookCallBack pfnNumber, DWORD dwCountryID,
  79. PPBFS pFilter, DWORD_PTR dwParam);
  80. CM_PHBK_DllExportB PhoneBookGetPhoneDispA(DWORD_PTR dwPB, DWORD dwIdx, LPSTR pszDisp, DWORD *pdwDisp);
  81. CM_PHBK_DllExportB PhoneBookGetPhoneDispW(DWORD_PTR dwPB, DWORD dwIdx, LPWSTR pszDisp, DWORD *pdwDisp);
  82. CM_PHBK_DllExportB PhoneBookGetPhoneDescA(DWORD_PTR dwPB, DWORD dwIdx, LPSTR pszDesc, DWORD *pdwDesc);
  83. CM_PHBK_DllExportB PhoneBookGetPhoneDescW(DWORD_PTR dwPB, DWORD dwIdx, LPWSTR pszDesc, DWORD *pdwDesc);
  84. #define PhoneBookParseInfoRefFunc PhoneBookParseInfoRefFuncA
  85. #define PhoneBookParseInfoSvcFunc PhoneBookParseInfoSvcFuncA
  86. #define PhoneBookParseInfoStruct PhoneBookParseInfoStructA
  87. #define PhoneBookParseInfo PhoneBookParseInfoA
  88. #define PhoneBookGetCountryName PhoneBookGetCountryNameA
  89. #define PhoneBookGetRegionName PhoneBookGetRegionNameA
  90. #define PhoneBookGetPhoneCanonical PhoneBookGetPhoneCanonicalA
  91. #define PhoneBookGetPhoneNonCanonical PhoneBookGetPhoneNonCanonicalA
  92. #define PhoneBookGetPhoneDUN PhoneBookGetPhoneDUNA
  93. #define PhoneBookGetPhoneDisp PhoneBookGetPhoneDispA
  94. #define PhoneBookGetPhoneDesc PhoneBookGetPhoneDescA
  95. #endif