compile insert rti_OS_User_Equates
/*
   ** Copyright (C) 1992-2023 Revelation Software Inc. All Rights Reserved **
   
   Author   : Captain C
   Date     : September 2017
   Purpose  : Constants for use with the UserMethod functions in RevOS.dll
   
   Comments
   ========
   
   Amended  Date       Reason
   =======  ====       ======
   Mr C     30 Mar 23  Moved internal equates to RTI_OS_USER. 
                       Added GetComputerNameInfo equates

*/
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef _RTI_OS_USER_EQUATES_
#define _RTI_OS_USER_EQUATES_
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   declare function rti_OSUserMethod
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
   
   // UserMethod() error codes 
   equ REVOS_USERMTD_ERR_NETAPI$          to -1;
   equ REVOS_USERMTD_ERR_NODOMAIN$        to -2;
   equ REVOS_USERMTD_ERR_BADDOMAIN$       to -3;
   equ REVOS_USERMTD_ERR_BADFLAGS$        to -4;
   equ REVOS_USERMTD_ERR_BADLEVEL$        to -5;
   equ REVOS_USERMTD_ERR_USERNOTFOUND$    to -6;
   equ REVOS_USERMTD_ERR_INTERNAL$        to -7;
   equ REVOS_USERMTD_ERR_BADNETPATH$      to -8;
   equ REVOS_USERMTD_ERR_BADSVRNAME$      to -9;
   equ REVOS_USERMTD_ERR_DCNOTFOUND$      to -10;
   equ REVOS_USERMTD_ERR_NORPCSVR$        to -11;
   
///////////////////////////////////////////////////////////////////////////////

   // UserMethod GetComputerNameInfo return array structure (@fm'd)
   //
   //    <1> NetBIOS name
   //    <2> DNS host name
   //    <3> DNS domain name
   //    <4> DNS fully qualified name
   //    <5> Physical NetBIOS name
   //    <6> Physical DNS host name
   //    <7> Physical DNS domain name
   //    <8> Physical DNS fully qualified name
   //
   // See the Windows API GetComputerNameEx function for more info
   
   equ REVOS_GDI_POS_NETBIOSNAME$         to 1
   equ REVOS_GDI_POS_DNSHOSTNAME$         to 2
   equ REVOS_GDI_POS_DNSDOMAINNAME$       to 3
   equ REVOS_GDI_POS_DNSFULLQUALNAME$     to 4
   equ REVOS_GDI_POS_PHYNETBIOSNAME$      to 5
   equ REVOS_GDI_POS_PHYDNSHOSTNAME$      to 6 
   equ REVOS_GDI_POS_PHYDNSDOMAINNAME$    to 7
   equ REVOS_GDI_POS_PHYDNSFULLQUALNAME$  to 8
   
///////////////////////////////////////////////////////////////////////////////

   // UserMethod GetUserNameInfo return array structure (@fm'd)
   //
   //    <1> SamCompatible       : A legacy account name (for example, Engineering\JSmith).
   //    <2> Display             : A "friendly" display name (for example, Jeff Smith).
   //    <3> DnsDomain           : The DNS domain name followed by a backward-slash and the SAM user name.
   //    <4> FullyQualifiedDN    : The fully qualified distinguished name (for example, CN=Jeff Smith,OU=Users,DC=Engineering,DC=Microsoft,DC=Com).
   //    <5> Canonical           : The complete canonical name (for example, engineering.microsoft.com/software/someone)
   //    <6> Principal           : The user principal name (for example, someone@example.com).
   //    <7> ServicePrincipal    : The generalized service principal name (for example, www/www.microsoft.com@microsoft.com).
   //
   // See the Windows API GetUserNameEx function for more info
   
   equ REVOS_GUI_POS_SAMCOMPATIBLE$       to 1 
   equ REVOS_GUI_POS_DISPLAY$             to 2
   equ REVOS_GUI_POS_DNSDOMAIN$           to 3
   equ REVOS_GUI_POS_FULLYQUALIFIEDDN$    to 4
   equ REVOS_GUI_POS_CANONICAL$           to 5
   equ REVOS_GDI_POS_PRINCIPLE$           to 6
   equ REVOS_GUI_POS_SERVICEPRINCIPLE$    to 7
   
///////////////////////////////////////////////////////////////////////////////

   // UserMethod GetUserGroups method - uFlags parameter
   equ REVOS_GUG_USE_AD$                  to 0x00000001; // Not supported yet
   equ REVOS_GUG_LOCAL$                   to 0x00000002;
   
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#endif
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
