ReactOS 0.4.16-dev-295-g4aee028
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: precomp.h:53
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define __FUNCTION__
Definition: types.h:116

◆ 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
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define SetLastError(x)
Definition: compat.h:752
BOOL WINAPI DecryptFileW(LPCWSTR lpFileName, DWORD dwReserved)
Definition: efs.c:55
struct _FileName FileName
Definition: fatprocs.h:897
unsigned int BOOL
Definition: ntddk_ex.h:94
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
Definition: mswsock.h:95
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
int ret
_In_ LPCSTR lpFileName
Definition: winbase.h:3096

◆ 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

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}
BOOL WINAPI EncryptFileW(LPCWSTR lpFileName)
Definition: efs.c:90

◆ 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}

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}

◆ 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
132cleanup:
133 if (FileName.Buffer != NULL)
135
136 return ret;
137}
static void cleanup(void)
Definition: main.c:1335
BOOL WINAPI FileEncryptionStatusW(LPCWSTR lpFileName, LPDWORD lpStatus)
Definition: efs.c:143
#define TRACE(s)
Definition: solgame.cpp:4

◆ 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 FILE_SYSTEM_NOT_SUPPORT
Definition: winbase.h:32

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}

◆ 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}

◆ 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}

◆ 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}

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( advapi  )