ReactOS  0.4.13-dev-259-g5ca9c9c
efs.c File Reference
#include <advapi32.h>
#include <winefs.h>
Include dependency graph for efs.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (advapi)
 
DWORD WINAPI AddUsersToEncryptedFile (LPCWSTR lpcwstr, PENCRYPTION_CERTIFICATE_LIST pencryption_certificate_list)
 
BOOL WINAPI DecryptFileA (LPCSTR lpFileName, DWORD dwReserved)
 
BOOL WINAPI DecryptFileW (LPCWSTR lpFileName, DWORD dwReserved)
 
BOOL WINAPI EncryptFileA (LPCSTR lpFileName)
 
BOOL WINAPI EncryptFileW (LPCWSTR lpFileName)
 
BOOL WINAPI EncryptionDisable (LPCWSTR DirPath, BOOL Disable)
 
BOOL WINAPI FileEncryptionStatusA (LPCSTR lpFileName, LPDWORD lpStatus)
 
BOOL WINAPI FileEncryptionStatusW (LPCWSTR lpFileName, LPDWORD lpStatus)
 
VOID WINAPI FreeEncryptionCertificateHashList (PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list)
 
DWORD WINAPI QueryRecoveryAgentsOnEncryptedFile (LPCWSTR lpctstr, PENCRYPTION_CERTIFICATE_HASH_LIST *pencryption_certificate_hash_list)
 
DWORD WINAPI QueryUsersOnEncryptedFile (LPCWSTR lpctstr, PENCRYPTION_CERTIFICATE_HASH_LIST *pencryption_certificate_hash_list)
 
DWORD WINAPI RemoveUsersFromEncryptedFile (LPCWSTR lpcwstr, PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list)
 

Function Documentation

◆ AddUsersToEncryptedFile()

DWORD WINAPI AddUsersToEncryptedFile ( LPCWSTR  lpcwstr,
PENCRYPTION_CERTIFICATE_LIST  pencryption_certificate_list 
)

Definition at line 19 of file efs.c.

21 {
22  FIXME("%s() not implemented!\n", __FUNCTION__);
24 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define __FUNCTION__
Definition: types.h:112

◆ DecryptFileA()

BOOL WINAPI DecryptFileA ( LPCSTR  lpFileName,
DWORD  dwReserved 
)

Definition at line 31 of file efs.c.

33 {
35  BOOL ret;
36 
38  {
40  return FALSE;
41  }
42 
44 
45  if (FileName.Buffer != NULL)
47  return ret;
48 }
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:90
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define SetLastError(x)
Definition: compat.h:409
int ret
struct _FileName FileName
Definition: fatprocs.h:884
BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD dwReserved)
Definition: efs.c:55
_In_ LPCSTR lpFileName
Definition: winbase.h:3011

◆ DecryptFileW()

BOOL WINAPI DecryptFileW ( LPCWSTR  lpFileName,
DWORD  dwReserved 
)

Definition at line 55 of file efs.c.

57 {
58  FIXME("%s(%S) not implemented!\n", __FUNCTION__, lpFileName);
59  return TRUE;
60 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110
#define __FUNCTION__
Definition: types.h:112
_In_ LPCSTR lpFileName
Definition: winbase.h:3011

Referenced by DecryptFileA().

◆ EncryptFileA()

BOOL WINAPI EncryptFileA ( LPCSTR  lpFileName)

Definition at line 67 of file efs.c.

68 {
70  BOOL ret;
71 
73  {
75  return FALSE;
76  }
77 
78  ret = EncryptFileW(FileName.Buffer);
79 
80  if (FileName.Buffer != NULL)
82  return ret;
83 }
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define SetLastError(x)
Definition: compat.h:409
int ret
BOOL WINAPI EncryptFileW(LPCWSTR lpFileName)
Definition: efs.c:90
struct _FileName FileName
Definition: fatprocs.h:884
_In_ LPCSTR lpFileName
Definition: winbase.h:3011

◆ EncryptFileW()

BOOL WINAPI EncryptFileW ( LPCWSTR  lpFileName)

Definition at line 90 of file efs.c.

91 {
92  FIXME("%s() not implemented!\n", __FUNCTION__);
93  return TRUE;
94 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110
#define __FUNCTION__
Definition: types.h:112

Referenced by EncryptFileA().

◆ EncryptionDisable()

BOOL WINAPI EncryptionDisable ( LPCWSTR  DirPath,
BOOL  Disable 
)

Definition at line 101 of file efs.c.

103 {
104  FIXME("%s() not implemented!\n", __FUNCTION__);
106  return FALSE;
107 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define SetLastError(x)
Definition: compat.h:409
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define __FUNCTION__
Definition: types.h:112

◆ FileEncryptionStatusA()

BOOL WINAPI FileEncryptionStatusA ( LPCSTR  lpFileName,
LPDWORD  lpStatus 
)

Definition at line 114 of file efs.c.

116 {
118  BOOL ret = FALSE;
119 
120  TRACE("(%s, %p)\n", lpFileName, lpStatus);
121 
122  FileName.Buffer = NULL;
123 
125  {
127  goto cleanup;
128  }
129 
130  ret = FileEncryptionStatusW(FileName.Buffer, lpStatus);
131 
132 cleanup:
133  if (FileName.Buffer != NULL)
135 
136  return ret;
137 }
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
#define TRACE(s)
Definition: solgame.cpp:4
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define SetLastError(x)
Definition: compat.h:409
int ret
struct _FileName FileName
Definition: fatprocs.h:884
BOOL WINAPI FileEncryptionStatusW(LPCWSTR lpFileName, LPDWORD lpStatus)
Definition: efs.c:143
char * cleanup(char *str)
Definition: wpickclick.c:99
_In_ LPCSTR lpFileName
Definition: winbase.h:3011

◆ FileEncryptionStatusW()

BOOL WINAPI FileEncryptionStatusW ( LPCWSTR  lpFileName,
LPDWORD  lpStatus 
)

Definition at line 143 of file efs.c.

145 {
146  FIXME("%s(%S) not implemented!\n", __FUNCTION__, lpFileName);
147 
148  if (!lpStatus)
149  return FALSE;
150 
151  *lpStatus = FILE_SYSTEM_NOT_SUPPORT;
152 
153  return TRUE;
154 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110
#define FILE_SYSTEM_NOT_SUPPORT
Definition: winbase.h:31
#define __FUNCTION__
Definition: types.h:112
_In_ LPCSTR lpFileName
Definition: winbase.h:3011

Referenced by FileEncryptionStatusA().

◆ FreeEncryptionCertificateHashList()

VOID WINAPI FreeEncryptionCertificateHashList ( PENCRYPTION_CERTIFICATE_HASH_LIST  pencryption_certificate_hash_list)

Definition at line 161 of file efs.c.

162 {
163  FIXME("%s() not implemented!\n", __FUNCTION__);
164  return;
165 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define __FUNCTION__
Definition: types.h:112

◆ QueryRecoveryAgentsOnEncryptedFile()

DWORD WINAPI QueryRecoveryAgentsOnEncryptedFile ( LPCWSTR  lpctstr,
PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list 
)

Definition at line 172 of file efs.c.

174 {
175  FIXME("%s() not implemented!\n", __FUNCTION__);
177 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define __FUNCTION__
Definition: types.h:112

◆ QueryUsersOnEncryptedFile()

DWORD WINAPI QueryUsersOnEncryptedFile ( LPCWSTR  lpctstr,
PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list 
)

Definition at line 184 of file efs.c.

186 {
187  FIXME("%s() not implemented!\n", __FUNCTION__);
189 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define __FUNCTION__
Definition: types.h:112

◆ RemoveUsersFromEncryptedFile()

DWORD WINAPI RemoveUsersFromEncryptedFile ( LPCWSTR  lpcwstr,
PENCRYPTION_CERTIFICATE_HASH_LIST  pencryption_certificate_hash_list 
)

Definition at line 196 of file efs.c.

198 {
199  FIXME("%s() not implemented!\n", __FUNCTION__);
201 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define __FUNCTION__
Definition: types.h:112

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( advapi  )