- Implement FileEncryptionStatusA

- Fix FileEncryptionStatusW prototype
- Fix EncryptionDisable stub

svn path=/trunk/; revision=22271
This commit is contained in:
Hervé Poussineau 2006-06-07 17:24:49 +00:00
parent 69778e9422
commit f326c55403

View file

@ -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;
} }