#include "precomp.h"
#include "utils.h"
#include "fileutils.h"
Go to the source code of this file.
◆ BackupIniFile()
Definition at line 93 of file fileutils.c.
94{
97 LPWSTR SourceFile, DestFile;
99
103
108 wcscpy(lpPath,
L"%SystemRoot%\\pss\\");
111
116
118
121
123}
BOOL MemFree(IN PVOID lpMem)
PVOID MemAlloc(IN DWORD dwFlags, IN SIZE_T dwBytes)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
BOOL WINAPI CopyFileW(IN LPCWSTR lpExistingFileName, IN LPCWSTR lpNewFileName, IN BOOL bFailIfExists)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
Referenced by CreatePropSheet().
◆ FileQueryFiles()
Definition at line 46 of file fileutils.c.
50{
53
58
63 wcscat(lpszQuery, FileNamesQuery);
64
69
72 {
73 do
74 {
77 {
80 }
82 }
83 else
85
87
89
91}
PRTL_UNICODE_STRING_BUFFER Path
static int find_data(const struct Vector *v, const BYTE *pData, int size)
#define INVALID_HANDLE_VALUE
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
static short search(int val, const short *table, int size)
_In_ PCWSTR _Inout_ _At_ QueryTable _Pre_unknown_ PRTL_QUERY_REGISTRY_TABLE QueryTable
static const EHCI_PERIOD pTable[]
#define ERROR_NO_MORE_FILES
◆ MyFileExists()