home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / TSSUTIL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  4.7 KB  |  107 lines

  1. #ifndef TSSUTIL_H
  2. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  3. #define TSSUTIL_H
  4.  
  5. #include <bpcreg.h>
  6.  
  7. const int g_nMaxNameLen = 64;
  8.  
  9. extern const LPCTSTR g_strRestrictSuffix;
  10.  
  11. extern const LPCTSTR g_strAdultsGrp;
  12. extern const LPCTSTR g_strUsersGrp;
  13. extern const LPCTSTR g_strGuestAccountName;
  14. extern const LPCTSTR g_strRestrictQueryOwner;
  15. extern const LPCTSTR g_strRestrictQueryBase;
  16. extern const LPCTSTR g_strQueryBase;
  17.  
  18.  
  19. #ifdef _AFX
  20. CString TSS_RestrictionQueryName(LPCTSTR UserName);
  21. #endif
  22. void TSS_RestrictionQueryName(LPCTSTR UserName, TCHAR sz[g_nMaxNameLen]);
  23.  
  24. #ifdef _AFX
  25. CString TSS_GetProductDir();
  26. #endif
  27. void TSS_GetProductDir(TCHAR sz[MAX_PATH]);
  28.  
  29. #ifdef _AFX
  30. CString TSS_GetSystemFile();
  31. #endif
  32. void TSS_GetSystemFile(TCHAR sz[MAX_PATH]);
  33.  
  34. #ifdef _AFX
  35. CString TSS_GetDatabaseFile();
  36. CString TSS_GetDatabaseReplacementFile(VOID);
  37. CString TSS_GetEPGDatabaseFile();
  38. CString TSS_GetAMFilter();
  39. void TSS_GetDefaultVBITuning(long &lTS, long &lChan);
  40. BOOL TSS_GetTuningSpaceInfo(const long lTS, CLSID &cid, DWORD &dwInputType);
  41. void TSS_GetLoaderName(const CString &csGuid, CString &csLoaderName);
  42. long TSS_FindSType(ULONG ulTuningSpace, BYTE ubLCID);
  43. void TSS_MkDeviceName(ULONG ulVendorId, ULONG ulDeviceId, CString &Name);
  44. HRESULT TSS_FindProvider(ULONG ulVendorId, ULONG ulDeviceId, CString &csProviderDll, CString &csProviderDesc);
  45. #endif
  46. const DWORD DEFVOL = 5000;
  47. const DWORD DEFBAL = 0;
  48.  
  49. void TSS_GetAudio(LPCTSTR szDevName, DWORD &Vol, DWORD &Bal);
  50. void TSS_SetAudio(LPCTSTR szDevName, DWORD Vol, DWORD Bal);
  51. DWORD TSS_GetCountryCode(void);
  52. // get tuning space number from active movie filter class id
  53. BOOLEAN TSS_GetAMFilter(TCHAR sz[MAX_PATH]);
  54. void TSS_GetDatabaseFile(TCHAR sz[MAX_PATH]);
  55. BOOL TSS_GetDatabaseReplacementFile(TCHAR sz[MAX_PATH]);
  56. void TSS_GetEPGDatabaseFile(TCHAR sz[MAX_PATH]);
  57. BOOLEAN TSS_GetLoaderName(LPCTSTR szGuid, LPTSTR szLoaderName, DWORD &dwSize);
  58. BOOLEAN TSS_GetTuningIDs(LPCTSTR szGuid, DWORD *dwTuningID, DWORD &dwBytes);
  59. BOOLEAN TSS_SetAMFilter(TCHAR sz[MAX_PATH]);
  60. BOOLEAN TSS_SetLoaderAttempt(LPCTSTR szGuid);
  61. BOOLEAN TSS_SetLoaderCompletion(LPCTSTR szGuid, DWORD dwResult);
  62. // global
  63. BOOLEAN TSS_GetLoaderAttempt(LPTSTR szGuid, DWORD *pcbLen, SYSTEMTIME *pstTime);
  64. BOOLEAN TSS_GetLoaderCompletion(LPTSTR szGuid, DWORD *pcbLen, SYSTEMTIME *pstTime, DWORD *pdwResult);
  65. // specific loader
  66. BOOLEAN TSS_GetLoaderAttempt(LPCTSTR szGuid, SYSTEMTIME *pstTime);
  67. BOOLEAN TSS_GetLoaderCompletion(LPCTSTR szGuid, SYSTEMTIME *pstTime, DWORD *pdwResult);
  68. BOOLEAN TSS_GetDTVLoaderCSSByte(LPCTSTR szGuid, BYTE *pbCSSByte);
  69. BOOLEAN TSS_SetDTVLoaderCSSByte(LPCTSTR szGuid, BYTE *pbCSSByte);
  70. BOOLEAN TSS_GetLoaderReadPrefix(LPCTSTR szGuid, LPTSTR szPrefix, DWORD &dwSize);
  71. BOOLEAN TSS_GetLoaderWritePrefix(LPCTSTR szGuid, LPTSTR szPrefix, DWORD &dwSize);
  72. BOOLEAN TSS_GetLoaderReadFile(LPCTSTR szGuid, LPTSTR szReadFile, DWORD dwSize);
  73. BOOLEAN TSS_SetLoaderReadFile(LPCTSTR szGuid, LPTSTR szReadFile);
  74. BOOLEAN TSS_GetSSLoaderRegionID(LPCTSTR szGuid, DWORD *pdwRegion);
  75. BOOLEAN TSS_SetSSLoaderRegionID(LPCTSTR szGuid, DWORD dwRegion);
  76. BOOLEAN TSS_GetSSLoaderScanReturnCode(LPCTSTR szGuid, DWORD *pdwScanReturnCode);
  77. BOOLEAN TSS_SetSSLoaderScanReturnCode(LPCTSTR szGuid, DWORD dwScanReturnCode);
  78. BOOLEAN TSS_GetSSLoaderChannel(LPCTSTR szGuid, DWORD *pdwChannel);
  79. BOOLEAN TSS_SetSSLoaderChannel(LPCTSTR szGuid, DWORD dwChannel);
  80. BOOLEAN TSS_GetSSLoaderLine(LPCTSTR szGuid, DWORD *pdwLine);
  81. BOOLEAN TSS_SetSSLoaderLine(LPCTSTR szGuid, DWORD dwLine);
  82. BOOLEAN TSS_GetLoaderPostalCode(LPTSTR szPostalCode, DWORD cb);
  83. BOOLEAN TSS_SetLoaderPostalCode(LPCTSTR szPostalCode);
  84. BOOLEAN TSS_GetSSLoaderListenReturnCode(LPCTSTR szGuid, DWORD *pdwListenReturnCode);
  85. BOOLEAN TSS_SetSSLoaderListenReturnCode(LPCTSTR szGuid, DWORD dwListenReturnCode);
  86. BOOLEAN TSS_GetSSLoaderListenReturnCodeCount(LPCTSTR szGuid, DWORD *pdwListenReturnCodeCount);
  87. BOOLEAN TSS_SetSSLoaderListenReturnCodeCount(LPCTSTR szGuid, DWORD dwListenReturnCodeCount);
  88.  
  89. void TSS_ThrowOleDispatchException(SCODE sc, LPCTSTR lpszDescription = NULL, UINT nHelpID = 0, WORD wCode = 0, LPCTSTR szHelpFile = NULL, LPCTSTR szSource = NULL);
  90. void TSS_ThrowOleDispatchException(SCODE sc, UINT nDescriptionID = 0, UINT nHelpID = 0, WORD wCode = 0, LPCTSTR szHelpFile = NULL, LPCTSTR szSource = NULL);
  91. void TSS_ThrowOleDispatchException(LPEXCEPINFO pInfo);
  92.  
  93. void TSS_BracketizeTableOrQuery(TCHAR sz[g_nMaxNameLen]);
  94.  
  95. BOOL TSS_IsValidUserName(LPCTSTR szUserName);
  96.  
  97. #if defined(_AFX) && defined(__AFXDAO_H)
  98. void ThrowDispatchExceptFromDaoExcept(CDaoException *e);
  99. #endif
  100.  
  101. #if defined(_DEBUG) && defined(_AFX)
  102. void TSS_GetTraceLevel(int iAppNameSID, DWORD &dwTraceLevel);
  103. #endif
  104.  
  105. #pragma option pop /*P_O_Pop*/
  106. #endif // TSSUTIL_H
  107.