hugo_fra_tv2 Clone Posts: 1
| I know files can be compressed using this:
Quote: | DeviceIoControl(HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPOVERLAPPED); | Using File from DC++ i'm having trouble compressing the files
Quote: | WIN32_FIND_DATA fd; HANDLE hFile = FindFirstFile(Text::toT(fname).c_str(), &fd); USHORT Format = COMPRESSION_FORMAT_DEFAULT; DWORD dummy; DeviceIoControl(hFile, FSCTL_SET_COMPRESSION, &Format, sizeof(USHORT), NULL, 0, &dummy, NULL); FindClose(hFile); | This part is taken from the source, when i have saved the data and closed the file, and it's ready to be compressed. But: Nothing happens :(
|