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