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.

54 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. helper.h
  7. This file defines the following macros helper classes and functions:
  8. IASGetSdoInterfaceProperty()
  9. FILE HISTORY:
  10. 2/18/98 byao Created
  11. */
  12. #ifndef _IASHELPER_
  13. #define _IASHELPER_
  14. // According to ToddP on 5/20, maximum length for ANY attribute value is 253
  15. #define MAX_ATTRIBUTE_VALUE_LEN 253
  16. // SDO helper functions
  17. extern HRESULT IASGetSdoInterfaceProperty(ISdo *pISdo,
  18. LONG lPropID,
  19. REFIID riid,
  20. void ** ppvInterface);
  21. LPTSTR GetValidVSAHexString(LPCTSTR tszStr);
  22. HRESULT GetVendorSpecificInfo(::CString& strValue,
  23. DWORD& dVendorId,
  24. BOOL& fNonRFC,
  25. DWORD& dFormat,
  26. DWORD& dType,
  27. ::CString& strDispValue);
  28. HRESULT SetVendorSpecificInfo(::CString& strValue,
  29. DWORD& dVendorId,
  30. BOOL& fNonRFC,
  31. DWORD& dFormat,
  32. DWORD& dType,
  33. ::CString& strDispValue);
  34. void DDV_BoolStr(CDataExchange* pDX, ::CString& strText);
  35. void DDV_IntegerStr(CDataExchange* pDX, ::CString& strText);
  36. void DDV_Unsigned_IntegerStr(CDataExchange* pDX, ::CString& strText);
  37. void DDV_VSA_HexString(CDataExchange* pDX, ::CString& strText);
  38. size_t BinaryToHexString(char* pData, size_t cch, TCHAR* pStr, size_t ctLen);
  39. size_t HexStringToBinary(TCHAR* pStr, char* pData, size_t cch);
  40. #endif // _IASHELPER_