windows-nt/Source/XPSP1/NT/net/ias/services/inc/attrcvt.h

51 lines
1,023 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1998, Microsoft Corp. All rights reserved.
//
// FILE
//
// attrcvt.h
//
// SYNOPSIS
//
// This file declares methods for converting attributes to
// different formats.
//
// MODIFICATION HISTORY
//
// 02/26/1998 Original version.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef _ATTRCVT_H_
#define _ATTRCVT_H_
#if _MSC_VER >= 1000
#pragma once
#endif
#include <iaspolcy.h>
#include <winldap.h>
//////////
// Convert a variant to a newly allocated IASATTRIBUTE. The source variant
// will be coerced to the appropriate type.
//////////
PIASATTRIBUTE
WINAPI
IASAttributeFromVariant(
VARIANT* src,
IASTYPE type
) throw (_com_error);
//////////
// Convert an LDAP berval to a newly allocated IASATTRIBUTE.
//////////
PIASATTRIBUTE
WINAPI
IASAttributeFromBerVal(
const berval& src,
IASTYPE type
) throw (_com_error);
#endif // _ATTRCVT_H_