[ros-diffs] [cwittich] 19231: implemented some stubs needed by ClamWin

cwittich at svn.reactos.com cwittich at svn.reactos.com
Mon Nov 14 23:44:58 CET 2005


implemented some stubs needed by ClamWin
Modified: trunk/reactos/lib/advapi32/advapi32.def
Modified: trunk/reactos/lib/advapi32/crypt/crypt.c
Modified: trunk/reactos/lib/advapi32/sec/sec.c
Modified: trunk/reactos/lib/advapi32/sec/sid.c
Modified: trunk/reactos/lib/advapi32/token/token.c
  _____  

Modified: trunk/reactos/lib/advapi32/advapi32.def
--- trunk/reactos/lib/advapi32/advapi32.def	2005-11-14 22:04:30 UTC
(rev 19230)
+++ trunk/reactos/lib/advapi32/advapi32.def	2005-11-14 22:44:36 UTC
(rev 19231)
@@ -84,8 +84,8 @@

 
;ConvertSecurityDescriptorToAccessNamedA=ConvertSecurityDescriptorToAcce
ssA at 28
 
;ConvertSecurityDescriptorToAccessNamedW=ConvertSecurityDescriptorToAcce
ssW at 28
 ;ConvertSecurityDescriptorToAccessW at 28
-;ConvertSecurityDescriptorToStringSecurityDescriptorA at 20
-;ConvertSecurityDescriptorToStringSecurityDescriptorW at 20
+ConvertSecurityDescriptorToStringSecurityDescriptorA at 20
+ConvertSecurityDescriptorToStringSecurityDescriptorW at 20
 ConvertSidToStringSidA at 8
 ConvertSidToStringSidW at 8
 ;ConvertStringSDToSDDomainA at 24
@@ -94,8 +94,8 @@
 ;ConvertStringSDToSDRootDomainW at 20
 ConvertStringSecurityDescriptorToSecurityDescriptorA at 16
 ConvertStringSecurityDescriptorToSecurityDescriptorW at 16
-;ConvertStringSidToSidA at 8
-;ConvertStringSidToSidW at 8
+ConvertStringSidToSidA at 8
+ConvertStringSidToSidW at 8
 ConvertToAutoInheritPrivateObjectSecurity at 24
 CopySid at 12
 ;CreateCodeAuthzLevel at 20
@@ -106,7 +106,7 @@
 ;CreateProcessAsUserSecure
 CreateProcessAsUserW at 44
 ;CreateProcessWithLogonW
-;CreateRestrictedToken at 36
+CreateRestrictedToken at 36
 CreateServiceA at 52
 CreateServiceW at 52
 ;CreateTraceInstanceId at 8
@@ -211,7 +211,7 @@
 EncryptFileA at 4
 EncryptFileW at 4
 ;EncryptedFileKeyInfo
-;EncryptionDisable at 8
+EncryptionDisable at 8
 EnumDependentServicesA at 24
 EnumDependentServicesW at 24
 EnumServiceGroupW at 36
  _____  

Modified: trunk/reactos/lib/advapi32/crypt/crypt.c
--- trunk/reactos/lib/advapi32/crypt/crypt.c	2005-11-14 22:04:30 UTC
(rev 19230)
+++ trunk/reactos/lib/advapi32/crypt/crypt.c	2005-11-14 22:44:36 UTC
(rev 19231)
@@ -1965,14 +1965,6 @@

 /*
  * @unimplemented
  */
-BOOL WINAPI EncryptionDisable (
-	LPCWSTR,
-	BOOL
-	);
-
-/*
- * @unimplemented
- */
 BOOL WINAPI FileEncryptionStatusW (
 	LPCWSTR lpcwstr,
 	LPDWORD lpdword
@@ -2031,3 +2023,17 @@
 	DPRINT1("%s() not implemented!\n", __FUNCTION__);
 	return ERROR_CALL_NOT_IMPLEMENTED;
 }
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI EncryptionDisable(
+    LPCWSTR DirPath,
+    BOOL Disable
+    )
+{
+	DPRINT1("%s() not implemented!\n", __FUNCTION__);
+	return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+
  _____  

Modified: trunk/reactos/lib/advapi32/sec/sec.c
--- trunk/reactos/lib/advapi32/sec/sec.c	2005-11-14 22:04:30 UTC
(rev 19230)
+++ trunk/reactos/lib/advapi32/sec/sec.c	2005-11-14 22:44:36 UTC
(rev 19231)
@@ -558,4 +558,26 @@

     return ERROR_CALL_NOT_IMPLEMENTED;
 }
 
+BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(
+    PSECURITY_DESCRIPTOR pSecurityDescriptor, 
+    DWORD dword, 
+    SECURITY_INFORMATION SecurityInformation, 
+    LPWSTR* lpwstr,
+    PULONG pulong)
+{
+    DPRINT1("%s() not implemented!\n", __FUNCTION__);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
+BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorA(
+    PSECURITY_DESCRIPTOR pSecurityDescriptor, 
+    DWORD dword, 
+    SECURITY_INFORMATION SecurityInformation, 
+    LPSTR* lpstr,
+    PULONG pulong)
+{
+    DPRINT1("%s() not implemented!\n", __FUNCTION__);
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
 /* EOF */
  _____  

Modified: trunk/reactos/lib/advapi32/sec/sid.c
--- trunk/reactos/lib/advapi32/sec/sid.c	2005-11-14 22:04:30 UTC
(rev 19230)
+++ trunk/reactos/lib/advapi32/sec/sid.c	2005-11-14 22:44:36 UTC
(rev 19231)
@@ -1039,4 +1039,40 @@

 }
 
 
+/*
+ * @implemented
+ */
+BOOL STDCALL
+ConvertStringSidToSidA(
+                IN LPCSTR StringSid,
+                OUT PSID* sid)
+{
+    BOOL bRetVal = FALSE;
+
+    if (!StringSid || !sid)
+        SetLastError(ERROR_INVALID_PARAMETER);
+    else
+    {
+        UINT len = MultiByteToWideChar(CP_ACP, 0, StringSid, -1, NULL,
0);
+        LPWSTR wStringSid = HeapAlloc(GetProcessHeap(), 0, len *
sizeof(WCHAR));
+        MultiByteToWideChar(CP_ACP, 0, StringSid, - 1, wStringSid,
len);
+        bRetVal = ConvertStringSidToSidW(wStringSid, sid);
+        HeapFree(GetProcessHeap(), 0, wStringSid);
+    }
+    return bRetVal;
+}
+
+/*
+ * @unimplemented
+ */
+BOOL STDCALL
+ConvertStringSidToSidW(
+                IN LPCWSTR StringSid,
+                OUT PSID* sid)
+{
+    FIXME("unimplemented!\n", __FUNCTION__);
+    return FALSE;
+}
+
+
 /* EOF */
  _____  

Modified: trunk/reactos/lib/advapi32/token/token.c
--- trunk/reactos/lib/advapi32/token/token.c	2005-11-14 22:04:30 UTC
(rev 19230)
+++ trunk/reactos/lib/advapi32/token/token.c	2005-11-14 22:44:36 UTC
(rev 19231)
@@ -11,6 +11,7 @@

 #include <advapi32.h>
 
 #define NDEBUG
+#include <wine/debug.h>
 #include <debug.h>
 
 /*
@@ -575,4 +576,23 @@
   return Ret;
 }
 
+BOOL STDCALL 
+CreateRestrictedToken(
+            HANDLE TokenHandle,
+            DWORD Flags,
+            DWORD DisableSidCount,
+            PSID_AND_ATTRIBUTES pSidAndAttributes,
+            DWORD DeletePrivilegeCount,
+            PLUID_AND_ATTRIBUTES pLUIDAndAttributes,
+            DWORD RestrictedSidCount,
+            PSID_AND_ATTRIBUTES pSIDAndAttributes,
+            PHANDLE NewTokenHandle
+)
+{
+    FIXME("unimplemented!\n", __FUNCTION__);
+    return FALSE;
+}
+
+
+
 /* EOF */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051114/290786bb/attachment.html


More information about the Ros-diffs mailing list