mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 00:18:26 +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
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI FileEncryptionStatusW (
|
BOOL WINAPI FileEncryptionStatusW (
|
||||||
LPCWSTR lpcwstr,
|
LPCWSTR lpFileName,
|
||||||
LPDWORD lpdword
|
LPDWORD lpStatus
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DPRINT1("%s() not implemented!\n", __FUNCTION__);
|
DPRINT1("%s(%S) not implemented!\n", __FUNCTION__, lpFileName);
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI FileEncryptionStatusA (
|
BOOL WINAPI FileEncryptionStatusA (
|
||||||
LPCSTR lpcstr,
|
LPCSTR lpFileName,
|
||||||
LPDWORD lpdword
|
LPDWORD lpStatus
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DPRINT1("%s() not implemented!\n", __FUNCTION__);
|
UNICODE_STRING FileName;
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
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__);
|
DPRINT1("%s() not implemented!\n", __FUNCTION__);
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue