mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 09:01:13 +00:00
- Implement FileEncryptionStatusA
- Fix FileEncryptionStatusW prototype - Fix EncryptionDisable stub svn path=/trunk/; revision=22271
This commit is contained in:
parent
69778e9422
commit
f326c55403
|
@ -1981,25 +1981,42 @@ DWORD WINAPI RemoveUsersFromEncryptedFile (
|
|||
* @unimplemented
|
||||
*/
|
||||
BOOL WINAPI FileEncryptionStatusW (
|
||||
LPCWSTR lpcwstr,
|
||||
LPDWORD lpdword
|
||||
LPCWSTR lpFileName,
|
||||
LPDWORD lpStatus
|
||||
)
|
||||
{
|
||||
DPRINT1("%s() not implemented!\n", __FUNCTION__);
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
DPRINT1("%s(%S) not implemented!\n", __FUNCTION__, lpFileName);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
BOOL WINAPI FileEncryptionStatusA (
|
||||
LPCSTR lpcstr,
|
||||
LPDWORD lpdword
|
||||
LPCSTR lpFileName,
|
||||
LPDWORD lpStatus
|
||||
)
|
||||
{
|
||||
DPRINT1("%s() not implemented!\n", __FUNCTION__);
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
UNICODE_STRING FileName;
|
||||
NTSTATUS Status;
|
||||
BOOL ret = FALSE;
|
||||
|
||||
FileName.Buffer = NULL;
|
||||
|
||||
Status = RtlCreateUnicodeStringFromAsciiz(&FileName, lpFileName);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(Status));
|
||||
goto cleanup;
|
||||
}
|
||||
ret = FileEncryptionStatusW(FileName.Buffer, lpStatus);
|
||||
|
||||
cleanup:
|
||||
if (FileName.Buffer != NULL)
|
||||
RtlFreeUnicodeString(&FileName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2048,7 +2065,8 @@ BOOL WINAPI EncryptionDisable(
|
|||
)
|
||||
{
|
||||
DPRINT1("%s() not implemented!\n", __FUNCTION__);
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue