mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-09-18 07:27:55 +02:00
30 lines
470 B
C++
30 lines
470 B
C++
#pragma once
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifndef VC_EXTRALEAN
|
|
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
|
#endif
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
class CReadFileChanges
|
|
{
|
|
public:
|
|
CReadFileChanges() {};
|
|
~CReadFileChanges() {};
|
|
void AddFile(LPCTSTR szDirectory, DWORD dwNotifyFilter);
|
|
BOOL DetectChanges();
|
|
void Terminate();
|
|
|
|
private:
|
|
LPCTSTR _szFile = nullptr;
|
|
DWORD _dwNotifyFilter = 0;
|
|
WIN32_FILE_ATTRIBUTE_DATA _lastFileInfo = {};
|
|
|
|
};
|
|
|