mingw-5.1.4/win32/include/dsquery.h
changeset 0 76b1f169d9fe
equal deleted inserted replaced
-1:000000000000 0:76b1f169d9fe
       
     1 /*
       
     2  * dsquery.h - Active Directory
       
     3  *
       
     4  * THIS SOFTWARE IS NOT COPYRIGHTED
       
     5  *
       
     6  * This source code is offered for use in the public domain.  You may use,
       
     7  * modify or distribute it freely.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful but
       
    10  * WITHOUT ANY WARRANTY.  ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
       
    11  * DISCLAIMED.  This includes but is not limited to warranties of
       
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       
    13  *
       
    14  */
       
    15 #ifndef _DSQUERY_H
       
    16 #define _DSQUERY_H
       
    17 #if __GNUC__ >= 3
       
    18 #pragma GCC system_header
       
    19 #endif
       
    20 
       
    21 #ifdef __cplusplus
       
    22 extern "C" {
       
    23 #endif
       
    24 
       
    25 /*--- Active Directory Reference - Active Directory Structures - Active Directory Display Structures */
       
    26 #if (_WIN32_WINNT >= 0x0500)
       
    27 typedef struct {
       
    28 	DWORD dwFlags;
       
    29 	INT fmt;
       
    30 	INT cx;
       
    31 	INT idsName;
       
    32 	LONG offsetProperty;
       
    33 	DWORD dwReserved;
       
    34 } DSCOLUMN,*LPDSCOLUMN;
       
    35 #define DSCOLUMNPROP_ADSPATH -1
       
    36 #define DSCOLUMNPROP_OBJECTCLASS -2
       
    37 typedef struct {
       
    38 	DWORD cbStruct;
       
    39 	LONG cClasses;
       
    40 	DWORD offsetClass[1];
       
    41 } DSQUERYCLASSLIST,*LPDSQUERYCLASSLIST;
       
    42 typedef struct {
       
    43 	DWORD cbStruct;
       
    44 	DWORD dwFlags;
       
    45 	LPWSTR pDefaultScope;
       
    46 	LPWSTR pDefaultSaveLocation;
       
    47 	LPWSTR pUserName;
       
    48 	LPWSTR pPassword;
       
    49 	LPWSTR pServer;
       
    50 } DSQUERYINITPARAMS,*LPDSQUERYINITPARAMS;
       
    51 #define DSQPF_NOSAVE 0x00000001
       
    52 #define DSQPF_SAVELOCATION 0x00000002
       
    53 #define DSQPF_SHOWHIDDENOBJECTS 0x00000004
       
    54 #define DSQPF_ENABLEADMINFEATURES 0x00000008
       
    55 #define DSQPF_ENABLEADVANCEDFEATURES 0x00000010
       
    56 #define DSQPF_HASCREDENTIALS 0x00000020
       
    57 #define DSQPF_NOCHOOSECOLUMNS 0x00000040
       
    58 typedef struct {
       
    59 	DWORD cbStruct;
       
    60 	DWORD dwFlags;
       
    61 	HINSTANCE hInstance;
       
    62 	LONG offsetQuery;
       
    63 	LONG iColumns;
       
    64 	DWORD dwReserved;
       
    65 	DSCOLUMN aColumns[1];
       
    66 } DSQUERYPARAMS,*LPDSQUERYPARAMS;
       
    67 #endif /* (_WIN32_WINNT >= 0x0500) */
       
    68 
       
    69 #ifdef __cplusplus
       
    70 }
       
    71 #endif
       
    72 #endif