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.

40 lines
636 B

  1. //
  2. // Copyright 1997 - Microsoft
  3. //
  4. //
  5. // VARCONV.CPP - Handlers for converting from/to VARIANTs.
  6. //
  7. #ifndef _VARCONV_H_
  8. #define _VARCONV_H_
  9. HRESULT
  10. StringArrayToVariant(
  11. VARIANT * pvData,
  12. LPWSTR lpszDatap[], // array of LPWSTRs
  13. DWORD dwCount ); // number of items in the array
  14. HRESULT
  15. PackStringToVariant(
  16. VARIANT * pvData,
  17. LPWSTR lpszData );
  18. HRESULT
  19. PackBytesToVariant(
  20. VARIANT* pvData,
  21. LPBYTE lpData,
  22. DWORD cbBytes );
  23. HRESULT
  24. PackDWORDToVariant(
  25. VARIANT * pvData,
  26. DWORD dwData );
  27. HRESULT
  28. PackBOOLToVariant(
  29. VARIANT * pvData,
  30. BOOL fData );
  31. #endif // _VARCONV_H_