Commit in reactos/lib/advapi32/sec on MAIN
trustee.c+135-51.2 -> 1.3
Implement simple trustee functions:
 - BuildImpersonateTrustee[A/W]
 - GetMultipleTrustee[A/W]
 - GetMultipleTrusteeOperation[A/W]
 - GetTrusteeForm[A/W]
 - GetTrusteeName[A/W]
 - GetTrusteeType[A/W]

reactos/lib/advapi32/sec
trustee.c 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- trustee.c	12 Dec 2004 15:16:49 -0000	1.2
+++ trustee.c	15 Dec 2004 12:29:13 -0000	1.3
@@ -1,4 +1,4 @@
-/* $Id: trustee.c,v 1.2 2004/12/12 15:16:49 ekohl Exp $
+/* $Id: trustee.c,v 1.3 2004/12/15 12:29:13 ekohl Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -13,9 +13,34 @@
 
 
 /******************************************************************************
+ * BuildImpersonateTrusteeA [ADVAPI32.@]
+ */
+VOID WINAPI
+BuildImpersonateTrusteeA(PTRUSTEE_A pTrustee,
+                         PTRUSTEE_A pImpersonateTrustee)
+{
+  pTrustee->pMultipleTrustee = pImpersonateTrustee;
+  pTrustee->MultipleTrusteeOperation = TRUSTEE_IS_IMPERSONATE;
+}
+
+
+/******************************************************************************
+ * BuildImpersonateTrusteeW [ADVAPI32.@]
+ */
+VOID WINAPI
+BuildImpersonateTrusteeW(PTRUSTEE_W pTrustee,
+                         PTRUSTEE_W pImpersonateTrustee)
+{
+  pTrustee->pMultipleTrustee = pImpersonateTrustee;
+  pTrustee->MultipleTrusteeOperation = TRUSTEE_IS_IMPERSONATE;
+}
+
+
+/******************************************************************************
  * BuildTrusteeWithSidA [ADVAPI32.@]
  */
-VOID WINAPI BuildTrusteeWithSidA(PTRUSTEEA pTrustee, PSID pSid)
+VOID WINAPI
+BuildTrusteeWithSidA(PTRUSTEE_A pTrustee, PSID pSid)
 {
     DPRINT("%p %p\n", pTrustee, pSid);
 
@@ -30,7 +55,8 @@
 /******************************************************************************
  * BuildTrusteeWithSidW [ADVAPI32.@]
  */
-VOID WINAPI BuildTrusteeWithSidW(PTRUSTEEW pTrustee, PSID pSid)
+VOID WINAPI
+BuildTrusteeWithSidW(PTRUSTEE_W pTrustee, PSID pSid)
 {
     DPRINT("%p %p\n", pTrustee, pSid);
 
@@ -45,7 +71,8 @@
 /******************************************************************************
  * BuildTrusteeWithNameA [ADVAPI32.@]
  */
-VOID WINAPI BuildTrusteeWithNameA(PTRUSTEEA pTrustee, LPSTR name)
+VOID WINAPI
+BuildTrusteeWithNameA(PTRUSTEE_A pTrustee, LPSTR name)
 {
     DPRINT("%p %s\n", pTrustee, name);
 
@@ -60,7 +87,8 @@
 /******************************************************************************
  * BuildTrusteeWithNameW [ADVAPI32.@]
  */
-VOID WINAPI BuildTrusteeWithNameW(PTRUSTEEW pTrustee, LPWSTR name)
+VOID WINAPI
+BuildTrusteeWithNameW(PTRUSTEE_W pTrustee, LPWSTR name)
 {
     DPRINT("%p %s\n", pTrustee, name);
 
@@ -70,3 +98,105 @@
     pTrustee->TrusteeType = TRUSTEE_IS_UNKNOWN;
     pTrustee->ptstrName = name;
 }
+
+
+/******************************************************************************
+ * GetMultipleTrusteeA [ADVAPI32.@]
+ */
+PTRUSTEEA WINAPI
+GetMultipleTrusteeA(PTRUSTEE_A pTrustee)
+{
+  return pTrustee->pMultipleTrustee;
+}
+
+
+/******************************************************************************
+ * GetMultipleTrusteeW [ADVAPI32.@]
+ */
+PTRUSTEEW WINAPI
+GetMultipleTrusteeW(PTRUSTEE_W pTrustee)
+{
+  return pTrustee->pMultipleTrustee;
+}
+
+
+/******************************************************************************
+ * GetMultipleTrusteeOperationA [ADVAPI32.@]
+ */
+MULTIPLE_TRUSTEE_OPERATION WINAPI
+GetMultipleTrusteeOperationA(PTRUSTEE_A pTrustee)
+{
+  return pTrustee->MultipleTrusteeOperation;
+}
+
+
+/******************************************************************************
+ * GetMultipleTrusteeOperationW [ADVAPI32.@]
+ */
+MULTIPLE_TRUSTEE_OPERATION WINAPI
+GetMultipleTrusteeOperationW(PTRUSTEE_W pTrustee)
+{
+  return pTrustee->MultipleTrusteeOperation;
+}
+
+
+/******************************************************************************
+ * GetTrusteeFormW [ADVAPI32.@]
+ */
+TRUSTEE_FORM WINAPI
+GetTrusteeFormA(PTRUSTEE_A pTrustee)
+{
+  return pTrustee->TrusteeForm;
+}
+
+
+/******************************************************************************
+ * GetTrusteeFormW [ADVAPI32.@]
+ */
+TRUSTEE_FORM WINAPI
+GetTrusteeFormW(PTRUSTEE_W pTrustee)
+{
+  return pTrustee->TrusteeForm;
+}
+
+
+/******************************************************************************
+ * GetTrusteeNameA [ADVAPI32.@]
+ */
+LPSTR WINAPI
+GetTrusteeNameA(PTRUSTEE_A pTrustee)
+{
+  return (pTrustee->TrusteeForm == TRUSTEE_IS_NAME) ? pTrustee->ptstrName : NULL;
+}
+
+
+/******************************************************************************
+ * GetTrusteeNameW [ADVAPI32.@]
+ */
+LPWSTR WINAPI
+GetTrusteeNameW(PTRUSTEE_W pTrustee)
+{
+  return (pTrustee->TrusteeForm == TRUSTEE_IS_NAME) ? pTrustee->ptstrName : NULL;
+}
+
+
+/******************************************************************************
+ * GetTrusteeTypeA [ADVAPI32.@]
+ */
+TRUSTEE_TYPE WINAPI
+GetTrusteeTypeA(PTRUSTEE_A pTrustee)
+{
+  return pTrustee->TrusteeType;
+}
+
+
+/******************************************************************************
+ * GetTrusteeTypeW [ADVAPI32.@]
+ */
+TRUSTEE_TYPE WINAPI
+GetTrusteeTypeW(PTRUSTEE_W pTrustee)
+{
+  return pTrustee->TrusteeType;
+}
+
+/* EOF */
CVSspam 0.2.8