ReactOS 0.4.16-dev-112-g52265ae
fileutils.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Applications
3 * LICENSE: LGPL - See COPYING in the top level directory
4 * FILE: base/applications/msconfig_new/fileutils.h
5 * PURPOSE: File Utility Functions
6 * COPYRIGHT: Copyright 2011-2012 Hermes BELUSCA - MAITO <hermes.belusca@sfr.fr>
7 */
8
9#ifndef __FILEUTILS_H__
10#define __FILEUTILS_H__
11
12#pragma once
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18//
19// NOTE: A function called "FileExists" with the very same prototype
20// already exists in the PSDK headers (in setupapi.h)
21//
22BOOL
23MyFileExists(IN LPCWSTR lpszFilePath,
25
27typedef LRESULT
29 IN LPCWSTR FileNamesQuery,
30 IN LPCWSTR ExpandedFileNamesQuery,
31 IN PWIN32_FIND_DATAW pfind_data,
34
35#define QUERY_FILES_TABLE_ROUTINE(fnName) \
36 LRESULT (fnName)(IN LPCWSTR Path, \
37 IN LPCWSTR FileNamesQuery, \
38 IN LPCWSTR ExpandedFileNamesQuery, \
39 IN PWIN32_FIND_DATAW pfind_data, \
40 IN PVOID Context, \
41 IN PVOID EntryContext)
42
44{
47 // Other fields ?
49
52 IN LPCWSTR FileNamesQuery,
55
57
58BOOL BackupIniFile(IN LPCWSTR lpszIniFile);
59
60#ifdef __cplusplus
61} // extern "C"
62#endif
63
64#endif // __FILEUTILS_H__
PRTL_UNICODE_STRING_BUFFER Path
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL MyFileExists(IN LPCWSTR lpszFilePath, OUT PWIN32_FIND_DATAW pFindData OPTIONAL)
Definition: fileutils.c:18
struct __tagQUERY_FILES_TABLE * PQUERY_FILES_TABLE
struct __tagQUERY_FILES_TABLE QUERY_FILES_TABLE
LRESULT FileQueryFiles(IN LPCWSTR Path, IN LPCWSTR FileNamesQuery, IN PQUERY_FILES_TABLE QueryTable, IN PVOID Context)
Definition: fileutils.c:46
BOOL BackupIniFile(IN LPCWSTR lpszIniFile)
Definition: fileutils.c:93
LRESULT(* PQUERY_FILES_TABLE_ROUTINE)(IN LPCWSTR Path, IN LPCWSTR FileNamesQuery, IN LPCWSTR ExpandedFileNamesQuery, IN PWIN32_FIND_DATAW pfind_data, IN PVOID Context, IN PVOID EntryContext)
Definition: fileutils.h:28
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:4219
_In_ PCWSTR _Inout_ _At_ QueryTable _Pre_unknown_ PRTL_QUERY_REGISTRY_TABLE QueryTable
Definition: rtlfuncs.h:4220
#define LRESULT
Definition: ole.h:14
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
PQUERY_FILES_TABLE_ROUTINE QueryRoutine
Definition: fileutils.h:45
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
LONG_PTR LRESULT
Definition: windef.h:209
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185