fileprobe.cpp
来自「CCAMS系统是一种用于局域网下的C/S模式的软件管理和监测系统。它包括客户端和」· C++ 代码 · 共 44 行
CPP
44 行
// dlllib.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#define _WIN32_WINNT 0x0500
#include <windows.h>
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
extern "C" _declspec(dllexport) BOOL ReadDirecChange(
HANDLE hDirectory, // handle to the directory to be watched
LPVOID lpBuffer, // pointer to the buffer to receive the read
// results
DWORD nBufferLength, // length of lpBuffer
BOOL bWatchSubtree, // flag for monitoring directory or
// directory tree
DWORD dwNotifyFilter, // filter conditions to watch for
LPDWORD lpBytesReturned, // number of bytes returned
LPOVERLAPPED lpOverlapped,
// pointer to structure needed for
// overlapped I/O
LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
// pointer to completion routine
)
{
return ReadDirectoryChangesW(
hDirectory,
lpBuffer,
nBufferLength,
nBufferLength,
dwNotifyFilter,
lpBytesReturned,
lpOverlapped,
lpCompletionRoutine
);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?