ReactOS 0.4.15-dev-7931-gfd331f1
cdlg.h File Reference
#include "dlgs.h"
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "commctrl.h"
#include "shlobj.h"
#include "shellapi.h"
Include dependency graph for cdlg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  COMDLG32_FR_Data
 

Macros

#define COMDLG32_Atom   MAKEINTATOM(0xa000) /* MS uses this one to identify props */
 
#define FR_WINE_UNICODE   0x80000000
 
#define FR_WINE_REPLACE   0x40000000
 
#define PD32_PRINT_TITLE   7000
 
#define PD32_VALUE_UREADABLE   1104
 
#define PD32_INVALID_PAGE_RANGE   1105
 
#define PD32_FROM_NOT_ABOVE_TO   1106
 
#define PD32_MARGINS_OVERLAP   1107
 
#define PD32_NR_OF_COPIES_EMPTY   1108
 
#define PD32_TOO_LARGE_COPIES   1109
 
#define PD32_PRINT_ERROR   1110
 
#define PD32_NO_DEFAULT_PRINTER   1111
 
#define PD32_CANT_FIND_PRINTER   1112
 
#define PD32_OUT_OF_MEMORY   1113
 
#define PD32_GENERIC_ERROR   1114
 
#define PD32_DRIVER_UNKNOWN   1115
 
#define PD32_NO_DEVICES   1121
 
#define PD32_PRINTER_STATUS_READY   1536
 
#define PD32_PRINTER_STATUS_PAUSED   1537
 
#define PD32_PRINTER_STATUS_ERROR   1538
 
#define PD32_PRINTER_STATUS_PENDING_DELETION   1539
 
#define PD32_PRINTER_STATUS_PAPER_JAM   1540
 
#define PD32_PRINTER_STATUS_PAPER_OUT   1541
 
#define PD32_PRINTER_STATUS_MANUAL_FEED   1542
 
#define PD32_PRINTER_STATUS_PAPER_PROBLEM   1543
 
#define PD32_PRINTER_STATUS_OFFLINE   1544
 
#define PD32_PRINTER_STATUS_IO_ACTIVE   1545
 
#define PD32_PRINTER_STATUS_BUSY   1546
 
#define PD32_PRINTER_STATUS_PRINTING   1547
 
#define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL   1548
 
#define PD32_PRINTER_STATUS_NOT_AVAILABLE   1549
 
#define PD32_PRINTER_STATUS_WAITING   1550
 
#define PD32_PRINTER_STATUS_PROCESSING   1551
 
#define PD32_PRINTER_STATUS_INITIALIZING   1552
 
#define PD32_PRINTER_STATUS_WARMING_UP   1553
 
#define PD32_PRINTER_STATUS_TONER_LOW   1554
 
#define PD32_PRINTER_STATUS_NO_TONER   1555
 
#define PD32_PRINTER_STATUS_PAGE_PUNT   1556
 
#define PD32_PRINTER_STATUS_USER_INTERVENTION   1557
 
#define PD32_PRINTER_STATUS_OUT_OF_MEMORY   1558
 
#define PD32_PRINTER_STATUS_DOOR_OPEN   1559
 
#define PD32_PRINTER_STATUS_SERVER_UNKNOWN   1560
 
#define PD32_PRINTER_STATUS_POWER_SAVE   1561
 
#define PD32_DEFAULT_PRINTER   1582
 
#define PD32_NR_OF_DOCUMENTS_IN_QUEUE   1583
 
#define PD32_MARGINS_IN_INCHES   1585
 
#define PD32_MARGINS_IN_MILLIMETERS   1586
 
#define PD32_MILLIMETERS   1587
 
#define IDS_CHARSET_ANSI   200
 
#define IDS_CHARSET_SYMBOL   201
 
#define IDS_CHARSET_JIS   202
 
#define IDS_CHARSET_HANGUL   203
 
#define IDS_CHARSET_GB2312   204
 
#define IDS_CHARSET_BIG5   205
 
#define IDS_CHARSET_GREEK   206
 
#define IDS_CHARSET_TURKISH   207
 
#define IDS_CHARSET_HEBREW   208
 
#define IDS_CHARSET_ARABIC   209
 
#define IDS_CHARSET_BALTIC   210
 
#define IDS_CHARSET_VIETNAMESE   211
 
#define IDS_CHARSET_RUSSIAN   212
 
#define IDS_CHARSET_EE   213
 
#define IDS_CHARSET_THAI   214
 
#define IDS_CHARSET_JOHAB   215
 
#define IDS_CHARSET_MAC   216
 
#define IDS_CHARSET_OEM   217
 
#define IDS_CHARSET_VISCII   218
 
#define IDS_CHARSET_TCVN   219
 
#define IDS_CHARSET_KOI8   220
 
#define IDS_CHARSET_ISO3   221
 
#define IDS_CHARSET_ISO4   222
 
#define IDS_CHARSET_ISO10   223
 
#define IDS_CHARSET_CELTIC   224
 
#define IDS_FONT_REGULAR   256
 
#define IDS_FONT_BOLD   257
 
#define IDS_FONT_ITALIC   258
 
#define IDS_FONT_BOLD_ITALIC   259
 
#define IDS_COLOR_BLACK   1040
 
#define IDS_COLOR_MAROON   1041
 
#define IDS_COLOR_GREEN   1042
 
#define IDS_COLOR_OLIVE   1043
 
#define IDS_COLOR_NAVY   1044
 
#define IDS_COLOR_PURPLE   1045
 
#define IDS_COLOR_TEAL   1046
 
#define IDS_COLOR_GRAY   1047
 
#define IDS_COLOR_SILVER   1048
 
#define IDS_COLOR_RED   1049
 
#define IDS_COLOR_LIME   1050
 
#define IDS_COLOR_YELLOW   1051
 
#define IDS_COLOR_BLUE   1052
 
#define IDS_COLOR_FUCHSIA   1053
 
#define IDS_COLOR_AQUA   1054
 
#define IDS_COLOR_WHITE   1055
 
#define IDC_COLOR_LUMBAR   702
 
#define IDC_COLOR_EDIT_H   703
 
#define IDC_COLOR_EDIT_S   704
 
#define IDC_COLOR_EDIT_L   705
 
#define IDC_COLOR_EDIT_R   706
 
#define IDC_COLOR_EDIT_G   707
 
#define IDC_COLOR_EDIT_B   708
 
#define IDC_COLOR_RESULT   709
 
#define IDC_COLOR_GRAPH   710
 
#define IDC_COLOR_ADD   712
 
#define IDC_COLOR_RES   713
 
#define IDC_COLOR_DEFINE   719
 
#define IDC_COLOR_PREDEF   720
 
#define IDC_COLOR_USRDEF   721
 
#define IDC_COLOR_HL   723
 
#define IDC_COLOR_SL   724
 
#define IDC_COLOR_LL   725
 
#define IDC_COLOR_RL   726
 
#define IDC_COLOR_GL   727
 
#define IDC_COLOR_BL   728
 
#define IDS_FONT_SIZE   1200
 
#define IDS_SAVE_BUTTON   1201
 
#define IDS_SAVE_IN   1202
 
#define IDS_SAVE   1203
 
#define IDS_SAVE_AS   1204
 
#define IDS_OPEN_FILE   1205
 
#define IDS_SELECT_FOLDER   1206
 
#define IDS_FONT_SIZE_INPUT   1207
 
#define IDS_FAKEDOCTEXT   1300
 
#define ONOPEN_BROWSE   1
 
#define ONOPEN_OPEN   2
 
#define ONOPEN_SEARCH   3
 

Functions

void COMDLG32_SetCommDlgExtendedError (DWORD err) DECLSPEC_HIDDEN
 
LPVOID COMDLG32_AllocMem (int size) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN
 
HRESULT FileOpenDialog_Constructor (IUnknown *pUnkOuter, REFIID riid, void **ppv) DECLSPEC_HIDDEN
 
HRESULT FileSaveDialog_Constructor (IUnknown *pUnkOuter, REFIID riid, void **ppv) DECLSPEC_HIDDEN
 
void COMDLG32_GetCanonicalPath (PCIDLIST_ABSOLUTE pidlAbsCurrent, LPWSTR lpstrFile, LPWSTR lpstrPathAndFile) DECLSPEC_HIDDEN
 
int FILEDLG95_ValidatePathAction (LPWSTR lpstrPathAndFile, IShellFolder **ppsf, HWND hwnd, DWORD flags, BOOL isSaveDlg, int defAction) DECLSPEC_HIDDEN
 
int COMDLG32_SplitFileNames (LPWSTR lpstrEdit, UINT nStrLen, LPWSTR *lpstrFileList, UINT *sizeUsed) DECLSPEC_HIDDEN
 
void FILEDLG95_OnOpenMessage (HWND hwnd, int idCaption, int idText) DECLSPEC_HIDDEN
 
BOOL GetFileName31A (OPENFILENAMEA *lpofn, UINT dlgType) DECLSPEC_HIDDEN
 
BOOL GetFileName31W (OPENFILENAMEW *lpofn, UINT dlgType) DECLSPEC_HIDDEN
 
 LPITEMIDLIST (WINAPI *COMDLG32_SHSimpleIDListFromPathAW)(LPCVOID)
 

Variables

HINSTANCE COMDLG32_hInstance DECLSPEC_HIDDEN
 

Macro Definition Documentation

◆ COMDLG32_Atom

#define COMDLG32_Atom   MAKEINTATOM(0xa000) /* MS uses this one to identify props */

Definition at line 27 of file cdlg.h.

◆ FR_WINE_REPLACE

#define FR_WINE_REPLACE   0x40000000

Definition at line 40 of file cdlg.h.

◆ FR_WINE_UNICODE

#define FR_WINE_UNICODE   0x80000000

Definition at line 39 of file cdlg.h.

◆ IDC_COLOR_ADD

#define IDC_COLOR_ADD   712

Definition at line 164 of file cdlg.h.

◆ IDC_COLOR_BL

#define IDC_COLOR_BL   728

Definition at line 174 of file cdlg.h.

◆ IDC_COLOR_DEFINE

#define IDC_COLOR_DEFINE   719

Definition at line 166 of file cdlg.h.

◆ IDC_COLOR_EDIT_B

#define IDC_COLOR_EDIT_B   708

Definition at line 161 of file cdlg.h.

◆ IDC_COLOR_EDIT_G

#define IDC_COLOR_EDIT_G   707

Definition at line 160 of file cdlg.h.

◆ IDC_COLOR_EDIT_H

#define IDC_COLOR_EDIT_H   703

Definition at line 156 of file cdlg.h.

◆ IDC_COLOR_EDIT_L

#define IDC_COLOR_EDIT_L   705

Definition at line 158 of file cdlg.h.

◆ IDC_COLOR_EDIT_R

#define IDC_COLOR_EDIT_R   706

Definition at line 159 of file cdlg.h.

◆ IDC_COLOR_EDIT_S

#define IDC_COLOR_EDIT_S   704

Definition at line 157 of file cdlg.h.

◆ IDC_COLOR_GL

#define IDC_COLOR_GL   727

Definition at line 173 of file cdlg.h.

◆ IDC_COLOR_GRAPH

#define IDC_COLOR_GRAPH   710

Definition at line 163 of file cdlg.h.

◆ IDC_COLOR_HL

#define IDC_COLOR_HL   723

Definition at line 169 of file cdlg.h.

◆ IDC_COLOR_LL

#define IDC_COLOR_LL   725

Definition at line 171 of file cdlg.h.

◆ IDC_COLOR_LUMBAR

#define IDC_COLOR_LUMBAR   702

Definition at line 155 of file cdlg.h.

◆ IDC_COLOR_PREDEF

#define IDC_COLOR_PREDEF   720

Definition at line 167 of file cdlg.h.

◆ IDC_COLOR_RES

#define IDC_COLOR_RES   713

Definition at line 165 of file cdlg.h.

◆ IDC_COLOR_RESULT

#define IDC_COLOR_RESULT   709

Definition at line 162 of file cdlg.h.

◆ IDC_COLOR_RL

#define IDC_COLOR_RL   726

Definition at line 172 of file cdlg.h.

◆ IDC_COLOR_SL

#define IDC_COLOR_SL   724

Definition at line 170 of file cdlg.h.

◆ IDC_COLOR_USRDEF

#define IDC_COLOR_USRDEF   721

Definition at line 168 of file cdlg.h.

◆ IDS_CHARSET_ANSI

#define IDS_CHARSET_ANSI   200

Definition at line 102 of file cdlg.h.

◆ IDS_CHARSET_ARABIC

#define IDS_CHARSET_ARABIC   209

Definition at line 111 of file cdlg.h.

◆ IDS_CHARSET_BALTIC

#define IDS_CHARSET_BALTIC   210

Definition at line 112 of file cdlg.h.

◆ IDS_CHARSET_BIG5

#define IDS_CHARSET_BIG5   205

Definition at line 107 of file cdlg.h.

◆ IDS_CHARSET_CELTIC

#define IDS_CHARSET_CELTIC   224

Definition at line 126 of file cdlg.h.

◆ IDS_CHARSET_EE

#define IDS_CHARSET_EE   213

Definition at line 115 of file cdlg.h.

◆ IDS_CHARSET_GB2312

#define IDS_CHARSET_GB2312   204

Definition at line 106 of file cdlg.h.

◆ IDS_CHARSET_GREEK

#define IDS_CHARSET_GREEK   206

Definition at line 108 of file cdlg.h.

◆ IDS_CHARSET_HANGUL

#define IDS_CHARSET_HANGUL   203

Definition at line 105 of file cdlg.h.

◆ IDS_CHARSET_HEBREW

#define IDS_CHARSET_HEBREW   208

Definition at line 110 of file cdlg.h.

◆ IDS_CHARSET_ISO10

#define IDS_CHARSET_ISO10   223

Definition at line 125 of file cdlg.h.

◆ IDS_CHARSET_ISO3

#define IDS_CHARSET_ISO3   221

Definition at line 123 of file cdlg.h.

◆ IDS_CHARSET_ISO4

#define IDS_CHARSET_ISO4   222

Definition at line 124 of file cdlg.h.

◆ IDS_CHARSET_JIS

#define IDS_CHARSET_JIS   202

Definition at line 104 of file cdlg.h.

◆ IDS_CHARSET_JOHAB

#define IDS_CHARSET_JOHAB   215

Definition at line 117 of file cdlg.h.

◆ IDS_CHARSET_KOI8

#define IDS_CHARSET_KOI8   220

Definition at line 122 of file cdlg.h.

◆ IDS_CHARSET_MAC

#define IDS_CHARSET_MAC   216

Definition at line 118 of file cdlg.h.

◆ IDS_CHARSET_OEM

#define IDS_CHARSET_OEM   217

Definition at line 119 of file cdlg.h.

◆ IDS_CHARSET_RUSSIAN

#define IDS_CHARSET_RUSSIAN   212

Definition at line 114 of file cdlg.h.

◆ IDS_CHARSET_SYMBOL

#define IDS_CHARSET_SYMBOL   201

Definition at line 103 of file cdlg.h.

◆ IDS_CHARSET_TCVN

#define IDS_CHARSET_TCVN   219

Definition at line 121 of file cdlg.h.

◆ IDS_CHARSET_THAI

#define IDS_CHARSET_THAI   214

Definition at line 116 of file cdlg.h.

◆ IDS_CHARSET_TURKISH

#define IDS_CHARSET_TURKISH   207

Definition at line 109 of file cdlg.h.

◆ IDS_CHARSET_VIETNAMESE

#define IDS_CHARSET_VIETNAMESE   211

Definition at line 113 of file cdlg.h.

◆ IDS_CHARSET_VISCII

#define IDS_CHARSET_VISCII   218

Definition at line 120 of file cdlg.h.

◆ IDS_COLOR_AQUA

#define IDS_COLOR_AQUA   1054

Definition at line 151 of file cdlg.h.

◆ IDS_COLOR_BLACK

#define IDS_COLOR_BLACK   1040

Definition at line 137 of file cdlg.h.

◆ IDS_COLOR_BLUE

#define IDS_COLOR_BLUE   1052

Definition at line 149 of file cdlg.h.

◆ IDS_COLOR_FUCHSIA

#define IDS_COLOR_FUCHSIA   1053

Definition at line 150 of file cdlg.h.

◆ IDS_COLOR_GRAY

#define IDS_COLOR_GRAY   1047

Definition at line 144 of file cdlg.h.

◆ IDS_COLOR_GREEN

#define IDS_COLOR_GREEN   1042

Definition at line 139 of file cdlg.h.

◆ IDS_COLOR_LIME

#define IDS_COLOR_LIME   1050

Definition at line 147 of file cdlg.h.

◆ IDS_COLOR_MAROON

#define IDS_COLOR_MAROON   1041

Definition at line 138 of file cdlg.h.

◆ IDS_COLOR_NAVY

#define IDS_COLOR_NAVY   1044

Definition at line 141 of file cdlg.h.

◆ IDS_COLOR_OLIVE

#define IDS_COLOR_OLIVE   1043

Definition at line 140 of file cdlg.h.

◆ IDS_COLOR_PURPLE

#define IDS_COLOR_PURPLE   1045

Definition at line 142 of file cdlg.h.

◆ IDS_COLOR_RED

#define IDS_COLOR_RED   1049

Definition at line 146 of file cdlg.h.

◆ IDS_COLOR_SILVER

#define IDS_COLOR_SILVER   1048

Definition at line 145 of file cdlg.h.

◆ IDS_COLOR_TEAL

#define IDS_COLOR_TEAL   1046

Definition at line 143 of file cdlg.h.

◆ IDS_COLOR_WHITE

#define IDS_COLOR_WHITE   1055

Definition at line 152 of file cdlg.h.

◆ IDS_COLOR_YELLOW

#define IDS_COLOR_YELLOW   1051

Definition at line 148 of file cdlg.h.

◆ IDS_FAKEDOCTEXT

#define IDS_FAKEDOCTEXT   1300

Definition at line 185 of file cdlg.h.

◆ IDS_FONT_BOLD

#define IDS_FONT_BOLD   257

Definition at line 131 of file cdlg.h.

◆ IDS_FONT_BOLD_ITALIC

#define IDS_FONT_BOLD_ITALIC   259

Definition at line 133 of file cdlg.h.

◆ IDS_FONT_ITALIC

#define IDS_FONT_ITALIC   258

Definition at line 132 of file cdlg.h.

◆ IDS_FONT_REGULAR

#define IDS_FONT_REGULAR   256

Definition at line 130 of file cdlg.h.

◆ IDS_FONT_SIZE

#define IDS_FONT_SIZE   1200

Definition at line 176 of file cdlg.h.

◆ IDS_FONT_SIZE_INPUT

#define IDS_FONT_SIZE_INPUT   1207

Definition at line 183 of file cdlg.h.

◆ IDS_OPEN_FILE

#define IDS_OPEN_FILE   1205

Definition at line 181 of file cdlg.h.

◆ IDS_SAVE

#define IDS_SAVE   1203

Definition at line 179 of file cdlg.h.

◆ IDS_SAVE_AS

#define IDS_SAVE_AS   1204

Definition at line 180 of file cdlg.h.

◆ IDS_SAVE_BUTTON

#define IDS_SAVE_BUTTON   1201

Definition at line 177 of file cdlg.h.

◆ IDS_SAVE_IN

#define IDS_SAVE_IN   1202

Definition at line 178 of file cdlg.h.

◆ IDS_SELECT_FOLDER

#define IDS_SELECT_FOLDER   1206

Definition at line 182 of file cdlg.h.

◆ ONOPEN_BROWSE

#define ONOPEN_BROWSE   1

Definition at line 219 of file cdlg.h.

◆ ONOPEN_OPEN

#define ONOPEN_OPEN   2

Definition at line 220 of file cdlg.h.

◆ ONOPEN_SEARCH

#define ONOPEN_SEARCH   3

Definition at line 221 of file cdlg.h.

◆ PD32_CANT_FIND_PRINTER

#define PD32_CANT_FIND_PRINTER   1112

Definition at line 60 of file cdlg.h.

◆ PD32_DEFAULT_PRINTER

#define PD32_DEFAULT_PRINTER   1582

Definition at line 93 of file cdlg.h.

◆ PD32_DRIVER_UNKNOWN

#define PD32_DRIVER_UNKNOWN   1115

Definition at line 63 of file cdlg.h.

◆ PD32_FROM_NOT_ABOVE_TO

#define PD32_FROM_NOT_ABOVE_TO   1106

Definition at line 54 of file cdlg.h.

◆ PD32_GENERIC_ERROR

#define PD32_GENERIC_ERROR   1114

Definition at line 62 of file cdlg.h.

◆ PD32_INVALID_PAGE_RANGE

#define PD32_INVALID_PAGE_RANGE   1105

Definition at line 53 of file cdlg.h.

◆ PD32_MARGINS_IN_INCHES

#define PD32_MARGINS_IN_INCHES   1585

Definition at line 96 of file cdlg.h.

◆ PD32_MARGINS_IN_MILLIMETERS

#define PD32_MARGINS_IN_MILLIMETERS   1586

Definition at line 97 of file cdlg.h.

◆ PD32_MARGINS_OVERLAP

#define PD32_MARGINS_OVERLAP   1107

Definition at line 55 of file cdlg.h.

◆ PD32_MILLIMETERS

#define PD32_MILLIMETERS   1587

Definition at line 98 of file cdlg.h.

◆ PD32_NO_DEFAULT_PRINTER

#define PD32_NO_DEFAULT_PRINTER   1111

Definition at line 59 of file cdlg.h.

◆ PD32_NO_DEVICES

#define PD32_NO_DEVICES   1121

Definition at line 64 of file cdlg.h.

◆ PD32_NR_OF_COPIES_EMPTY

#define PD32_NR_OF_COPIES_EMPTY   1108

Definition at line 56 of file cdlg.h.

◆ PD32_NR_OF_DOCUMENTS_IN_QUEUE

#define PD32_NR_OF_DOCUMENTS_IN_QUEUE   1583

Definition at line 94 of file cdlg.h.

◆ PD32_OUT_OF_MEMORY

#define PD32_OUT_OF_MEMORY   1113

Definition at line 61 of file cdlg.h.

◆ PD32_PRINT_ERROR

#define PD32_PRINT_ERROR   1110

Definition at line 58 of file cdlg.h.

◆ PD32_PRINT_TITLE

#define PD32_PRINT_TITLE   7000

Definition at line 50 of file cdlg.h.

◆ PD32_PRINTER_STATUS_BUSY

#define PD32_PRINTER_STATUS_BUSY   1546

Definition at line 76 of file cdlg.h.

◆ PD32_PRINTER_STATUS_DOOR_OPEN

#define PD32_PRINTER_STATUS_DOOR_OPEN   1559

Definition at line 89 of file cdlg.h.

◆ PD32_PRINTER_STATUS_ERROR

#define PD32_PRINTER_STATUS_ERROR   1538

Definition at line 68 of file cdlg.h.

◆ PD32_PRINTER_STATUS_INITIALIZING

#define PD32_PRINTER_STATUS_INITIALIZING   1552

Definition at line 82 of file cdlg.h.

◆ PD32_PRINTER_STATUS_IO_ACTIVE

#define PD32_PRINTER_STATUS_IO_ACTIVE   1545

Definition at line 75 of file cdlg.h.

◆ PD32_PRINTER_STATUS_MANUAL_FEED

#define PD32_PRINTER_STATUS_MANUAL_FEED   1542

Definition at line 72 of file cdlg.h.

◆ PD32_PRINTER_STATUS_NO_TONER

#define PD32_PRINTER_STATUS_NO_TONER   1555

Definition at line 85 of file cdlg.h.

◆ PD32_PRINTER_STATUS_NOT_AVAILABLE

#define PD32_PRINTER_STATUS_NOT_AVAILABLE   1549

Definition at line 79 of file cdlg.h.

◆ PD32_PRINTER_STATUS_OFFLINE

#define PD32_PRINTER_STATUS_OFFLINE   1544

Definition at line 74 of file cdlg.h.

◆ PD32_PRINTER_STATUS_OUT_OF_MEMORY

#define PD32_PRINTER_STATUS_OUT_OF_MEMORY   1558

Definition at line 88 of file cdlg.h.

◆ PD32_PRINTER_STATUS_OUTPUT_BIN_FULL

#define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL   1548

Definition at line 78 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAGE_PUNT

#define PD32_PRINTER_STATUS_PAGE_PUNT   1556

Definition at line 86 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAPER_JAM

#define PD32_PRINTER_STATUS_PAPER_JAM   1540

Definition at line 70 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAPER_OUT

#define PD32_PRINTER_STATUS_PAPER_OUT   1541

Definition at line 71 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAPER_PROBLEM

#define PD32_PRINTER_STATUS_PAPER_PROBLEM   1543

Definition at line 73 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAUSED

#define PD32_PRINTER_STATUS_PAUSED   1537

Definition at line 67 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PENDING_DELETION

#define PD32_PRINTER_STATUS_PENDING_DELETION   1539

Definition at line 69 of file cdlg.h.

◆ PD32_PRINTER_STATUS_POWER_SAVE

#define PD32_PRINTER_STATUS_POWER_SAVE   1561

Definition at line 91 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PRINTING

#define PD32_PRINTER_STATUS_PRINTING   1547

Definition at line 77 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PROCESSING

#define PD32_PRINTER_STATUS_PROCESSING   1551

Definition at line 81 of file cdlg.h.

◆ PD32_PRINTER_STATUS_READY

#define PD32_PRINTER_STATUS_READY   1536

Definition at line 66 of file cdlg.h.

◆ PD32_PRINTER_STATUS_SERVER_UNKNOWN

#define PD32_PRINTER_STATUS_SERVER_UNKNOWN   1560

Definition at line 90 of file cdlg.h.

◆ PD32_PRINTER_STATUS_TONER_LOW

#define PD32_PRINTER_STATUS_TONER_LOW   1554

Definition at line 84 of file cdlg.h.

◆ PD32_PRINTER_STATUS_USER_INTERVENTION

#define PD32_PRINTER_STATUS_USER_INTERVENTION   1557

Definition at line 87 of file cdlg.h.

◆ PD32_PRINTER_STATUS_WAITING

#define PD32_PRINTER_STATUS_WAITING   1550

Definition at line 80 of file cdlg.h.

◆ PD32_PRINTER_STATUS_WARMING_UP

#define PD32_PRINTER_STATUS_WARMING_UP   1553

Definition at line 83 of file cdlg.h.

◆ PD32_TOO_LARGE_COPIES

#define PD32_TOO_LARGE_COPIES   1109

Definition at line 57 of file cdlg.h.

◆ PD32_VALUE_UREADABLE

#define PD32_VALUE_UREADABLE   1104

Definition at line 52 of file cdlg.h.

Function Documentation

◆ COMDLG32_AllocMem()

LPVOID COMDLG32_AllocMem ( int  size)

Definition at line 109 of file cdlg32.c.

110{
111 void *ptr = heap_alloc_zero(size);
112
113 if (!ptr)
114 {
116 return NULL;
117 }
118
119 return ptr;
120}
#define CDERR_MEMALLOCFAILURE
Definition: cderr.h:14
void COMDLG32_SetCommDlgExtendedError(DWORD err)
Definition: cdlg32.c:128
#define NULL
Definition: types.h:112
GLsizeiptr size
Definition: glext.h:5919
static PVOID ptr
Definition: dispmode.c:27

Referenced by FindTextA(), FindTextW(), ReplaceTextA(), and ReplaceTextW().

◆ COMDLG32_GetCanonicalPath()

void COMDLG32_GetCanonicalPath ( PCIDLIST_ABSOLUTE  pidlAbsCurrent,
LPWSTR  lpstrFile,
LPWSTR  lpstrPathAndFile 
)

Definition at line 752 of file filedlg.c.

754{
755 WCHAR lpstrTemp[MAX_PATH];
756
757 /* Get the current directory name */
758 if (!COMDLG32_GetDisplayNameOf(pidlAbsCurrent, lpstrPathAndFile))
759 {
760 /* last fallback */
761 GetCurrentDirectoryW(MAX_PATH, lpstrPathAndFile);
762 }
763 PathAddBackslashW(lpstrPathAndFile);
764
765 TRACE("current directory=%s, file=%s\n", debugstr_w(lpstrPathAndFile), debugstr_w(lpstrFile));
766
767 /* if the user specified a fully qualified path use it */
768 if(PathIsRelativeW(lpstrFile))
769 {
770 lstrcatW(lpstrPathAndFile, lpstrFile);
771 }
772 else
773 {
774 /* does the path have a drive letter? */
775 if (PathGetDriveNumberW(lpstrFile) == -1)
776 lstrcpyW(lpstrPathAndFile+2, lpstrFile);
777 else
778 lstrcpyW(lpstrPathAndFile, lpstrFile);
779 }
780
781 /* resolve "." and ".." */
782 PathCanonicalizeW(lpstrTemp, lpstrPathAndFile );
783 lstrcpyW(lpstrPathAndFile, lpstrTemp);
784 TRACE("canon=%s\n", debugstr_w(lpstrPathAndFile));
785}
static BOOL COMDLG32_GetDisplayNameOf(LPCITEMIDLIST pidl, LPWSTR pwszPath)
Definition: filedlg.c:731
#define GetCurrentDirectoryW(x, y)
Definition: compat.h:756
#define MAX_PATH
Definition: compat.h:34
#define lstrcpyW
Definition: compat.h:749
int WINAPI PathGetDriveNumberW(const WCHAR *path)
Definition: path.c:553
BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath)
Definition: path.c:1579
#define debugstr_w
Definition: kernel32.h:32
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
Definition: lstring.c:274
#define PathCanonicalizeW
Definition: pathcch.h:313
#define PathAddBackslashW
Definition: pathcch.h:301
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by FILEDLG95_OnOpen(), and on_default_action().

◆ COMDLG32_SetCommDlgExtendedError()

void COMDLG32_SetCommDlgExtendedError ( DWORD  err)

Definition at line 128 of file cdlg32.c.

129{
130 TRACE("(%08x)\n", err);
135 else
136 FIXME("No Tls Space\n");
137}
#define FIXME(fmt,...)
Definition: debug.h:111
static DWORD COMDLG32_TlsIndex
Definition: cdlg32.c:47
DWORD WINAPI TlsAlloc(VOID)
Definition: thread.c:1100
BOOL WINAPI TlsSetValue(IN DWORD Index, IN LPVOID Value)
Definition: thread.c:1276
#define err(...)
uint32_t DWORD_PTR
Definition: typedefs.h:65
#define TLS_OUT_OF_INDEXES
Definition: winbase.h:549

Referenced by ChooseColorW(), ChooseFontA(), ChooseFontW(), COMDLG32_AllocMem(), COMDLG32_FR_CheckPartial(), COMDLG32_FR_DoFindReplace(), CreateTemplateDialog(), FD31_GetTemplate(), FILEDLG95_OnOpen(), GetFileName95(), GetOpenFileNameA(), GetOpenFileNameW(), GetSaveFileNameA(), GetSaveFileNameW(), init_filedlg_infoW(), pagesetup_common(), PRINTDLG_WMInitDialog(), PRINTDLG_WMInitDialogW(), PrintDlgA(), PrintDlgExA(), PrintDlgExW(), and PrintDlgW().

◆ COMDLG32_SplitFileNames()

int COMDLG32_SplitFileNames ( LPWSTR  lpstrEdit,
UINT  nStrLen,
LPWSTR lpstrFileList,
UINT sizeUsed 
)

Definition at line 792 of file filedlg.c.

793{
794 UINT nStrCharCount = 0; /* index in src buffer */
795 UINT nFileIndex = 0; /* index in dest buffer */
796 UINT nFileCount = 0; /* number of files */
797
798 /* we might get single filename without any '"',
799 * so we need nStrLen + terminating \0 + end-of-list \0 */
800 *lpstrFileList = heap_alloc((nStrLen + 2) * sizeof(WCHAR));
801 *sizeUsed = 0;
802
803 /* build delimited file list from filenames */
804 while ( nStrCharCount <= nStrLen )
805 {
806 if ( lpstrEdit[nStrCharCount]=='"' )
807 {
808 nStrCharCount++;
809 while ((nStrCharCount <= nStrLen) && (lpstrEdit[nStrCharCount]!='"'))
810 {
811 (*lpstrFileList)[nFileIndex++] = lpstrEdit[nStrCharCount];
812 nStrCharCount++;
813 }
814 (*lpstrFileList)[nFileIndex++] = 0;
815 nFileCount++;
816 }
817 nStrCharCount++;
818 }
819
820 /* single, unquoted string */
821 if ((nStrLen > 0) && (nFileIndex == 0) )
822 {
823 lstrcpyW(*lpstrFileList, lpstrEdit);
824 nFileIndex = lstrlenW(lpstrEdit) + 1;
825 nFileCount = 1;
826 }
827
828 /* trailing \0 */
829 (*lpstrFileList)[nFileIndex++] = '\0';
830
831 *sizeUsed = nFileIndex;
832 return nFileCount;
833}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
#define lstrlenW
Definition: compat.h:750
unsigned int UINT
Definition: ndis.h:50

Referenced by FILEDLG95_FILENAME_GetFileNames(), and on_default_action().

◆ FILEDLG95_OnOpenMessage()

void FILEDLG95_OnOpenMessage ( HWND  hwnd,
int  idCaption,
int  idText 
)

Definition at line 2861 of file filedlg.c.

2862{
2863 WCHAR strMsgTitle[MAX_PATH];
2864 WCHAR strMsgText [MAX_PATH];
2865 if (idCaption)
2866 LoadStringW(COMDLG32_hInstance, idCaption, strMsgTitle, ARRAY_SIZE(strMsgTitle));
2867 else
2868 strMsgTitle[0] = '\0';
2869 LoadStringW(COMDLG32_hInstance, idText, strMsgText, ARRAY_SIZE(strMsgText));
2870 MessageBoxW(hwnd,strMsgText, strMsgTitle, MB_OK | MB_ICONHAND);
2871}
#define ARRAY_SIZE(A)
Definition: main.h:33
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define MB_ICONHAND
Definition: winuser.h:788
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_OK
Definition: winuser.h:790

Referenced by FILEDLG95_ValidatePathAction(), and on_default_action().

◆ FILEDLG95_ValidatePathAction()

int FILEDLG95_ValidatePathAction ( LPWSTR  lpstrPathAndFile,
IShellFolder **  ppsf,
HWND  hwnd,
DWORD  flags,
BOOL  isSaveDlg,
int  defAction 
)

Definition at line 2962 of file filedlg.c.

2965{
2966 int nOpenAction = defAction;
2967 LPWSTR lpszTemp, lpszTemp1;
2968 LPITEMIDLIST pidl = NULL;
2969 static const WCHAR szwInvalid[] = { '/',':','<','>','|', 0};
2970
2971 /* check for invalid chars */
2972 if((wcspbrk(lpstrPathAndFile+3, szwInvalid) != NULL) && !(flags & OFN_NOVALIDATE))
2973 {
2975 return FALSE;
2976 }
2977
2978 if (FAILED (SHGetDesktopFolder(ppsf))) return FALSE;
2979
2980 lpszTemp1 = lpszTemp = lpstrPathAndFile;
2981 while (lpszTemp1)
2982 {
2983 LPSHELLFOLDER lpsfChild;
2984 WCHAR lpwstrTemp[MAX_PATH];
2985 DWORD dwEaten, dwAttributes;
2986 LPWSTR p;
2987
2988 lstrcpyW(lpwstrTemp, lpszTemp);
2989 p = PathFindNextComponentW(lpwstrTemp);
2990
2991 if (!p) break; /* end of path */
2992
2993 *p = 0;
2994 lpszTemp = lpszTemp + lstrlenW(lpwstrTemp);
2995
2996 /* There are no wildcards when OFN_NOVALIDATE is set */
2997 if(*lpszTemp==0 && !(flags & OFN_NOVALIDATE))
2998 {
2999 static const WCHAR wszWild[] = { '*', '?', 0 };
3000 /* if the last element is a wildcard do a search */
3001 if(wcspbrk(lpszTemp1, wszWild) != NULL)
3002 {
3003 nOpenAction = ONOPEN_SEARCH;
3004 break;
3005 }
3006 }
3007 lpszTemp1 = lpszTemp;
3008
3009 TRACE("parse now=%s next=%s sf=%p\n",debugstr_w(lpwstrTemp), debugstr_w(lpszTemp), *ppsf);
3010
3011 /* append a backslash to drive letters */
3012 if(lstrlenW(lpwstrTemp)==2 && lpwstrTemp[1] == ':' &&
3013 ((lpwstrTemp[0] >= 'a' && lpwstrTemp[0] <= 'z') ||
3014 (lpwstrTemp[0] >= 'A' && lpwstrTemp[0] <= 'Z')))
3015 {
3016 PathAddBackslashW(lpwstrTemp);
3017 }
3018
3019 dwAttributes = SFGAO_FOLDER | SFGAO_FILESYSANCESTOR;
3020 if(SUCCEEDED(IShellFolder_ParseDisplayName(*ppsf, hwnd, NULL, lpwstrTemp, &dwEaten, &pidl, &dwAttributes)))
3021 {
3022 /* the path component is valid, we have a pidl of the next path component */
3023 TRACE("parse OK attr=0x%08x pidl=%p\n", dwAttributes, pidl);
3024 if((dwAttributes & (SFGAO_FOLDER | SFGAO_FILESYSANCESTOR)) == (SFGAO_FOLDER | SFGAO_FILESYSANCESTOR))
3025 {
3026 if(FAILED(IShellFolder_BindToObject(*ppsf, pidl, 0, &IID_IShellFolder, (LPVOID*)&lpsfChild)))
3027 {
3028 ERR("bind to failed\n"); /* should not fail */
3029 break;
3030 }
3031 IShellFolder_Release(*ppsf);
3032 *ppsf = lpsfChild;
3033 lpsfChild = NULL;
3034 }
3035 else
3036 {
3037 TRACE("value\n");
3038
3039 /* end dialog, return value */
3040 nOpenAction = ONOPEN_OPEN;
3041 break;
3042 }
3043 ILFree(pidl);
3044 pidl = NULL;
3045 }
3046 else if (!(flags & OFN_NOVALIDATE))
3047 {
3048 if(*lpszTemp || /* points to trailing null for last path element */
3049 (lpwstrTemp[lstrlenW(lpwstrTemp)-1] == '\\')) /* or if last element ends in '\' */
3050 {
3052 {
3054 break;
3055 }
3056 }
3057 else
3058 {
3059 if( (flags & OFN_FILEMUSTEXIST) && !isSaveDlg )
3060 {
3061#ifdef __REACTOS__
3062 FILEDLG95_AddDotExtIfNeeded(fodInfos, lpstrPathAndFile);
3063 if (!PathFileExistsW(lpstrPathAndFile))
3064 {
3066 break;
3067 }
3068#else
3070 break;
3071#endif
3072 }
3073 }
3074 /* change to the current folder */
3075 nOpenAction = ONOPEN_OPEN;
3076 break;
3077 }
3078 else
3079 {
3080 nOpenAction = ONOPEN_OPEN;
3081 break;
3082 }
3083 }
3084 ILFree(pidl);
3085
3086 return nOpenAction;
3087}
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
#define ERR(fmt,...)
Definition: debug.h:110
#define ONOPEN_OPEN
Definition: cdlg.h:220
#define ONOPEN_SEARCH
Definition: cdlg.h:221
#define OFN_NOVALIDATE
Definition: commdlg.h:115
#define OFN_FILEMUSTEXIST
Definition: commdlg.h:106
#define OFN_PATHMUSTEXIST
Definition: commdlg.h:117
#define FALSE
Definition: types.h:117
void FILEDLG95_OnOpenMessage(HWND hwnd, int idCaption, int idText)
Definition: filedlg.c:2861
BOOL WINAPI PathFileExistsW(LPCWSTR lpszPath)
Definition: path.c:1777
LPWSTR WINAPI PathFindNextComponentW(LPCWSTR lpszPath)
Definition: path.c:2579
#define IDS_INVALID_FILENAME_TITLE
#define IDS_PATHNOTEXISTING
#define IDS_FILENOTEXISTING
#define IDS_INVALID_FILENAME
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
GLfloat GLfloat p
Definition: glext.h:8902
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
void WINAPI ILFree(LPITEMIDLIST pidl)
Definition: pidl.c:938
_Check_return_ _CRTIMP _CONST_RETURN wchar_t *__cdecl wcspbrk(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_Control)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
DWORD dwAttributes
Definition: vdmdbg.h:34
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by FILEDLG95_OnOpen(), and on_default_action().

◆ FileOpenDialog_Constructor()

HRESULT FileOpenDialog_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
void **  ppv 
)

Definition at line 4664 of file itemdlg.c.

4665{
4666 return FileDialog_constructor(pUnkOuter, riid, ppv, ITEMDLG_TYPE_OPEN);
4667}
@ ITEMDLG_TYPE_OPEN
Definition: itemdlg.c:58
static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv, enum ITEMDLG_TYPE type)
Definition: itemdlg.c:4600
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by DllGetClassObject().

◆ FileSaveDialog_Constructor()

HRESULT FileSaveDialog_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
void **  ppv 
)

Definition at line 4669 of file itemdlg.c.

4670{
4671 return FileDialog_constructor(pUnkOuter, riid, ppv, ITEMDLG_TYPE_SAVE);
4672}
@ ITEMDLG_TYPE_SAVE
Definition: itemdlg.c:59

Referenced by DllGetClassObject().

◆ GetFileName31A()

BOOL GetFileName31A ( OPENFILENAMEA lpofn,
UINT  dlgType 
)

Definition at line 1148 of file filedlg31.c.

1149{
1150 BOOL bRet = FALSE;
1151 PFD31_DATA lfs;
1152
1153 if (!lpofn || !FD31_Init()) return FALSE;
1154
1155 TRACE("ofn flags %08x\n", lpofn->Flags);
1156 lfs = FD31_AllocPrivate((LPARAM) lpofn, dlgType, FALSE);
1157 if (lfs)
1158 {
1162 }
1163
1164 TRACE("return lpstrFile='%s' !\n", lpofn->lpstrFile);
1165 return bRet;
1166}
static PFD31_DATA FD31_AllocPrivate(LPARAM lParam, UINT dlgType, BOOL IsUnicode)
Definition: filedlg31.c:918
static void FD31_DestroyPrivate(PFD31_DATA lfs)
Definition: filedlg31.c:835
static BOOL FD31_Init(void)
Definition: filedlg31.c:78
static INT_PTR CALLBACK FD31_FileOpenDlgProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
Definition: filedlg31.c:1100
unsigned int BOOL
Definition: ntddk_ex.h:94
LPCVOID template
Definition: filedlg31.c:68
HWND hwndOwner
Definition: commdlg.h:330
LPSTR lpstrFile
Definition: commdlg.h:336
DWORD Flags
Definition: commdlg.h:342
LONG_PTR LPARAM
Definition: windef.h:208
INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)

Referenced by GetOpenFileNameA(), and GetSaveFileNameA().

◆ GetFileName31W()

BOOL GetFileName31W ( OPENFILENAMEW lpofn,
UINT  dlgType 
)

Definition at line 1173 of file filedlg31.c.

1174{
1175 BOOL bRet = FALSE;
1176 PFD31_DATA lfs;
1177
1178 if (!lpofn || !FD31_Init()) return FALSE;
1179
1180 lfs = FD31_AllocPrivate((LPARAM) lpofn, dlgType, TRUE);
1181 if (lfs)
1182 {
1186 }
1187
1188 TRACE("file %s, file offset %d, ext offset %d\n",
1189 debugstr_w(lpofn->lpstrFile), lpofn->nFileOffset, lpofn->nFileExtension);
1190 return bRet;
1191}
#define TRUE
Definition: types.h:120
HWND hwndOwner
Definition: commdlg.h:361
WORD nFileExtension
Definition: commdlg.h:375
LPWSTR lpstrFile
Definition: commdlg.h:367
WORD nFileOffset
Definition: commdlg.h:374
INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)

Referenced by GetOpenFileNameW(), and GetSaveFileNameW().

◆ LPITEMIDLIST()

LPITEMIDLIST ( WINAPI COMDLG32_SHSimpleIDListFromPathAW)

Variable Documentation

◆ DECLSPEC_HIDDEN

HINSTANCE COMDLG32_hInstance DECLSPEC_HIDDEN
extern

Definition at line 289 of file d3dcompiler_private.h.