RIP BOOL. Convert BOOL -> bool. I found a few interesting
[nivanova/samba-autobuild/.git] / source3 / include / libmsrpc.h
index 274136537306be8d6e84968cfa576016d6fe72c1..3f2a7260ca08b56769afb56c71454343929c2db7 100644 (file)
@@ -6,7 +6,7 @@
  *  
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation; either version 3 of the License, or
  *  (at your option) any later version.
  *  
  *  This program is distributed in the hope that it will be useful,
@@ -15,8 +15,7 @@
  *  GNU General Public License for more details.
  *  
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef LIBMSRPC_H
@@ -185,7 +184,7 @@ typedef struct _CACLOOKUPRIDSRECORD {
    uint32 type;
    
    /*if the name or RID was looked up, then found = True*/
-   BOOL found;
+   bool found;
 } CacLookupRidsRecord;
 
 typedef struct _CACUSERINFO {
@@ -229,7 +228,7 @@ typedef struct _CACUSERINFO {
    uint16 logon_count;
 
    /**Change password at next logon?*/
-   BOOL pass_must_change;
+   bool pass_must_change;
 
    /**Username*/
    char *username;
@@ -465,7 +464,7 @@ void cac_Init(int debug);
  * @return - un-initialized server handle
  *         - NULL if no memory could be allocated
  */
-CacServerHandle * cac_NewServerHandle(BOOL allocate_fields);
+CacServerHandle * cac_NewServerHandle(bool allocate_fields);
 
 /**
  * Specifies the smbc_get_auth_data_fn to use if you do not want to use the default.
@@ -554,7 +553,7 @@ struct LsaOpenPolicy {
       uint32 access;
 
       /**Use security quality of service? (True/False)*/
-      BOOL security_qos;
+      bool security_qos;
    } in;
 
    /**Outputs*/
@@ -704,7 +703,7 @@ struct LsaQueryInfoPolicy {
       char *forest_name;
 
       /**remote server's domain guid*/
-      struct uuid *domain_guid;
+      struct GUID *domain_guid;
 
       /**remote server's domain SID*/
       DOM_SID *domain_sid;
@@ -999,8 +998,6 @@ struct LsaRemovePrivileges {
 
    } in;
 
-   struct {
-   } out;
 };
 
 /** 
@@ -1025,8 +1022,6 @@ struct LsaClearPrivileges {
       char *name;
    } in;
 
-   struct {
-   } out;
 };
 
 /** 
@@ -1243,7 +1238,7 @@ struct RegDeleteKey {
       char *name;
 
       /**delete recursively. WARNING: this might not always work as planned*/
-      BOOL recursive;
+      bool recursive;
    } in;
 
 };
@@ -1581,10 +1576,10 @@ struct Shutdown {
       uint32 timeout;
 
       /**False = shutdown, True = reboot*/
-      BOOL reboot;
+      bool reboot;
       
       /**force the*/
-      BOOL force;
+      bool force;
 
       /*FIXME: make this useful*/
       uint32 reason;
@@ -1765,7 +1760,7 @@ struct SamEnumUsers {
       POLICY_HND *dom_hnd;
 
       /**Enumerate users with specific ACB. If 0, all users will be enumerated*/
-      uint16 acb_mask;
+      uint32 acb_mask;
    } in;
 
    struct {
@@ -1781,7 +1776,7 @@ struct SamEnumUsers {
       /**Array storing the names of all the users returned*/
       char **names;
 
-      BOOL done;
+      bool done;
    } out;
 };
 
@@ -2073,7 +2068,7 @@ struct SamEnumGroups {
       /**Array storing the descriptions of all the groups returned*/
       char **descriptions;
 
-      BOOL done;
+      bool done;
    } out;
 };
 
@@ -2109,7 +2104,7 @@ struct SamEnumAliases {
       /**Array storing the descriptions of all the groups returned*/
       char **descriptions;
 
-      BOOL done;
+      bool done;
    } out;
 };
 
@@ -2639,7 +2634,7 @@ struct SamGetDisplayInfo {
       /**Internal value. Do not modify.*/
       uint32 loop_count;
 
-      BOOL done;
+      bool done;
    } out;
 };