v4k-git-backup/tools/tcc-winapi/winapi/winber.h

49 lines
1.5 KiB
C
Raw Normal View History

/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
#ifndef _WINBER_DEFINED_
#define _WINBER_DEFINED_
#include "winldap.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef WINBERAPI
#define WINBERAPI DECLSPEC_IMPORT
#endif
#ifndef BERAPI
#define BERAPI __cdecl
#endif
#define LBER_ERROR 0xffffffffL
#define LBER_DEFAULT 0xffffffffL
typedef unsigned int ber_tag_t;
typedef int ber_int_t;
typedef unsigned int ber_uint_t;
typedef int ber_slen_t;
WINBERAPI BerElement *BERAPI ber_init(BERVAL *pBerVal);
WINBERAPI VOID BERAPI ber_free(BerElement *pBerElement,INT fbuf);
WINBERAPI VOID BERAPI ber_bvfree(BERVAL *pBerVal);
WINBERAPI VOID BERAPI ber_bvecfree(PBERVAL *pBerVal);
WINBERAPI BERVAL *BERAPI ber_bvdup(BERVAL *pBerVal);
WINBERAPI BerElement *BERAPI ber_alloc_t(INT options);
WINBERAPI ULONG BERAPI ber_skip_tag(BerElement *pBerElement,ULONG *pLen);
WINBERAPI ULONG BERAPI ber_peek_tag(BerElement *pBerElement,ULONG *pLen);
WINBERAPI ULONG BERAPI ber_first_element(BerElement *pBerElement,ULONG *pLen,CHAR **ppOpaque);
WINBERAPI ULONG BERAPI ber_next_element(BerElement *pBerElement,ULONG *pLen,CHAR *opaque);
WINBERAPI INT BERAPI ber_flatten(BerElement *pBerElement,PBERVAL *pBerVal);
WINBERAPI INT BERAPI ber_printf(BerElement *pBerElement,PCHAR fmt,...);
WINBERAPI ULONG BERAPI ber_scanf(BerElement *pBerElement,PCHAR fmt,...);
#ifdef __cplusplus
}
#endif
#endif