1 #ifndef _SHARED_DLL__SHARED_H_ 2 #define _SHARED_DLL__SHARED_H_ 4 #include "../../pfc/pfc.h" 9 #define FB2K_LEAK_STATIC_OBJECTS PFC_LEAK_STATIC_OBJECTS 30 #define NOTHROW __declspec(nothrow) 36 #define SHARED_API __stdcall 38 #ifndef SHARED_EXPORTS 39 #define SHARED_EXPORT __declspec(dllimport) SHARED_API 41 #define SHARED_EXPORT __declspec(dllexport) SHARED_API 53 LRESULT SHARED_EXPORT
uSendMessageText(HWND wnd,UINT msg,WPARAM wp,
const char * text);
63 int SHARED_EXPORT
uMessageBox(HWND wnd,
const char * text,
const char * caption,UINT type);
65 BOOL SHARED_EXPORT
uAppendMenu(HMENU menu,UINT flags,UINT_PTR
id,
const char * content);
66 BOOL SHARED_EXPORT
uInsertMenu(HMENU menu,UINT position,UINT flags,UINT_PTR
id,
const char * content);
67 int SHARED_EXPORT
uStringCompare(
const char * elem1,
const char * elem2);
71 HANDLE SHARED_EXPORT
uCreateEvent(LPSECURITY_ATTRIBUTES lpEventAttributes,
BOOL bManualReset,
BOOL bInitialState,
const char * lpName);
82 BOOL SHARED_EXPORT
uExtTextOut(HDC dc,
int x,
int y,UINT flags,
const RECT * rect,
const char * text,UINT cb,
const int * lpdx);
83 BOOL SHARED_EXPORT
uTextOutColors(HDC dc,
const char * src,UINT len,
int x,
int y,
const RECT * clip,
BOOL is_selected,DWORD default_color);
84 BOOL SHARED_EXPORT
uTextOutColorsTabbed(HDC dc,
const char * src,UINT src_len,
const RECT * item,
int border,
const RECT * clip,
BOOL selected,DWORD default_color,
BOOL use_columns);
87 BOOL SHARED_EXPORT
uChooseColor(DWORD * p_color,HWND parent,DWORD * p_custom_colors);
89 HICON SHARED_EXPORT
uLoadIcon(HINSTANCE
hIns,
const char * name);
90 HMENU SHARED_EXPORT
uLoadMenu(HINSTANCE
hIns,
const char * name);
94 BOOL SHARED_EXPORT
uMoveFile(
const char * src,
const char * dst);
99 HANDLE SHARED_EXPORT
uCreateFile(
const char * p_path,DWORD p_access,DWORD p_sharemode,LPSECURITY_ATTRIBUTES p_security_attributes,DWORD p_createmode,DWORD p_flags,
HANDLE p_template);
100 HANDLE SHARED_EXPORT
uCreateFileMapping(
HANDLE hFile,LPSECURITY_ATTRIBUTES lpFileMappingAttributes,DWORD flProtect,DWORD dwMaximumSizeHigh,DWORD dwMaximumSizeLow,
const char * lpName);
111 BOOL SHARED_EXPORT
uGetOpenFileName(HWND parent,
const char * p_ext_mask,
unsigned def_ext_mask,
const char * p_def_ext,
const char * p_title,
const char * p_directory,
pfc::string_base & p_filename,
BOOL b_save);
113 HANDLE SHARED_EXPORT
uLoadImage(HINSTANCE
hIns,
const char * name,UINT type,
int x,
int y,UINT flags);
126 __in DWORD dwDesiredAccess,
127 __in DWORD dwShareMode,
128 __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes,
129 __in DWORD dwCreationDisposition,
130 __in DWORD dwFlagsAndAttributes,
136 int SHARED_EXPORT
uCompareString(DWORD flags,
const char * str1,
unsigned len1,
const char * str2,
unsigned len2);
148 puGetOpenFileNameMultiResult SHARED_EXPORT
uGetOpenFileNameMulti(HWND parent,
const char * p_ext_mask,
unsigned def_ext_mask,
const char * p_def_ext,
const char * p_title,
const char * p_directory);
151 puGetOpenFileNameMultiResult SHARED_EXPORT
uBrowseForFolderEx(HWND parent,
const char * title,
const char * initPath);
160 virtual BOOL FindNext()=0;
161 virtual const char * GetFileName()=0;
163 virtual DWORD GetAttributes()=0;
164 virtual FILETIME GetCreationTime()=0;
165 virtual FILETIME GetLastAccessTime()=0;
166 virtual FILETIME GetLastWriteTime()=0;
168 inline bool IsDirectory() {
return (GetAttributes() & FILE_ATTRIBUTE_DIRECTORY) ?
true :
false;}
175 HINSTANCE SHARED_EXPORT
uShellExecute(HWND wnd,
const char * oper,
const char *
file,
const char * params,
const char * dir,
int cmd);
179 BOOL SHARED_EXPORT
uShellNotifyIconEx(DWORD dwMessage,HWND wnd,UINT
id,UINT callbackmsg,HICON
icon,
const char * tip,
const char * balloon_title,
const char * balloon_msg);
181 HWND SHARED_EXPORT
uCreateWindowEx(DWORD dwExStyle,
const char * lpClassName,
const char * lpWindowName,DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam);
193 UINT SHARED_EXPORT
uDdeInitialize(LPDWORD pidInst,PFNCALLBACK pfnCallback,DWORD afCmd,DWORD ulRes);
196 HIMAGELIST SHARED_EXPORT
uImageList_LoadImage(HINSTANCE hi,
const char * lpbmp,
int cx,
int cGrow, COLORREF crMask, UINT uType, UINT uFlags);
198 #define uDdeFreeStringHandle DdeFreeStringHandle 199 #define uDdeCmpStringHandles DdeCmpStringHandles 200 #define uDdeKeepStringHandle DdeKeepStringHandle 201 #define uDdeUninitialize DdeUninitialize 202 #define uDdeNameService DdeNameService 203 #define uDdeFreeDataHandle DdeFreeDataHandle 212 #define uSetWindowsHookEx SetWindowsHookEx 213 #define uUnhookWindowsHookEx UnhookWindowsHookEx 214 #define uCallNextHookEx CallNextHookEx 249 virtual const void * GetPointer() = 0;
250 virtual unsigned GetSize() = 0;
256 puResource SHARED_EXPORT
uLoadResource(HMODULE hMod,
const char * name,
const char * type,WORD wLang = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) );
257 puResource SHARED_EXPORT
LoadResourceEx(HMODULE hMod,
const TCHAR * name,
const TCHAR * type,WORD wLang = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) );
258 HRSRC SHARED_EXPORT
uFindResource(HMODULE hMod,
const char * name,
const char * type,WORD wLang = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL) );
266 BOOL SHARED_EXPORT
uModifyMenu(HMENU menu,UINT
id,UINT flags,UINT newitem,
const char * data);
293 inline operator const char * ()
const {
return m_data.get_ptr();}
295 inline bool is_empty()
const {
return length() == 0;}
296 inline const char *
get_ptr()
const {
return m_data.get_ptr();}
312 #define uMAKEINTRESOURCE(x) ((const char*)LOWORD(x)) 316 #define uIsDialogMessage IsDialogMessage 317 #define uGetMessage GetMessage 318 #define uPeekMessage PeekMessage 319 #define uDispatchMessage DispatchMessage 321 #define uCallWindowProc CallWindowProc 322 #define uDefWindowProc DefWindowProc 323 #define uGetWindowLong GetWindowLong 324 #define uSetWindowLong SetWindowLong 326 #define uEndDialog EndDialog 327 #define uDestroyWindow DestroyWindow 328 #define uGetDlgItem GetDlgItem 329 #define uEnableWindow EnableWindow 330 #define uGetDlgItemInt GetDlgItemInt 331 #define uSetDlgItemInt SetDlgItemInt 333 #define uSendMessage SendMessage 334 #define uSendDlgItemMessage SendDlgItemMessage 335 #define uSendMessageTimeout SendMessageTimeout 336 #define uSendNotifyMessage SendNotifyMessage 337 #define uSendMessageCallback SendMessageCallback 338 #define uPostMessage PostMessage 339 #define uPostThreadMessage PostThreadMessage 352 inline operator const char * ()
const {
return m_data.get_ptr();}
354 inline bool is_empty()
const {
return length() == 0;}
355 inline const char *
get_ptr()
const {
return m_data.get_ptr();}
360 #pragma deprecated(uStringPrintf, uPrintf, uPrintfV) 362 inline LRESULT
uButton_SetCheck(HWND wnd,UINT
id,
bool state) {
return uSendDlgItemMessage(wnd,
id,BM_SETCHECK,state ? BST_CHECKED : BST_UNCHECKED,0); }
363 inline bool uButton_GetCheck(HWND wnd,UINT
id) {
return uSendDlgItemMessage(wnd,
id,BM_GETCHECK,0,0) == BST_CHECKED;}
368 int SHARED_EXPORT
stricmp_utf8(
const char * p1,
const char * p2)
throw();
382 static int compare(
const char * p_string1,
const char * p_string2)
throw() {
return stricmp_utf8(p_string1,p_string2);}
404 inline operator const char * ()
const {
return m_data.get_ptr();}
406 inline bool is_empty()
const {
return length() == 0;}
407 inline const char *
get_ptr()
const {
return m_data.get_ptr();}
416 inline operator const char * ()
const {
return m_data.get_ptr();}
418 inline bool is_empty()
const {
return length() == 0;}
419 inline const char *
get_ptr()
const {
return m_data.get_ptr();}
435 m_facename_length = LF_FACESIZE*2,
443 char m_facename[m_facename_length];
452 HFONT SHARED_EXPORT
create()
const;
453 bool SHARED_EXPORT popup_dialog(HWND p_parent);
454 void SHARED_EXPORT from_font(HFONT p_font);
459 template<
typename t_stream,
typename t_abort>
void to_stream(t_stream p_stream,t_abort & p_abort)
const;
460 template<
typename t_stream,
typename t_abort>
void from_stream(t_stream p_stream,t_abort & p_abort);
464 p_stream->write_lendian_t(m_height,p_abort);
465 p_stream->write_lendian_t(m_weight,p_abort);
466 p_stream->write_lendian_t(m_italic,p_abort);
467 p_stream->write_lendian_t(m_charset,p_abort);
468 p_stream->write_string(m_facename,PFC_TABSIZE(m_facename),p_abort);
472 p_stream->read_lendian_t(m_height,p_abort);
473 p_stream->read_lendian_t(m_weight,p_abort);
474 p_stream->read_lendian_t(m_italic,p_abort);
475 p_stream->read_lendian_t(m_charset,p_abort);
477 p_stream->read_string(temp,p_abort);
478 strncpy_s(m_facename,temp,PFC_TABSIZE(m_facename));
523 m_initialized =
true;
524 m_entry.m_in_use =
true;
525 m_entry.m_wnd_to_poke = p_wnd;
535 m_initialized =
false;
553 #include "win32_misc.h" 557 #if FB2K_LEAK_STATIC_OBJECTS 558 #define FB2K_STATIC_OBJECT(TYPE, NAME) static TYPE & NAME = * new TYPE; 560 #define FB2K_STATIC_OBJECT(TYPE, NAME) static TYPE NAME; 563 #endif //_SHARED_DLL__SHARED_H_ BOOL SHARED_EXPORT uExpandEnvironmentStrings(const char *src, pfc::string_base &out)
void SHARED_EXPORT PokeWindow(HWND p_wnd)
static void poke_existing()
Activates the top-level modal dialog existing, if one exists.
BOOL SHARED_EXPORT uGetClipboardFormatName(UINT format, pfc::string_base &out)
int SHARED_EXPORT stricmp_utf8_partial(const char *p1, const char *p2, t_size num=~0)
static bool ModalDialogPrologue()
bool SHARED_EXPORT ModalDialog_CanCreateNew()
BOOL SHARED_EXPORT uShellNotifyIconEx(DWORD dwMessage, HWND wnd, UINT id, UINT callbackmsg, HICON icon, const char *tip, const char *balloon_title, const char *balloon_msg)
void SHARED_EXPORT uPrintCrashInfo_AddEnvironmentInfo(const char *p_info)
BOOL SHARED_EXPORT uSetDlgItemText(HWND wnd, UINT id, const char *p_text)
BOOL SHARED_EXPORT uExtTextOut(HDC dc, int x, int y, UINT flags, const RECT *rect, const char *text, UINT cb, const int *lpdx)
HANDLE SHARED_EXPORT uCreateEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const char *lpName)
HMENU SHARED_EXPORT uLoadMenu(HINSTANCE hIns, const char *name)
int SHARED_EXPORT stricmp_utf8_ex(const char *p1, t_size len1, const char *p2, t_size len2)
int SHARED_EXPORT stricmp_utf8_max(const char *p1, const char *p2, t_size p1_bytes)
char m_facename[m_facename_length]
int SHARED_EXPORT uMessageBox(HWND wnd, const char *text, const char *caption, UINT type)
void to_stream(t_stream p_stream, t_abort &p_abort) const
HANDLE SHARED_EXPORT CreateFileAbortable(__in LPCWSTR lpFileName, __in DWORD dwDesiredAccess, __in DWORD dwShareMode, __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes, __in DWORD dwCreationDisposition, __in DWORD dwFlagsAndAttributes, __in_opt HANDLE hAborter)
HTREEITEM SHARED_EXPORT uTreeView_InsertItem(HWND wnd, const uTVINSERTSTRUCT *param)
DWORD SHARED_EXPORT uGetFileAttributes(const char *fn)
static bool can_create()
Returns whether creation of a new modal dialog is allowed (false when there's another one active)...
void SHARED_EXPORT uPrintCrashInfo_SetComponentList(const char *p_info)
int SHARED_EXPORT stricmp_utf8_stringtoblock(const char *p1, const char *p2, t_size p2_bytes)
void SHARED_EXPORT uDumpCrashInfo(LPEXCEPTION_POINTERS param)
bool uButton_GetCheck(HWND wnd, UINT id)
void SHARED_EXPORT uPrintfV(pfc::string_base &out, const char *fmt, va_list arglist)
DWORD SHARED_EXPORT uGetModuleFileName(HMODULE hMod, pfc::string_base &out)
BOOL SHARED_EXPORT uGetCurrentDirectory(pfc::string_base &out)
void initialize(HWND p_wnd)
Initializes the scope with specified window handle.
BOOL SHARED_EXPORT uGetClipboardString(pfc::string_base &out)
puResource SHARED_EXPORT uLoadResource(HMODULE hMod, const char *name, const char *type, WORD wLang=MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL))
BOOL SHARED_EXPORT uGetWindowText(HWND wnd, pfc::string_base &out)
BOOL SHARED_EXPORT uGetShortPathName(const char *src, pfc::string_base &out)
The purpose of modal_dialog_scope is to help to avoid the modal dialog recursion problem. Current toplevel modal dialog handle is stored globally, so when creation of a new modal dialog is blocked, it can be activated to indicate the reason for the task being blocked.
string_upper(const char *ptr, t_size p_count=~0)
int SHARED_EXPORT uStringCompare_ConvertNumbers(const char *elem1, const char *elem2)
string_utf8_from_window(HWND wnd)
HANDLE SHARED_EXPORT uSortStringCreate(const char *src)
void SHARED_EXPORT uOutputDebugString(const char *msg)
HMODULE SHARED_EXPORT uGetModuleHandle(const char *name)
static bool g_equals(const t_font_description &v1, const t_font_description &v2)
static const GUID icon
Album-specific icon (NOT a file type icon).
BOOL SHARED_EXPORT uTextOutColors(HDC dc, const char *src, UINT len, int x, int y, const RECT *clip, BOOL is_selected, DWORD default_color)
BOOL SHARED_EXPORT uGetWindowsDirectory(pfc::string_base &out)
typedef BOOL(WINAPI *pPowerSetRequest_t)(__in HANDLE PowerRequest
HWND SHARED_EXPORT uCreateStatusWindow(LONG style, const char *text, HWND parent, UINT id)
BOOL SHARED_EXPORT uGetFullPathName(const char *name, pfc::string_base &out)
UINT SHARED_EXPORT uCharUpper(UINT c)
bool operator!=(const t_font_description &other) const
BOOL SHARED_EXPORT uGetDlgItemText(HWND wnd, UINT id, pfc::string_base &out)
BOOL SHARED_EXPORT uBrowseForFolder(HWND parent, const char *title, pfc::string_base &out)
HMODULE SHARED_EXPORT LoadSystemLibrary(const TCHAR *name)
HANDLE SHARED_EXPORT uCreateFile(const char *p_path, DWORD p_access, DWORD p_sharemode, LPSECURITY_ATTRIBUTES p_security_attributes, DWORD p_createmode, DWORD p_flags, HANDLE p_template)
static void uPrintf(pfc::string_base &out, const char *fmt,...)
static int compare(const char *p_string1, const char *p_string2)
void uStringUpper(pfc::string_base &out, const char *src, t_size len=~0)
void SHARED_EXPORT uPrintCrashInfo_SetDumpPath(const char *name)
UINT SHARED_EXPORT uGetMenuItemType(HMENU menu, UINT position)
void SHARED_EXPORT uFixAmpersandChars_v2(const char *src, pfc::string_base &out)
int SHARED_EXPORT stricmp_utf8(const char *p1, const char *p2)
puFindFile SHARED_EXPORT uFindFirstFile(const char *path)
BOOL uGetLongPathNameEx(const char *name, pfc::string_base &out)
BOOL SHARED_EXPORT uGetTempFileName(const char *path_name, const char *prefix, UINT unique, pfc::string_base &out)
LRESULT SHARED_EXPORT uSendMessageText(HWND wnd, UINT msg, WPARAM wp, const char *text)
int SHARED_EXPORT uSortStringCompareEx(HANDLE string1, HANDLE string2, DWORD flags)
int SHARED_EXPORT uGetKeyNameText(LONG lparam, pfc::string_base &out)
BOOL SHARED_EXPORT uGetOpenFileName(HWND parent, const char *p_ext_mask, unsigned def_ext_mask, const char *p_def_ext, const char *p_title, const char *p_directory, pfc::string_base &p_filename, BOOL b_save)
BOOL SHARED_EXPORT uSetClipboardString(const char *ptr)
t_size SHARED_EXPORT uReplaceStringAdd(pfc::string_base &out, const char *src, t_size src_len, const char *s1, t_size len1, const char *s2, t_size len2, bool casesens)
modal_dialog_scope()
This constructor leaves the scope uninitialized (you can call initialize() later with your window han...
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
BOOL SHARED_EXPORT uShellNotifyIcon(DWORD dwMessage, HWND wnd, UINT id, UINT callbackmsg, HICON icon, const char *tip)
const modal_dialog_scope & operator=(const modal_dialog_scope &)
UINT SHARED_EXPORT uGetTextHeight(HDC dc)
BOOL SHARED_EXPORT uListBox_GetText(HWND listbox, UINT index, pfc::string_base &out)
int SHARED_EXPORT uTabCtrl_InsertItem(HWND wnd, t_size idx, const uTCITEM *item)
virtual ~uGetOpenFileNameMultiResult()
BOOL SHARED_EXPORT uMoveFile(const char *src, const char *dst)
const char * get_ptr() const
HICON SHARED_EXPORT uLoadIcon(HINSTANCE hIns, const char *name)
int strcmp_ex(const char *p1, t_size n1, const char *p2, t_size n2)
const char * get_ptr() const
BOOL SHARED_EXPORT uSetClipboardRawData(UINT format, const void *ptr, t_size size)
int SHARED_EXPORT uStringCompare(const char *elem1, const char *elem2)
BOOL SHARED_EXPORT uCreateDirectory(const char *fn, LPSECURITY_ATTRIBUTES blah)
TVINSERTSTRUCTA uTVINSERTSTRUCT
BOOL SHARED_EXPORT uGetSystemDirectory(pfc::string_base &out)
HINSTANCE SHARED_EXPORT uShellExecute(HWND wnd, const char *oper, const char *file, const char *params, const char *dir, int cmd)
t_size SHARED_EXPORT uReplaceCharAdd(pfc::string_base &out, const char *src, t_size src_len, unsigned c1, unsigned c2, bool casesens)
BOOL SHARED_EXPORT uGetEnvironmentVariable(const char *name, pfc::string_base &out)
BOOL SHARED_EXPORT uTextOutColorsTabbed(HDC dc, const char *src, UINT src_len, const RECT *item, int border, const RECT *clip, BOOL selected, DWORD default_color, BOOL use_columns)
BOOL SHARED_EXPORT uRemoveDirectory(const char *fn)
UINT SHARED_EXPORT uDdeInitialize(LPDWORD pidInst, PFNCALLBACK pfnCallback, DWORD afCmd, DWORD ulRes)
UINT SHARED_EXPORT uDragQueryFileCount(HDROP hDrop)
BOOL SHARED_EXPORT uGetTextExtentPoint32(HDC dc, const char *text, UINT cb, LPSIZE size)
int SHARED_EXPORT uSortStringCompare(HANDLE string1, HANDLE string2)
virtual t_size get_count() const =0
HANDLE SHARED_EXPORT uLoadImage(HINSTANCE hIns, const char *name, UINT type, int x, int y, UINT flags)
int SHARED_EXPORT uCompareString(DWORD flags, const char *str1, unsigned len1, const char *str2, unsigned len2)
void SHARED_EXPORT uPrintCrashInfo_OnEvent(const char *message, t_size length)
BOOL SHARED_EXPORT uDeleteFile(const char *fn)
BOOL SHARED_EXPORT uGetClassName(HWND wnd, pfc::string_base &out)
BOOL SHARED_EXPORT uSetWindowTextEx(HWND wnd, const char *p_text, unsigned p_text_length)
bool operator==(const t_font_description &other) const
LRESULT SHARED_EXPORT uSendDlgItemMessageText(HWND wnd, UINT id, UINT msg, WPARAM wp, const char *text)
UINT SHARED_EXPORT uCharLower(UINT c)
t_size SHARED_EXPORT uPrintCrashInfo(LPEXCEPTION_POINTERS param, const char *extrainfo, char *out)
BOOL SHARED_EXPORT uSetWindowText(HWND wnd, const char *p_text)
BOOL SHARED_EXPORT uInsertMenu(HMENU menu, UINT position, UINT flags, UINT_PTR id, const char *content)
BOOL SHARED_EXPORT uAppendMenu(HMENU menu, UINT flags, UINT_PTR id, const char *content)
int SHARED_EXPORT uCharCompare(t_uint32 p_char1, t_uint32 p_char2)
void uStringLower(pfc::string_base &out, const char *src, t_size len=~0)
HWND SHARED_EXPORT uCreateWindowEx(DWORD dwExStyle, const char *lpClassName, const char *lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
HIMAGELIST SHARED_EXPORT uImageList_LoadImage(HINSTANCE hi, const char *lpbmp, int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags)
bool SHARED_EXPORT uTreeView_GetText(HWND wnd, HTREEITEM item, pfc::string_base &out)
BOOL SHARED_EXPORT uSetCurrentDirectory(const char *path)
uStringPrintf(const char *fmt,...)
BOOL SHARED_EXPORT uDragQueryFile(HDROP hDrop, UINT idx, pfc::string_base &out)
int SHARED_EXPORT uTabCtrl_SetItem(HWND wnd, t_size idx, const uTCITEM *item)
BOOL SHARED_EXPORT uSearchPath(const char *path, const char *filename, const char *extension, pfc::string_base &p_out)
int SHARED_EXPORT uSortPathCompare(HANDLE string1, HANDLE string2)
HCURSOR SHARED_EXPORT uLoadCursor(HINSTANCE hIns, const char *name)
string_utf8_from_window(HWND wnd, UINT id)
void create(pfc::string_formatter &p_out, const t_entry_list &p_data)
UINT SHARED_EXPORT uGetFontHeight(HFONT font)
puResource SHARED_EXPORT LoadResourceEx(HMODULE hMod, const TCHAR *name, const TCHAR *type, WORD wLang=MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL))
HRSRC SHARED_EXPORT uFindResource(HMODULE hMod, const char *name, const char *type, WORD wLang=MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL))
void SHARED_EXPORT uAddStringLower(pfc::string_base &out, const char *src, t_size len=~0)
BOOL SHARED_EXPORT uGetLongPathName(const char *name, pfc::string_base &out)
modal_dialog_scope(const modal_dialog_scope &p_scope)
const char * toString() const
BOOL SHARED_EXPORT uFixPathCaps(const char *path, pfc::string_base &p_out)
static void uAddDebugEvent(const char *msg)
HINSTANCE SHARED_EXPORT uLoadLibrary(const char *name)
const char * toString() const
BOOL SHARED_EXPORT uLoadString(HINSTANCE ins, UINT id, pfc::string_base &out)
UINT SHARED_EXPORT uRegisterWindowMessage(const char *name)
HANDLE SHARED_EXPORT GetInfiniteWaitEvent()
BOOL SHARED_EXPORT uModifyMenu(HMENU menu, UINT id, UINT flags, UINT newitem, const char *data)
BOOL SHARED_EXPORT uGetUserName(pfc::string_base &out)
BOOL SHARED_EXPORT uFormatSystemErrorMessage(pfc::string_base &p_out, DWORD p_code)
BOOL SHARED_EXPORT uGetMenuString(HMENU menu, UINT id, pfc::string_base &out, UINT flag)
void SHARED_EXPORT ModalDialog_Switch(t_modal_dialog_entry &p_entry)
New EXPERIMENTAL string class, allowing efficient copies and returning from functions. Does not implement the string_base interface so you still need string8 in many cases. Safe to pass between DLLs, but since a reference is used, objects possibly created by other DLLs must be released before owning DLLs are unloaded.
pfc::string8_fastalloc m_data
modal_dialog_scope(HWND p_wnd)
This constructor initializes the modal dialog scope with specified dialog handle. ...
t_size uReplaceChar(pfc::string_base &out, const char *src, t_size src_len, unsigned c1, unsigned c2, bool casesens)
BOOL SHARED_EXPORT uChooseColor(DWORD *p_color, HWND parent, DWORD *p_custom_colors)
BOOL SHARED_EXPORT uSetDlgItemTextEx(HWND wnd, UINT id, const char *p_text, unsigned p_text_length)
puGetOpenFileNameMultiResult SHARED_EXPORT uGetOpenFileNameMulti(HWND parent, const char *p_ext_mask, unsigned def_ext_mask, const char *p_def_ext, const char *p_title, const char *p_directory)
void SHARED_EXPORT uSortStringFree(HANDLE string)
const char * GetFileName(t_size index)
LPARAM SHARED_EXPORT uTreeView_GetUserData(HWND wnd, HTREEITEM item)
HWND SHARED_EXPORT FindOwningPopup(HWND p_wnd)
char * uCharNext(char *src)
HSZ SHARED_EXPORT uDdeCreateStringHandle(DWORD ins, const char *src)
const char * get_ptr() const
void SHARED_EXPORT uAddStringUpper(pfc::string_base &out, const char *src, t_size len=~0)
const char * get_ptr() const
string_lower(const char *ptr, t_size p_count=~0)
BOOL SHARED_EXPORT uBrowseForFolderWithFile(HWND parent, const char *title, pfc::string_base &out, const char *p_file_to_find)
BOOL SHARED_EXPORT uGetTempPath(pfc::string_base &out)
HANDLE SHARED_EXPORT uCreateMutex(LPSECURITY_ATTRIBUTES blah, BOOL bInitialOwner, const char *name)
t_size uReplaceString(pfc::string_base &out, const char *src, t_size src_len, const char *s1, t_size len1, const char *s2, t_size len2, bool casesens)
t_modal_dialog_entry m_entry
void SHARED_EXPORT uPrintCrashInfo_Init(const char *name)
BOOL SHARED_EXPORT uFileExists(const char *fn)
void SHARED_EXPORT ModalDialog_PokeExisting()
uGetOpenFileNameMultiResult * puGetOpenFileNameMultiResult
void from_stream(t_stream p_stream, t_abort &p_abort)
HANDLE SHARED_EXPORT uCreateFileMapping(HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, const char *lpName)
void SHARED_EXPORT uFixAmpersandChars(const char *src, pfc::string_base &out)
string8_t< pfc::alloc_fast_aggressive > string8_fastalloc
t_size SHARED_EXPORT uCharLength(const char *src)
LRESULT uButton_SetCheck(HWND wnd, UINT id, bool state)
T get_item(t_size n) const
void SHARED_EXPORT uGetCommandLine(pfc::string_base &out)
UINT SHARED_EXPORT uRegisterClipboardFormat(const char *name)
t_size length() const
For compatibility with old conventions.
BOOL SHARED_EXPORT uDdeAccessData_Text(HDDEDATA data, pfc::string_base &out)
puGetOpenFileNameMultiResult SHARED_EXPORT uBrowseForFolderEx(HWND parent, const char *title, const char *initPath)
puGetOpenFileNameMultiResult SHARED_EXPORT uEvalKnownFolder(const GUID &id)
BOOL SHARED_EXPORT uDdeQueryString(DWORD ins, HSZ hsz, pfc::string_base &out)