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 WINE_DEFAULT_DEBUG_CHANNEL(advapi
);
17 AddUsersToEncryptedFile(LPCWSTR lpcwstr
,
18 PENCRYPTION_CERTIFICATE_LIST pencryption_certificate_list
)
20 FIXME("%s() not implemented!\n", __FUNCTION__
);
21 return ERROR_CALL_NOT_IMPLEMENTED
;
29 DecryptFileA(LPCSTR lpFileName
,
32 UNICODE_STRING FileName
;
36 Status
= RtlCreateUnicodeStringFromAsciiz(&FileName
, lpFileName
);
37 if (!NT_SUCCESS(Status
))
39 SetLastError(RtlNtStatusToDosError(Status
));
43 ret
= DecryptFileW(FileName
.Buffer
, dwReserved
);
45 if (FileName
.Buffer
!= NULL
)
46 RtlFreeUnicodeString(&FileName
);
55 DecryptFileW(LPCWSTR lpFileName
,
58 FIXME("%s(%S) not implemented!\n", __FUNCTION__
, lpFileName
);
67 EncryptFileA(LPCSTR lpFileName
)
69 UNICODE_STRING FileName
;
73 Status
= RtlCreateUnicodeStringFromAsciiz(&FileName
, lpFileName
);
74 if (!NT_SUCCESS(Status
))
76 SetLastError(RtlNtStatusToDosError(Status
));
80 ret
= EncryptFileW(FileName
.Buffer
);
82 if (FileName
.Buffer
!= NULL
)
83 RtlFreeUnicodeString(&FileName
);
92 EncryptFileW(LPCWSTR lpFileName
)
94 FIXME("%s() not implemented!\n", __FUNCTION__
);
103 EncryptionDisable(LPCWSTR DirPath
,
106 FIXME("%s() not implemented!\n", __FUNCTION__
);
107 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
116 FileEncryptionStatusA(LPCSTR lpFileName
,
119 UNICODE_STRING FileName
;
123 TRACE("(%s, %p)\n", lpFileName
, lpStatus
);
125 FileName
.Buffer
= NULL
;
127 Status
= RtlCreateUnicodeStringFromAsciiz(&FileName
, lpFileName
);
128 if (!NT_SUCCESS(Status
))
130 SetLastError(RtlNtStatusToDosError(Status
));
134 ret
= FileEncryptionStatusW(FileName
.Buffer
, lpStatus
);
137 if (FileName
.Buffer
!= NULL
)
138 RtlFreeUnicodeString(&FileName
);
147 FileEncryptionStatusW(LPCWSTR lpFileName
,
150 FIXME("%s(%S) not implemented!\n", __FUNCTION__
, lpFileName
);
155 *lpStatus
= FILE_SYSTEM_NOT_SUPPORT
;
165 FreeEncryptionCertificateHashList(PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list
)
167 FIXME("%s() not implemented!\n", __FUNCTION__
);
176 QueryRecoveryAgentsOnEncryptedFile(LPCWSTR lpctstr
,
177 PENCRYPTION_CERTIFICATE_HASH_LIST
* pencryption_certificate_hash_list
)
179 FIXME("%s() not implemented!\n", __FUNCTION__
);
180 return ERROR_CALL_NOT_IMPLEMENTED
;
188 QueryUsersOnEncryptedFile(LPCWSTR lpctstr
,
189 PENCRYPTION_CERTIFICATE_HASH_LIST
* pencryption_certificate_hash_list
)
191 FIXME("%s() not implemented!\n", __FUNCTION__
);
192 return ERROR_CALL_NOT_IMPLEMENTED
;
200 RemoveUsersFromEncryptedFile(LPCWSTR lpcwstr
,
201 PENCRYPTION_CERTIFICATE_HASH_LIST pencryption_certificate_hash_list
)
203 FIXME("%s() not implemented!\n", __FUNCTION__
);
204 return ERROR_CALL_NOT_IMPLEMENTED
;