[ADVAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 17 Oct 2010 15:01:46 +0000 (15:01 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 17 Oct 2010 15:01:46 +0000 (15:01 +0000)
Move the Encrypted File System (EFS) functions into their own file.

svn path=/trunk/; revision=49184

reactos/dll/win32/advapi32/advapi32.rbuild
reactos/dll/win32/advapi32/misc/efs.c [new file with mode: 0644]
reactos/dll/win32/advapi32/sec/sec.c

index 17e120b..22e1a69 100644 (file)
@@ -28,6 +28,7 @@
        </directory>
        <directory name="misc">
                        <file>dllmain.c</file>
+                       <file>efs.c</file>
                        <file>hwprofiles.c</file>
                        <file>logon.c</file>
                        <file>msi.c</file>
diff --git a/reactos/dll/win32/advapi32/misc/efs.c b/reactos/dll/win32/advapi32/misc/efs.c
new file mode 100644 (file)
index 0000000..11fb8e5
--- /dev/null
@@ -0,0 +1,85 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         ReactOS system libraries
+ * FILE:            dlls/win32/advapi32/misc/efs.c
+ * PURPOSE:         Encrypted File System support
+ * PROGRAMMER:      Christoph_vW
+ */
+
+#include <advapi32.h>
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(advapi);
+
+
+/*
+ * @implemented
+ */
+BOOL WINAPI
+DecryptFileA(LPCSTR lpFileName, DWORD dwReserved)
+{
+    UNICODE_STRING FileName;
+    NTSTATUS Status;
+    BOOL ret;
+
+    Status = RtlCreateUnicodeStringFromAsciiz(&FileName, lpFileName);
+    if (!NT_SUCCESS(Status))
+    {
+        SetLastError(RtlNtStatusToDosError(Status));
+        return FALSE;
+    }
+
+    ret = DecryptFileW(FileName.Buffer, dwReserved);
+
+    if (FileName.Buffer != NULL)
+        RtlFreeUnicodeString(&FileName);
+    return ret;
+}
+
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD dwReserved)
+{
+    FIXME("%s(%S) not implemented!\n", __FUNCTION__, lpFileName);
+    return TRUE;
+}
+
+
+/*
+ * @implemented
+ */
+BOOL WINAPI
+EncryptFileA(LPCSTR lpFileName)
+{
+    UNICODE_STRING FileName;
+    NTSTATUS Status;
+    BOOL ret;
+
+    Status = RtlCreateUnicodeStringFromAsciiz(&FileName, lpFileName);
+    if (!NT_SUCCESS(Status))
+    {
+        SetLastError(RtlNtStatusToDosError(Status));
+        return FALSE;
+    }
+
+    ret = EncryptFileW(FileName.Buffer);
+
+    if (FileName.Buffer != NULL)
+        RtlFreeUnicodeString(&FileName);
+    return ret;
+}
+
+
+/*
+ * @unimplemented
+ */
+BOOL WINAPI
+EncryptFileW(LPCWSTR lpFileName)
+{
+    FIXME("%s() not implemented!\n", __FUNCTION__);
+    return TRUE;
+}
+
+/* EOF */
index 2ad2bff..99222f3 100644 (file)
@@ -534,75 +534,4 @@ BuildSecurityDescriptorA(IN PTRUSTEE_A pOwner  OPTIONAL,
     return FALSE;
 }
 
-
-/*
- * @unimplemented
- */
-BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD dwReserved)
-{
-    FIXME("%s(%S) not implemented!\n", __FUNCTION__, lpFileName);
-    return TRUE;
-}
-
-
-/*
- * @implemented
- */
-BOOL WINAPI
-DecryptFileA(LPCSTR lpFileName, DWORD dwReserved)
-{
-    UNICODE_STRING FileName;
-    NTSTATUS Status;
-    BOOL ret;
-
-    Status = RtlCreateUnicodeStringFromAsciiz(&FileName, lpFileName);
-    if (!NT_SUCCESS(Status))
-    {
-        SetLastError(RtlNtStatusToDosError(Status));
-        return FALSE;
-    }
-
-    ret = DecryptFileW(FileName.Buffer, dwReserved);
-
-    if (FileName.Buffer != NULL)
-        RtlFreeUnicodeString(&FileName);
-    return ret;
-}
-
-
-/*
- * @unimplemented
- */
-BOOL WINAPI
-EncryptFileW(LPCWSTR lpFileName)
-{
-    FIXME("%s() not implemented!\n", __FUNCTION__);
-    return TRUE;
-}
-
-
-/*
- * @implemented
- */
-BOOL WINAPI
-EncryptFileA(LPCSTR lpFileName)
-{
-    UNICODE_STRING FileName;
-    NTSTATUS Status;
-    BOOL ret;
-
-    Status = RtlCreateUnicodeStringFromAsciiz(&FileName, lpFileName);
-    if (!NT_SUCCESS(Status))
-    {
-        SetLastError(RtlNtStatusToDosError(Status));
-        return FALSE;
-    }
-
-    ret = EncryptFileW(FileName.Buffer);
-
-    if (FileName.Buffer != NULL)
-        RtlFreeUnicodeString(&FileName);
-    return ret;
-}
-
 /* EOF */