ReactOS 0.4.15-dev-7931-gfd331f1
compress.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: File Management IFS Utility functions
4 * FILE: reactos/dll/win32/fmifs/compress.c
5 * PURPOSE: Volume compression
6 *
7 * PROGRAMMERS: Emanuele Aliberti
8 */
9
10#include "precomp.h"
11
12/*
13 * @implemented
14 */
18 IN PWCHAR DriveRoot,
19 IN USHORT Compression)
20{
22 DWORD RetBytes;
23 BOOL Ret;
24
25 hFile = CreateFileW(DriveRoot,
28 NULL,
31 NULL);
33 return FALSE;
34
37 &Compression,
38 sizeof(USHORT),
39 NULL,
40 0,
41 &RetBytes,
42 NULL);
43
45
46 return (Ret != 0);
47}
48
49/* EOF */
unsigned char BOOLEAN
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: deviceio.c:136
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define CloseHandle
Definition: compat.h:739
#define OPEN_EXISTING
Definition: compat.h:775
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
#define CreateFileW
Definition: compat.h:741
#define FILE_SHARE_READ
Definition: compat.h:136
BOOLEAN NTAPI EnableVolumeCompression(IN PWCHAR DriveRoot, IN USHORT Compression)
Definition: compress.c:17
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define FILE_FLAG_BACKUP_SEMANTICS
Definition: disk.h:41
_In_ HANDLE hFile
Definition: mswsock.h:90
#define FILE_SHARE_WRITE
Definition: nt_native.h:681
#define FILE_WRITE_DATA
Definition: nt_native.h:631
#define FILE_READ_DATA
Definition: nt_native.h:628
#define FSCTL_SET_COMPRESSION
Definition: nt_native.h:842
unsigned short USHORT
Definition: pedump.c:61
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint16_t * PWCHAR
Definition: typedefs.h:56