/usr/i686-w64-mingw32/include/clfsw32.h is in mingw-w64-i686-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_CLFSW32
#define _INC_CLFSW32
#include <clfs.h>
#include <clfsmgmt.h>
#if (_WIN32_WINNT >= 0x0600)
#ifdef __cplusplus
extern "C" {
#endif
typedef PVOID (* CLFS_BLOCK_ALLOCATION) (ULONG cbBufferSize, PVOID pvUserContext);
typedef void (* CLFS_BLOCK_DEALLOCATION) (PVOID pvBuffer, PVOID pvUserContext);
typedef FILE *PFILE;
typedef ULONG (__stdcall * CLFS_PRINT_RECORD_ROUTINE) (PFILE, CLFS_RECORD_TYPE, PVOID, ULONG);
WINBOOL WINAPI AdvanceLogBase(PVOID pvMarshal,PCLFS_LSN plsnBase,ULONG fFlags,LPOVERLAPPED pOverlapped);
WINBOOL WINAPI AlignReservedLog(PVOID pvMarshal,ULONG cReservedRecords,LONGLONG rgcbReservation,PLONGLONG pcbAlignReservation);
WINBOOL WINAPI AllocReservedLog(PVOID pvMarshal,ULONG cReservedRecords,PLONGLONG pcbAdjustment);
WINBOOL WINAPI AddLogContainer(HANDLE hLog,PULONGLONG pcbContainer,LPWSTR pwszContainerPath,LPVOID pReserved);
WINBOOL WINAPI AddLogContainerSet(HANDLE hLog,USHORT cContainers,PULONGLONG pcbContainer,LPWSTR *rgwszContainerPath,PVOID Reserved);
WINBOOL WINAPI CloseAndResetLogFile(HANDLE hLog);
WINBOOL WINAPI CreateLogContainerScanContext(
HANDLE hLog,
ULONG cFromContainer,
ULONG cContainers,
CLFS_SCAN_MODE eScanMode,
PCLFS_SCAN_CONTEXT pcxScan,
LPOVERLAPPED pOverlapped
);
HANDLE WINAPI CreateLogFile(
LPCWSTR pszLogFileName,
ACCESS_MASK fDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES psaLogFile,
ULONG fCreateDisposition,
ULONG fFlagsAndAttributes
);
WINBOOL WINAPI ScanLogContainers(
PCLFS_SCAN_CONTEXT pcxScan,
CLFS_SCAN_MODE eScanMode,
LPVOID pReserved
);
WINBOOL WINAPI CreateLogMarshallingArea(
HANDLE hLog,
CLFS_BLOCK_ALLOCATION pfnAllocBuffer,
CLFS_BLOCK_DEALLOCATION pfnFreeBuffer,
PVOID pvBlockAllocContext,
ULONG cbMarshallingBuffer,
ULONG cMaxWriteBuffers,
ULONG cMaxReadBuffers,
PVOID *ppvMarshal
);
WINBOOL WINAPI DeleteLogMarshallingArea(
PVOID pvMarshal
);
WINBOOL WINAPI DeleteLogByHandle(
HANDLE hLog
);
WINBOOL WINAPI DeleteLogFile(
LPCWSTR pszLogFileName,
PVOID pvReserved
);
WINBOOL WINAPI DeregisterManageableLogClient(
HANDLE hLog
);
WINBOOL WINAPI DumpLogRecords(
PWSTR pwszLogFileName,
CLFS_RECORD_TYPE fRecordType,
PCLFS_LSN plsnStart,
PCLFS_LSN plsnEnd,
PFILE pstrmOut,
CLFS_PRINT_RECORD_ROUTINE pfnPrintRecord,
CLFS_BLOCK_ALLOCATION pfnAllocBlock,
CLFS_BLOCK_DEALLOCATION pfnFreeBlock,
PVOID pvBlockAllocContext,
ULONG cbBlock,
ULONG cMaxBlocks
);
WINBOOL WINAPI ReadLogRecord(
PVOID pvMarshal,
PCLFS_LSN plsnFirst,
CLFS_CONTEXT_MODE eContextMode,
PVOID *ppvReadBuffer,
PULONG pcbReadBuffer,
PCLFS_RECORD_TYPE peRecordType,
PCLFS_LSN plsnUndoNext,
PCLFS_LSN plsnPrevious,
PVOID *ppvReadContext,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI ReadNextLogRecord(
PVOID pvReadContext,
PVOID *ppvBuffer,
PULONG pcbBuffer,
PCLFS_RECORD_TYPE peRecordType,
PCLFS_LSN plsnUser,
PCLFS_LSN plsnUndoNext,
PCLFS_LSN plsnPrevious,
PCLFS_LSN plsnRecord,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI FlushLogBuffers(
PVOID pvMarshal,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI FlushLogToLsn(
PVOID pvMarshalContext,
PCLFS_LSN plsnFlush,
PCLFS_LSN plsnLastFlushed,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI FreeReservedLog(
PVOID pvMarshal,
ULONG cReservedRecords,
PLONGLONG pcbAdjustment
);
WINBOOL WINAPI GetLogContainerName(
HANDLE hLog,
CLFS_CONTAINER_ID cidLogicalContainer,
LPCWSTR pwstrContainerName,
ULONG cLenContainerName,
PULONG pcActualLenContainerName
);
WINBOOL WINAPI GetLogFileInformation(
HANDLE hLog,
PCLFS_INFORMATION pinfoBuffer,
PULONG cbBuffer
);
WINBOOL WINAPI GetLogIoStatistics(
HANDLE hLog,
PVOID pvStatsBuffer,
ULONG cbStatsBuffer,
CLFS_IOSTATS_CLASS eStatsClass,
PULONG pcbStatsWritten
);
typedef LPVOID CLFS_LOG_ARCHIVE_CONTEXT;
typedef CLFS_LOG_ARCHIVE_CONTEXT *PCLFS_LOG_ARCHIVE_CONTEXT;
WINBOOL WINAPI GetNextLogArchiveExtent(
CLFS_LOG_ARCHIVE_CONTEXT pvArchiveContext,
CLFS_ARCHIVE_DESCRIPTOR rgadExtent[],
ULONG cDescriptors,
PULONG pcDescriptorsReturned
);
WINBOOL WINAPI PrepareLogArchive(
HANDLE hLog,
PWSTR pszBaseLogFileName,
ULONG cLen,
const PCLFS_LSN plsnLow,
const PCLFS_LSN plsnHigh,
PULONG pcActualLength,
PULONGLONG poffBaseLogFileData,
PULONGLONG pcbBaseLogFileLength,
PCLFS_LSN plsnBase,
PCLFS_LSN plsnLast,
PCLFS_LSN plsnCurrentArchiveTail,
PCLFS_LOG_ARCHIVE_CONTEXT ppvArchiveContext
);
WINBOOL WINAPI TerminateLogArchive(
CLFS_LOG_ARCHIVE_CONTEXT pvArchiveContext
);
ULONG WINAPI LsnBlockOffset(
const CLFS_LSN *plsn
);
CLFS_CONTAINER_ID WINAPI LsnContainer(
const CLFS_LSN *plsn
);
CLFS_LSN WINAPI LsnCreate(
CLFS_CONTAINER_ID cidContainer,
ULONG offBlock,
ULONG cRecord
);
ULONG WINAPI LsnRecordSequence(
const CLFS_LSN *plsn
);
WINBOOL WINAPI PrepareLogArchive(
HANDLE hLog,
PWSTR pszBaseLogFileName,
ULONG cLen,
const PCLFS_LSN plsnLow,
const PCLFS_LSN plsnHigh,
PULONG pcActualLength,
PULONGLONG poffBaseLogFileData,
PULONGLONG pcbBaseLogFileLength,
PCLFS_LSN plsnBase,
PCLFS_LSN plsnLast,
PCLFS_LSN plsnCurrentArchiveTail,
PCLFS_LOG_ARCHIVE_CONTEXT ppvArchiveContext
);
WINBOOL WINAPI QueryLogPolicy(
HANDLE hLog,
CLFS_MGMT_POLICY_TYPE ePolicyType,
PCLFS_MGMT_POLICY pPolicyBuffer,
PULONG pcbPolicyBuffer
);
WINBOOL WINAPI ReadLogArchiveMetadata(
CLFS_LOG_ARCHIVE_CONTEXT pvArchiveContext,
ULONG cbOffset,
ULONG cbBytesToRead,
PBYTE pbReadBuffer,
PULONG pcbBytesRead
);
WINBOOL WINAPI ReadLogRestartArea(
PVOID pvMarshal,
PVOID *ppvRestartBuffer,
PULONG pcbRestartBuffer,
PCLFS_LSN plsn,
PVOID *ppvContext,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI ReadPreviousLogRestartArea(
PVOID pvReadContext,
PVOID *ppvRestartBuffer,
PULONG pcbRestartBuffer,
PCLFS_LSN plsnRestart,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI RemoveLogContainer(
HANDLE hLog,
LPWSTR pwszContainerPath,
WINBOOL fForce,
LPVOID pReserved
);
WINBOOL WINAPI RemoveLogContainerSet(
HANDLE hLog,
USHORT cContainers,
LPWSTR *rgwszContainerPath,
WINBOOL fForce,
LPVOID pReserved
);
WINBOOL WINAPI ReserveAndAppendLog(
PVOID pvMarshal,
PCLFS_WRITE_ENTRY rgWriteEntries,
ULONG cWriteEntries,
PCLFS_LSN plsnUndoNext,
PCLFS_LSN plsnPrevious,
ULONG cReserveRecords,
LONGLONG rgcbReservation[],
ULONG fFlags,
PCLFS_LSN plsn,
LPOVERLAPPED pOverlapped
);
WINBOOL WINAPI ReserveAndAppendLogAligned(
PVOID pvMarshal,
PCLFS_WRITE_ENTRY rgWriteEntries,
ULONG cWriteEntries,
ULONG cbEntryAlignment,
PCLFS_LSN plsnUndoNext,
PCLFS_LSN plsnPrevious,
ULONG cReserveRecords,
LONGLONG rgcbReservation[],
ULONG fFlags,
PCLFS_LSN plsn,
LPOVERLAPPED overlapped
);
WINBOOL WINAPI SetEndOfLog(
HANDLE hLog,
PCLFS_LSN plsnEnd,
LPOVERLAPPED lpOverlapped
);
WINBOOL WINAPI SetLogArchiveMode(
HANDLE hLog,
CLFS_LOG_ARCHIVE_MODE eMode
);
WINBOOL WINAPI SetLogArchiveTail(
HANDLE hLog,
PCLFS_LSN plsnArchiveTail,
LPVOID pReserved
);
WINBOOL WINAPI TerminateReadLog(
PVOID pvCursorContext
);
WINBOOL WINAPI ValidateLog(
LPCWSTR pszLogFileName,
LPSECURITY_ATTRIBUTES psaLogFile,
PCLFS_INFORMATION pinfoBuffer,
PULONG pcbBuffer
);
#ifdef __cplusplus
}
#endif
#endif /* (_WIN32_WINNT >= 0x0600) */
#endif /*_INC_CLFSW32*/
|