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.
78 lines
1.5 KiB
78 lines
1.5 KiB
/*++
|
|
|
|
Copyright (c) 1998-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
MultiSzHelper.h
|
|
|
|
Abstract:
|
|
|
|
Defines the CMultiSzHelper class
|
|
|
|
Author:
|
|
|
|
Mohit Srivastava 22-March-01
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _multiszhelper_h_
|
|
#define _multiszhelper_h_
|
|
|
|
#include <windows.h>
|
|
#include <comutil.h>
|
|
#include <wbemprov.h>
|
|
#include "schema.h"
|
|
#include "WbemServices.h"
|
|
#include "MultiSzData.h"
|
|
|
|
class CMultiSz
|
|
{
|
|
public:
|
|
CMultiSz(
|
|
METABASE_PROPERTY* i_pMbp,
|
|
CWbemServices* i_pNamespace);
|
|
|
|
CMultiSz();
|
|
|
|
virtual ~CMultiSz();
|
|
|
|
HRESULT ToMetabaseForm(
|
|
const VARIANT* i_pvt,
|
|
LPWSTR* o_msz,
|
|
PDWORD io_pdw);
|
|
|
|
HRESULT ToWmiForm(
|
|
LPCWSTR i_msz,
|
|
VARIANT* io_pvt);
|
|
|
|
private:
|
|
HRESULT CreateMultiSzFromSafeArray(
|
|
const VARIANT& i_vt,
|
|
WCHAR** o_pmsz,
|
|
DWORD* io_pdw);
|
|
|
|
HRESULT MzCat(
|
|
WCHAR** io_ppdst,
|
|
const WCHAR* i_psz);
|
|
|
|
HRESULT LoadSafeArrayFromMultiSz(
|
|
LPCWSTR i_msz,
|
|
VARIANT& io_vt);
|
|
|
|
HRESULT ParseEntry(
|
|
LPCWSTR i_wszEntry,
|
|
IWbemClassObject* io_pObj);
|
|
|
|
HRESULT UnparseEntry(
|
|
IWbemClassObject* i_pObj,
|
|
BSTR* o_pbstrEntry);
|
|
|
|
METABASE_PROPERTY* m_pMbp;
|
|
CWbemServices* m_pNamespace;
|
|
TFormattedMultiSz* m_pFormattedMultiSz;
|
|
};
|
|
|
|
#endif // _multiszhelper_h_
|