[ros-diffs] [ekohl] 49184: [ADVAPI32] Move the Encrypted File System (EFS) functions into their own file.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sun Oct 17 15:01:47 UTC 2010


Author: ekohl
Date: Sun Oct 17 15:01:46 2010
New Revision: 49184

URL: http://svn.reactos.org/svn/reactos?rev=49184&view=rev
Log:
[ADVAPI32]
Move the Encrypted File System (EFS) functions into their own file.

Added:
    trunk/reactos/dll/win32/advapi32/misc/efs.c   (with props)
Modified:
    trunk/reactos/dll/win32/advapi32/advapi32.rbuild
    trunk/reactos/dll/win32/advapi32/sec/sec.c

Modified: trunk/reactos/dll/win32/advapi32/advapi32.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/advapi32.rbuild?rev=49184&r1=49183&r2=49184&view=diff
==============================================================================
--- trunk/reactos/dll/win32/advapi32/advapi32.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/advapi32.rbuild [iso-8859-1] Sun Oct 17 15:01:46 2010
@@ -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>

Added: trunk/reactos/dll/win32/advapi32/misc/efs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/misc/efs.c?rev=49184&view=auto
==============================================================================
--- trunk/reactos/dll/win32/advapi32/misc/efs.c (added)
+++ trunk/reactos/dll/win32/advapi32/misc/efs.c [iso-8859-1] Sun Oct 17 15:01:46 2010
@@ -1,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 */

Propchange: trunk/reactos/dll/win32/advapi32/misc/efs.c
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/reactos/dll/win32/advapi32/misc/efs.c
------------------------------------------------------------------------------
    svn:keywords = author date id revision

Modified: trunk/reactos/dll/win32/advapi32/sec/sec.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sec.c?rev=49184&r1=49183&r2=49184&view=diff
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sec.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sec.c [iso-8859-1] Sun Oct 17 15:01:46 2010
@@ -534,75 +534,4 @@
     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 */




More information about the Ros-diffs mailing list