windows-nt/Source/XPSP1/NT/sdktools/perflog/pdlsvc/logutils.h
2020-09-26 16:20:57 +08:00

36 lines
921 B
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _LOG_UTILS_H_
#define _LOG_UTILS_H_
#define LOG_READ_ACCESS 0x00010000
#define LOG_WRITE_ACCESS 0x00020000
#define LOG_ACCESS_MASK 0x000F0000
#define LOG_CREATE_NEW 0x00000001
#define LOG_CREATE_ALWAYS 0x00000002
#define LOG_OPEN_ALWAYS 0x00000003
#define LOG_OPEN_EXISTING 0x00000004
#define LOG_CREATE_MASK 0x0000000F
#define FLAGS_CLOSE_QUERY 0x00000001
#define DWORD_MULTIPLE(x) ((((x)+sizeof(DWORD)-1)/sizeof(DWORD))*sizeof(DWORD))
#define CLEAR_FIRST_FOUR_BYTES(x) *(DWORD *)(x) = 0L
LONG __stdcall
OpenLogW (
IN LPCWSTR szLogFileName,
IN DWORD dwAccessFlags,
IN LPDWORD lpdwLogType,
IN HQUERY hQuery,
IN DWORD dwMaxRecords
);
LONG __stdcall UpdateLog (
IN LPDWORD pdwSampleTime);
LONG __stdcall CloseLog(IN DWORD dwFlags);
LONG __stdcall GetLogFileSize (IN LONGLONG *llSize);
#endif // _LOG_UTILS_H_