2019-10-18 11:57:19 +08:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-25 21:40:19 +08:00
|
|
|
#include "PowerRenameInterfaces.h"
|
|
|
|
|
|
|
|
#include <string>
|
2019-12-17 16:21:46 +08:00
|
|
|
|
2020-07-02 16:52:01 +08:00
|
|
|
HRESULT GetTrimmedFileName(_Out_ PWSTR result, UINT cchMax, _In_ PCWSTR source);
|
2021-12-14 21:42:37 +08:00
|
|
|
HRESULT GetTransformedFileName(_Out_ PWSTR result, UINT cchMax, _In_ PCWSTR source, DWORD flags, bool isFolder);
|
2020-12-14 17:28:12 +08:00
|
|
|
HRESULT GetDatedFileName(_Out_ PWSTR result, UINT cchMax, _In_ PCWSTR source, SYSTEMTIME fileTime);
|
|
|
|
bool isFileTimeUsed(_In_ PCWSTR source);
|
2020-07-23 04:27:58 +08:00
|
|
|
bool DataObjectContainsRenamableItem(_In_ IUnknown* dataSource);
|
2021-04-02 18:07:12 +08:00
|
|
|
HRESULT GetShellItemArrayFromDataObject(_In_ IUnknown* dataSource, _COM_Outptr_ IShellItemArray** items);
|
2019-10-18 11:57:19 +08:00
|
|
|
BOOL GetEnumeratedFileName(
|
2019-12-20 21:59:20 +08:00
|
|
|
__out_ecount(cchMax) PWSTR pszUniqueName,
|
|
|
|
UINT cchMax,
|
|
|
|
__in PCWSTR pszTemplate,
|
|
|
|
__in_opt PCWSTR pszDir,
|
|
|
|
unsigned long ulMinLong,
|
2020-07-16 19:24:49 +08:00
|
|
|
__inout unsigned long* pulNumUsed);
|
2021-04-02 18:07:12 +08:00
|
|
|
HWND CreateMsgWindow(_In_ HINSTANCE hInst, _In_ WNDPROC pfnWndProc, _In_ void* p);
|
2021-10-25 21:40:19 +08:00
|
|
|
|
|
|
|
std::wstring GetRegString(const std::wstring& valueName, const std::wstring& subPath);
|
|
|
|
unsigned int GetRegNumber(const std::wstring& valueName, unsigned int defaultValue);
|
|
|
|
void SetRegNumber(const std::wstring& valueName, unsigned int value);
|
|
|
|
bool GetRegBoolean(const std::wstring& valueName, bool defaultValue);
|
|
|
|
void SetRegBoolean(const std::wstring& valueName, bool value);
|
|
|
|
bool LastModifiedTime(const std::wstring& filePath, FILETIME* lpFileTime);
|