mirror of https://github.com/tongzx/nt5src
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.
104 lines
1.7 KiB
104 lines
1.7 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1995.
|
|
//
|
|
// File: nt2var.hxx
|
|
//
|
|
// Contents: NDS Object to Variant Copy Routines
|
|
//
|
|
// Functions:
|
|
//
|
|
// History: 06/12/1996 RamV Created.
|
|
// cloned from nds code
|
|
//
|
|
// Issues: Check null ptrs for AllocADsMem and AllocADsStr
|
|
//
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
typedef VARIANT *PVARIANT, *LPVARIANT;
|
|
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyBOOL(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopySYSTEMTIME(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyDWORD(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyDATE(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyLPTSTR(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyNulledString(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyDelimitedString(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NTTypeToVarTypeCopyDATE70(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NtTypeToVarTypeCopy(
|
|
PNTOBJECT pNTSrcValue,
|
|
PVARIANT lpVarDestObject
|
|
);
|
|
|
|
HRESULT
|
|
NtTypeToVarTypeCopyConstruct(
|
|
LPNTOBJECT pNTSrcObjects,
|
|
DWORD dwNumObjects,
|
|
PVARIANT pVarDestObjects
|
|
);
|
|
|
|
|
|
void
|
|
VarTypeFreeVarObjects(
|
|
PVARIANT pVarObject,
|
|
DWORD dwNumValues
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|