本文整理汇总了C++中FWPRINTF函数的典型用法代码示例。如果您正苦于以下问题:C++ FWPRINTF函数的具体用法?C++ FWPRINTF怎么用?C++ FWPRINTF使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FWPRINTF函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FuseUnmount
static NTSTATUS DOKAN_CALLBACK FuseUnmount(PDOKAN_FILE_INFO DokanFileInfo)
{
impl_fuse_context *impl=the_impl;
if (impl->debug()) FWPRINTF(stderr, L"Unmount\n");
impl_chain_guard guard(impl,DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(impl->unmount(DokanFileInfo));
}
示例2: FuseCleanup
static void DOKAN_CALLBACK FuseCleanup(LPCWSTR FileName,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"Cleanup: %s\n\n", FileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
impl->cleanup(FileName, DokanFileInfo);
}
示例3: FuseDeleteFile
static NTSTATUS DOKAN_CALLBACK FuseDeleteFile(LPCWSTR FileName,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"DeleteFile %s\n", FileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(impl->delete_file(FileName, DokanFileInfo));
}
示例4: FuseCloseFile
static int DOKAN_CALLBACK FuseCloseFile(
LPCWSTR FileName,
PDOKAN_FILE_INFO DokanFileInfo)
{
impl_fuse_context *impl=the_impl;
if (impl->debug()) FWPRINTF(stderr, L"Close: %s\n\n", FileName);
impl_chain_guard guard(impl,DokanFileInfo->ProcessId);
return -errno_to_win32_error(impl->close_file(FileName,DokanFileInfo));
}
示例5: FuseSetFileAttributes
static NTSTATUS DOKAN_CALLBACK FuseSetFileAttributes(
LPCWSTR FileName, DWORD FileAttributes, PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"SetFileAttributes %s\n", FileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(
impl->set_file_attributes(FileName, FileAttributes, DokanFileInfo));
}
示例6: FuseSetEndOfFile
static NTSTATUS DOKAN_CALLBACK FuseSetEndOfFile(
LPCWSTR FileName, LONGLONG ByteOffset, PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"SetEndOfFile %s, %I64d\n", FileName, ByteOffset);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(
impl->set_end_of_file(FileName, ByteOffset, DokanFileInfo));
}
示例7: FuseDeleteDirectory
static int DOKAN_CALLBACK FuseDeleteDirectory(
LPCWSTR FileName,
PDOKAN_FILE_INFO DokanFileInfo)
{
impl_fuse_context *impl=the_impl;
if (impl->debug()) FWPRINTF(stderr, L"DeleteDirectory %s\n", FileName);
impl_chain_guard guard(impl,DokanFileInfo->ProcessId);
return -errno_to_win32_error(impl->delete_directory(FileName,DokanFileInfo));
}
示例8: FuseGetDiskFreeSpace
static int DOKAN_CALLBACK FuseGetDiskFreeSpace(PULONGLONG FreeBytesAvailable,
PULONGLONG TotalNumberOfBytes, PULONGLONG TotalNumberOfFreeBytes,
PDOKAN_FILE_INFO DokanFileInfo)
{
impl_fuse_context *impl=the_impl;
if (impl->debug()) FWPRINTF(stderr, L"GetDiskFreeSpace\n");
impl_chain_guard guard(impl,DokanFileInfo->ProcessId);
return -errno_to_win32_error(impl->get_disk_free_space(FreeBytesAvailable,TotalNumberOfBytes,
TotalNumberOfFreeBytes, DokanFileInfo));
}
示例9: FuseGetFileInformation
static NTSTATUS DOKAN_CALLBACK FuseGetFileInformation(
LPCWSTR FileName, LPBY_HANDLE_FILE_INFORMATION HandleFileInformation,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"GetFileInfo : %s\n", FileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(impl->get_file_information(
FileName, HandleFileInformation, DokanFileInfo));
}
示例10: FuseUnlockFile
static NTSTATUS DOKAN_CALLBACK FuseUnlockFile(LPCWSTR FileName,
LONGLONG ByteOffset,
LONGLONG Length,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"UnlockFile %s\n", FileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(
impl->unlock_file(FileName, ByteOffset, Length, DokanFileInfo));
}
示例11: FuseMoveFile
static NTSTATUS DOKAN_CALLBACK
FuseMoveFile(LPCWSTR FileName, // existing file name
LPCWSTR NewFileName, BOOL ReplaceIfExisting,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"MoveFile %s -> %s\n\n", FileName, NewFileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(
impl->move_file(FileName, NewFileName, ReplaceIfExisting, DokanFileInfo));
}
示例12: FuseFindFiles
static int DOKAN_CALLBACK FuseFindFiles(
LPCWSTR FileName,
PFillFindData FillFindData, // function pointer
PDOKAN_FILE_INFO DokanFileInfo)
{
impl_fuse_context *impl=the_impl;
if (impl->debug()) FWPRINTF(stderr, L"FindFiles :%s\n", FileName);
impl_chain_guard guard(impl,DokanFileInfo->ProcessId);
return -errno_to_win32_error(impl->find_files(FileName,FillFindData,
DokanFileInfo));
}
示例13: FuseReadFile
static NTSTATUS DOKAN_CALLBACK FuseReadFile(LPCWSTR FileName, LPVOID Buffer,
DWORD BufferLength,
LPDWORD ReadLength, LONGLONG Offset,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"ReadFile : %s from %I64d len %u\n", FileName,
(__int64)Offset, (unsigned)BufferLength);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(impl->read_file(
FileName, Buffer, BufferLength, ReadLength, Offset, DokanFileInfo));
}
示例14: FuseCreateFile
static int DOKAN_CALLBACK FuseCreateFile(
LPCWSTR FileName,
DWORD AccessMode,
DWORD ShareMode,
DWORD CreationDisposition,
DWORD FlagsAndAttributes,
PDOKAN_FILE_INFO DokanFileInfo)
{
impl_fuse_context *impl=the_impl;
if (impl->debug()) {
FWPRINTF(stderr, L"CreateFile : %s\n", FileName);
DebugConstantBit("\tAccessMode", AccessMode, cAccessMode);
DebugConstantBit("\tShareMode", ShareMode, cShareMode);
DebugConstant("\tDisposition", CreationDisposition, cDisposition);
FWPRINTF(stderr, L"\tFlags: %u (0x%x)\n", FlagsAndAttributes, FlagsAndAttributes);
fflush(stderr);
}
impl_chain_guard guard(impl,DokanFileInfo->ProcessId);
return -win_error(impl->create_file(FileName,AccessMode,ShareMode,
CreationDisposition,FlagsAndAttributes,DokanFileInfo));
}
示例15: FuseSetFileTime
static NTSTATUS DOKAN_CALLBACK FuseSetFileTime(LPCWSTR FileName,
CONST FILETIME *CreationTime,
CONST FILETIME *LastAccessTime,
CONST FILETIME *LastWriteTime,
PDOKAN_FILE_INFO DokanFileInfo) {
impl_fuse_context *impl = the_impl;
if (impl->debug())
FWPRINTF(stderr, L"SetFileTime %s\n", FileName);
impl_chain_guard guard(impl, DokanFileInfo->ProcessId);
return errno_to_ntstatus_error(impl->set_file_time(
FileName, CreationTime, LastAccessTime, LastWriteTime, DokanFileInfo));
}