2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: dlls/win32/advapi32/misc/efs.c
5 * PURPOSE: Encrypted File System support
6 * PROGRAMMER: Christoph_vW
10 #include "wine/debug.h"
12 WINE_DEFAULT_DEBUG_CHANNEL(advapi
);
19 AddUsersToEncryptedFile(LPCWSTR lpcwstr
,
20 PENCRYPTION_CERTIFICATE_LIST pencryption_certificate_list
)
22 FIXME("%s() not implemented!\n", __FUNCTION__
);
23 return ERROR_CALL_NOT_IMPLEMENTED
;
31 DecryptFileA(LPCSTR lpFileName
,
34 UNICODE_STRING FileName
;
38 Status
= RtlCreateUnicodeStringFromAsciiz(&FileName
, lpFileName
);
39 if (!NT_SUCCESS(Status
))
41 SetLastError(RtlNtStatusToDosError(Status
));
45 ret
= DecryptFileW(FileName
.Buffer
, dwReserved
);
47 if (FileName
.Buffer
!= NULL
)
48 RtlFreeUnicodeString(&FileName
);
57 DecryptFileW(LPCWSTR lpFileName
,
60 FIXME("%s(%S) not implemented!\n", __FUNCTION__
, lpFileName
);
69 EncryptFileA(LPCSTR lpFileName
)
71 UNICODE_STRING FileName
;
75 Status
= RtlCreateUnicodeStringFromAsciiz(&FileName
, lpFileName
);
76 if (!NT_SUCCESS(Status
))
78 SetLastError(RtlNtStatusToDosError(Status
));
82 ret
= EncryptFileW(FileName
.Buffer
);
84 if (FileName
.Buffer
!= NULL
)
85 RtlFreeUnicodeString(&FileName
);
94 EncryptFileW(LPCWSTR lpFileName
)
96 FIXME("%s() not implemented!\n", __FUNCTION__
);
105 EncryptionDisable(LPCWSTR DirPath
,
108 FIXME("%s() not implemented!\n", __FUNCTION__
);
109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
118 FileEncryptionStatusA(LPCSTR lpFileName
,
121 UNICODE_STRING FileName
;
125 TRACE("(%s, %p)\n", lpFileName
, lpStatus
);
127 FileName
.Buffer
= NULL
;
129 Status
= RtlCreateUnicodeStringFromAsciiz(&FileName
, lpFileName
);
130 if (!NT_SUCCESS(Status
))
132 SetLastError(RtlNtStatusToDosError(Status
));
136 ret
= FileEncryptionStatusW(FileName
.Buffer
, lpStatus
);
139 if (FileName
.Buffer
!= NULL
)
140 RtlFreeUnicodeString(&FileName
);
149 FileEncryptionStatusW(LPCWSTR lpFileName
,
152 FIXME("%s(%S) not implemented!\n", __FUNCTION__
, lpFileName
);
157 *lpStatus
= FILE_SYSTEM_NOT_SUPPORT
;
167 FreeEncryptionCertificateHashList(PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list
)
169 FIXME("%s() not implemented!\n", __FUNCTION__
);
178 QueryRecoveryAgentsOnEncryptedFile(LPCWSTR lpctstr
,
179 PENCRYPTION_CERTIFICATE_HASH_LIST
* pencryption_certificate_hash_list
)
181 FIXME("%s() not implemented!\n", __FUNCTION__
);
182 return ERROR_CALL_NOT_IMPLEMENTED
;
190 QueryUsersOnEncryptedFile(LPCWSTR lpctstr
,
191 PENCRYPTION_CERTIFICATE_HASH_LIST
* pencryption_certificate_hash_list
)
193 FIXME("%s() not implemented!\n", __FUNCTION__
);
194 return ERROR_CALL_NOT_IMPLEMENTED
;
202 RemoveUsersFromEncryptedFile(LPCWSTR lpcwstr
,
203 PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list
)
205 FIXME("%s() not implemented!\n", __FUNCTION__
);
206 return ERROR_CALL_NOT_IMPLEMENTED
;