ReactOS  0.4.13-dev-73-gcfe54aa
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 37 of file cdlg.h.

◆ FR_WINE_UNICODE

#define FR_WINE_UNICODE   0x80000000

Definition at line 36 of file cdlg.h.

◆ IDC_COLOR_ADD

#define IDC_COLOR_ADD   712

Definition at line 161 of file cdlg.h.

◆ IDC_COLOR_BL

#define IDC_COLOR_BL   728

Definition at line 171 of file cdlg.h.

◆ IDC_COLOR_DEFINE

#define IDC_COLOR_DEFINE   719

Definition at line 163 of file cdlg.h.

◆ IDC_COLOR_EDIT_B

#define IDC_COLOR_EDIT_B   708

Definition at line 158 of file cdlg.h.

◆ IDC_COLOR_EDIT_G

#define IDC_COLOR_EDIT_G   707

Definition at line 157 of file cdlg.h.

◆ IDC_COLOR_EDIT_H

#define IDC_COLOR_EDIT_H   703

Definition at line 153 of file cdlg.h.

◆ IDC_COLOR_EDIT_L

#define IDC_COLOR_EDIT_L   705

Definition at line 155 of file cdlg.h.

◆ IDC_COLOR_EDIT_R

#define IDC_COLOR_EDIT_R   706

Definition at line 156 of file cdlg.h.

◆ IDC_COLOR_EDIT_S

#define IDC_COLOR_EDIT_S   704

Definition at line 154 of file cdlg.h.

◆ IDC_COLOR_GL

#define IDC_COLOR_GL   727

Definition at line 170 of file cdlg.h.

◆ IDC_COLOR_GRAPH

#define IDC_COLOR_GRAPH   710

Definition at line 160 of file cdlg.h.

◆ IDC_COLOR_HL

#define IDC_COLOR_HL   723

Definition at line 166 of file cdlg.h.

◆ IDC_COLOR_LL

#define IDC_COLOR_LL   725

Definition at line 168 of file cdlg.h.

◆ IDC_COLOR_LUMBAR

#define IDC_COLOR_LUMBAR   702

Definition at line 152 of file cdlg.h.

◆ IDC_COLOR_PREDEF

#define IDC_COLOR_PREDEF   720

Definition at line 164 of file cdlg.h.

◆ IDC_COLOR_RES

#define IDC_COLOR_RES   713

Definition at line 162 of file cdlg.h.

◆ IDC_COLOR_RESULT

#define IDC_COLOR_RESULT   709

Definition at line 159 of file cdlg.h.

◆ IDC_COLOR_RL

#define IDC_COLOR_RL   726

Definition at line 169 of file cdlg.h.

◆ IDC_COLOR_SL

#define IDC_COLOR_SL   724

Definition at line 167 of file cdlg.h.

◆ IDC_COLOR_USRDEF

#define IDC_COLOR_USRDEF   721

Definition at line 165 of file cdlg.h.

◆ IDS_CHARSET_ANSI

#define IDS_CHARSET_ANSI   200

Definition at line 99 of file cdlg.h.

◆ IDS_CHARSET_ARABIC

#define IDS_CHARSET_ARABIC   209

Definition at line 108 of file cdlg.h.

◆ IDS_CHARSET_BALTIC

#define IDS_CHARSET_BALTIC   210

Definition at line 109 of file cdlg.h.

◆ IDS_CHARSET_BIG5

#define IDS_CHARSET_BIG5   205

Definition at line 104 of file cdlg.h.

◆ IDS_CHARSET_CELTIC

#define IDS_CHARSET_CELTIC   224

Definition at line 123 of file cdlg.h.

◆ IDS_CHARSET_EE

#define IDS_CHARSET_EE   213

Definition at line 112 of file cdlg.h.

◆ IDS_CHARSET_GB2312

#define IDS_CHARSET_GB2312   204

Definition at line 103 of file cdlg.h.

◆ IDS_CHARSET_GREEK

#define IDS_CHARSET_GREEK   206

Definition at line 105 of file cdlg.h.

◆ IDS_CHARSET_HANGUL

#define IDS_CHARSET_HANGUL   203

Definition at line 102 of file cdlg.h.

◆ IDS_CHARSET_HEBREW

#define IDS_CHARSET_HEBREW   208

Definition at line 107 of file cdlg.h.

◆ IDS_CHARSET_ISO10

#define IDS_CHARSET_ISO10   223

Definition at line 122 of file cdlg.h.

◆ IDS_CHARSET_ISO3

#define IDS_CHARSET_ISO3   221

Definition at line 120 of file cdlg.h.

◆ IDS_CHARSET_ISO4

#define IDS_CHARSET_ISO4   222

Definition at line 121 of file cdlg.h.

◆ IDS_CHARSET_JIS

#define IDS_CHARSET_JIS   202

Definition at line 101 of file cdlg.h.

◆ IDS_CHARSET_JOHAB

#define IDS_CHARSET_JOHAB   215

Definition at line 114 of file cdlg.h.

◆ IDS_CHARSET_KOI8

#define IDS_CHARSET_KOI8   220

Definition at line 119 of file cdlg.h.

◆ IDS_CHARSET_MAC

#define IDS_CHARSET_MAC   216

Definition at line 115 of file cdlg.h.

◆ IDS_CHARSET_OEM

#define IDS_CHARSET_OEM   217

Definition at line 116 of file cdlg.h.

◆ IDS_CHARSET_RUSSIAN

#define IDS_CHARSET_RUSSIAN   212

Definition at line 111 of file cdlg.h.

◆ IDS_CHARSET_SYMBOL

#define IDS_CHARSET_SYMBOL   201

Definition at line 100 of file cdlg.h.

◆ IDS_CHARSET_TCVN

#define IDS_CHARSET_TCVN   219

Definition at line 118 of file cdlg.h.

◆ IDS_CHARSET_THAI

#define IDS_CHARSET_THAI   214

Definition at line 113 of file cdlg.h.

◆ IDS_CHARSET_TURKISH

#define IDS_CHARSET_TURKISH   207

Definition at line 106 of file cdlg.h.

◆ IDS_CHARSET_VIETNAMESE

#define IDS_CHARSET_VIETNAMESE   211

Definition at line 110 of file cdlg.h.

◆ IDS_CHARSET_VISCII

#define IDS_CHARSET_VISCII   218

Definition at line 117 of file cdlg.h.

◆ IDS_COLOR_AQUA

#define IDS_COLOR_AQUA   1054

Definition at line 148 of file cdlg.h.

◆ IDS_COLOR_BLACK

#define IDS_COLOR_BLACK   1040

Definition at line 134 of file cdlg.h.

◆ IDS_COLOR_BLUE

#define IDS_COLOR_BLUE   1052

Definition at line 146 of file cdlg.h.

◆ IDS_COLOR_FUCHSIA

#define IDS_COLOR_FUCHSIA   1053

Definition at line 147 of file cdlg.h.

◆ IDS_COLOR_GRAY

#define IDS_COLOR_GRAY   1047

Definition at line 141 of file cdlg.h.

◆ IDS_COLOR_GREEN

#define IDS_COLOR_GREEN   1042

Definition at line 136 of file cdlg.h.

◆ IDS_COLOR_LIME

#define IDS_COLOR_LIME   1050

Definition at line 144 of file cdlg.h.

◆ IDS_COLOR_MAROON

#define IDS_COLOR_MAROON   1041

Definition at line 135 of file cdlg.h.

◆ IDS_COLOR_NAVY

#define IDS_COLOR_NAVY   1044

Definition at line 138 of file cdlg.h.

◆ IDS_COLOR_OLIVE

#define IDS_COLOR_OLIVE   1043

Definition at line 137 of file cdlg.h.

◆ IDS_COLOR_PURPLE

#define IDS_COLOR_PURPLE   1045

Definition at line 139 of file cdlg.h.

◆ IDS_COLOR_RED

#define IDS_COLOR_RED   1049

Definition at line 143 of file cdlg.h.

◆ IDS_COLOR_SILVER

#define IDS_COLOR_SILVER   1048

Definition at line 142 of file cdlg.h.

◆ IDS_COLOR_TEAL

#define IDS_COLOR_TEAL   1046

Definition at line 140 of file cdlg.h.

◆ IDS_COLOR_WHITE

#define IDS_COLOR_WHITE   1055

Definition at line 149 of file cdlg.h.

◆ IDS_COLOR_YELLOW

#define IDS_COLOR_YELLOW   1051

Definition at line 145 of file cdlg.h.

◆ IDS_FAKEDOCTEXT

#define IDS_FAKEDOCTEXT   1300

Definition at line 182 of file cdlg.h.

◆ IDS_FONT_BOLD

#define IDS_FONT_BOLD   257

Definition at line 128 of file cdlg.h.

◆ IDS_FONT_BOLD_ITALIC

#define IDS_FONT_BOLD_ITALIC   259

Definition at line 130 of file cdlg.h.

◆ IDS_FONT_ITALIC

#define IDS_FONT_ITALIC   258

Definition at line 129 of file cdlg.h.

◆ IDS_FONT_REGULAR

#define IDS_FONT_REGULAR   256

Definition at line 127 of file cdlg.h.

◆ IDS_FONT_SIZE

#define IDS_FONT_SIZE   1200

Definition at line 173 of file cdlg.h.

◆ IDS_FONT_SIZE_INPUT

#define IDS_FONT_SIZE_INPUT   1207

Definition at line 180 of file cdlg.h.

◆ IDS_OPEN_FILE

#define IDS_OPEN_FILE   1205

Definition at line 178 of file cdlg.h.

◆ IDS_SAVE

#define IDS_SAVE   1203

Definition at line 176 of file cdlg.h.

◆ IDS_SAVE_AS

#define IDS_SAVE_AS   1204

Definition at line 177 of file cdlg.h.

◆ IDS_SAVE_BUTTON

#define IDS_SAVE_BUTTON   1201

Definition at line 174 of file cdlg.h.

◆ IDS_SAVE_IN

#define IDS_SAVE_IN   1202

Definition at line 175 of file cdlg.h.

◆ IDS_SELECT_FOLDER

#define IDS_SELECT_FOLDER   1206

Definition at line 179 of file cdlg.h.

◆ ONOPEN_BROWSE

#define ONOPEN_BROWSE   1

Definition at line 210 of file cdlg.h.

◆ ONOPEN_OPEN

#define ONOPEN_OPEN   2

Definition at line 211 of file cdlg.h.

◆ ONOPEN_SEARCH

#define ONOPEN_SEARCH   3

Definition at line 212 of file cdlg.h.

◆ PD32_CANT_FIND_PRINTER

#define PD32_CANT_FIND_PRINTER   1112

Definition at line 57 of file cdlg.h.

◆ PD32_DEFAULT_PRINTER

#define PD32_DEFAULT_PRINTER   1582

Definition at line 90 of file cdlg.h.

◆ PD32_DRIVER_UNKNOWN

#define PD32_DRIVER_UNKNOWN   1115

Definition at line 60 of file cdlg.h.

◆ PD32_FROM_NOT_ABOVE_TO

#define PD32_FROM_NOT_ABOVE_TO   1106

Definition at line 51 of file cdlg.h.

◆ PD32_GENERIC_ERROR

#define PD32_GENERIC_ERROR   1114

Definition at line 59 of file cdlg.h.

◆ PD32_INVALID_PAGE_RANGE

#define PD32_INVALID_PAGE_RANGE   1105

Definition at line 50 of file cdlg.h.

◆ PD32_MARGINS_IN_INCHES

#define PD32_MARGINS_IN_INCHES   1585

Definition at line 93 of file cdlg.h.

◆ PD32_MARGINS_IN_MILLIMETERS

#define PD32_MARGINS_IN_MILLIMETERS   1586

Definition at line 94 of file cdlg.h.

◆ PD32_MARGINS_OVERLAP

#define PD32_MARGINS_OVERLAP   1107

Definition at line 52 of file cdlg.h.

◆ PD32_MILLIMETERS

#define PD32_MILLIMETERS   1587

Definition at line 95 of file cdlg.h.

◆ PD32_NO_DEFAULT_PRINTER

#define PD32_NO_DEFAULT_PRINTER   1111

Definition at line 56 of file cdlg.h.

◆ PD32_NO_DEVICES

#define PD32_NO_DEVICES   1121

Definition at line 61 of file cdlg.h.

◆ PD32_NR_OF_COPIES_EMPTY

#define PD32_NR_OF_COPIES_EMPTY   1108

Definition at line 53 of file cdlg.h.

◆ PD32_NR_OF_DOCUMENTS_IN_QUEUE

#define PD32_NR_OF_DOCUMENTS_IN_QUEUE   1583

Definition at line 91 of file cdlg.h.

◆ PD32_OUT_OF_MEMORY

#define PD32_OUT_OF_MEMORY   1113

Definition at line 58 of file cdlg.h.

◆ PD32_PRINT_ERROR

#define PD32_PRINT_ERROR   1110

Definition at line 55 of file cdlg.h.

◆ PD32_PRINT_TITLE

#define PD32_PRINT_TITLE   7000

Definition at line 47 of file cdlg.h.

◆ PD32_PRINTER_STATUS_BUSY

#define PD32_PRINTER_STATUS_BUSY   1546

Definition at line 73 of file cdlg.h.

◆ PD32_PRINTER_STATUS_DOOR_OPEN

#define PD32_PRINTER_STATUS_DOOR_OPEN   1559

Definition at line 86 of file cdlg.h.

◆ PD32_PRINTER_STATUS_ERROR

#define PD32_PRINTER_STATUS_ERROR   1538

Definition at line 65 of file cdlg.h.

◆ PD32_PRINTER_STATUS_INITIALIZING

#define PD32_PRINTER_STATUS_INITIALIZING   1552

Definition at line 79 of file cdlg.h.

◆ PD32_PRINTER_STATUS_IO_ACTIVE

#define PD32_PRINTER_STATUS_IO_ACTIVE   1545

Definition at line 72 of file cdlg.h.

◆ PD32_PRINTER_STATUS_MANUAL_FEED

#define PD32_PRINTER_STATUS_MANUAL_FEED   1542

Definition at line 69 of file cdlg.h.

◆ PD32_PRINTER_STATUS_NO_TONER

#define PD32_PRINTER_STATUS_NO_TONER   1555

Definition at line 82 of file cdlg.h.

◆ PD32_PRINTER_STATUS_NOT_AVAILABLE

#define PD32_PRINTER_STATUS_NOT_AVAILABLE   1549

Definition at line 76 of file cdlg.h.

◆ PD32_PRINTER_STATUS_OFFLINE

#define PD32_PRINTER_STATUS_OFFLINE   1544

Definition at line 71 of file cdlg.h.

◆ PD32_PRINTER_STATUS_OUT_OF_MEMORY

#define PD32_PRINTER_STATUS_OUT_OF_MEMORY   1558

Definition at line 85 of file cdlg.h.

◆ PD32_PRINTER_STATUS_OUTPUT_BIN_FULL

#define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL   1548

Definition at line 75 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAGE_PUNT

#define PD32_PRINTER_STATUS_PAGE_PUNT   1556

Definition at line 83 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAPER_JAM

#define PD32_PRINTER_STATUS_PAPER_JAM   1540

Definition at line 67 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAPER_OUT

#define PD32_PRINTER_STATUS_PAPER_OUT   1541

Definition at line 68 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAPER_PROBLEM

#define PD32_PRINTER_STATUS_PAPER_PROBLEM   1543

Definition at line 70 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PAUSED

#define PD32_PRINTER_STATUS_PAUSED   1537

Definition at line 64 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PENDING_DELETION

#define PD32_PRINTER_STATUS_PENDING_DELETION   1539

Definition at line 66 of file cdlg.h.

◆ PD32_PRINTER_STATUS_POWER_SAVE

#define PD32_PRINTER_STATUS_POWER_SAVE   1561

Definition at line 88 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PRINTING

#define PD32_PRINTER_STATUS_PRINTING   1547

Definition at line 74 of file cdlg.h.

◆ PD32_PRINTER_STATUS_PROCESSING

#define PD32_PRINTER_STATUS_PROCESSING   1551

Definition at line 78 of file cdlg.h.

◆ PD32_PRINTER_STATUS_READY

#define PD32_PRINTER_STATUS_READY   1536

Definition at line 63 of file cdlg.h.

◆ PD32_PRINTER_STATUS_SERVER_UNKNOWN

#define PD32_PRINTER_STATUS_SERVER_UNKNOWN   1560

Definition at line 87 of file cdlg.h.

◆ PD32_PRINTER_STATUS_TONER_LOW

#define PD32_PRINTER_STATUS_TONER_LOW   1554

Definition at line 81 of file cdlg.h.

◆ PD32_PRINTER_STATUS_USER_INTERVENTION

#define PD32_PRINTER_STATUS_USER_INTERVENTION   1557

Definition at line 84 of file cdlg.h.

◆ PD32_PRINTER_STATUS_WAITING

#define PD32_PRINTER_STATUS_WAITING   1550

Definition at line 77 of file cdlg.h.

◆ PD32_PRINTER_STATUS_WARMING_UP

#define PD32_PRINTER_STATUS_WARMING_UP   1553

Definition at line 80 of file cdlg.h.

◆ PD32_TOO_LARGE_COPIES

#define PD32_TOO_LARGE_COPIES   1109

Definition at line 54 of file cdlg.h.

◆ PD32_VALUE_UREADABLE

#define PD32_VALUE_UREADABLE   1104

Definition at line 49 of file cdlg.h.

Function Documentation

◆ COMDLG32_AllocMem()

LPVOID COMDLG32_AllocMem ( int  size)

Definition at line 100 of file cdlg32.c.

101 {
102  void *ptr = heap_alloc_zero(size);
103 
104  if (!ptr)
105  {
107  return NULL;
108  }
109 
110  return ptr;
111 }
void COMDLG32_SetCommDlgExtendedError(DWORD err)
Definition: cdlg32.c:119
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
GLsizeiptr size
Definition: glext.h:5919
#define CDERR_MEMALLOCFAILURE
Definition: cderr.h:14

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

◆ COMDLG32_GetCanonicalPath()

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

Definition at line 651 of file filedlg.c.

653 {
654  WCHAR lpstrTemp[MAX_PATH];
655 
656  /* Get the current directory name */
657  if (!COMDLG32_GetDisplayNameOf(pidlAbsCurrent, lpstrPathAndFile))
658  {
659  /* last fallback */
660  GetCurrentDirectoryW(MAX_PATH, lpstrPathAndFile);
661  }
662  PathAddBackslashW(lpstrPathAndFile);
663 
664  TRACE("current directory=%s, file=%s\n", debugstr_w(lpstrPathAndFile), debugstr_w(lpstrFile));
665 
666  /* if the user specified a fully qualified path use it */
667  if(PathIsRelativeW(lpstrFile))
668  {
669  lstrcatW(lpstrPathAndFile, lpstrFile);
670  }
671  else
672  {
673  /* does the path have a drive letter? */
674  if (PathGetDriveNumberW(lpstrFile) == -1)
675  lstrcpyW(lpstrPathAndFile+2, lpstrFile);
676  else
677  lstrcpyW(lpstrPathAndFile, lpstrFile);
678  }
679 
680  /* resolve "." and ".." */
681  PathCanonicalizeW(lpstrTemp, lpstrPathAndFile );
682  lstrcpyW(lpstrPathAndFile, lpstrTemp);
683  TRACE("canon=%s\n", debugstr_w(lpstrPathAndFile));
684 }
BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath)
Definition: path.c:1558
BOOL WINAPI PathCanonicalizeW(LPWSTR lpszBuf, LPCWSTR lpszPath)
Definition: path.c:2425
#define GetCurrentDirectoryW(x, y)
Definition: compat.h:413
static BOOL COMDLG32_GetDisplayNameOf(LPCITEMIDLIST pidl, LPWSTR pwszPath)
Definition: filedlg.c:630
LPWSTR WINAPI PathAddBackslashW(LPWSTR lpszPath)
Definition: path.c:289
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
#define lstrcpyW
Definition: compat.h:406
int WINAPI PathGetDriveNumberW(const WCHAR *path)
Definition: path.c:548
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
Definition: lstring.c:274

Referenced by FILEDLG95_OnOpen(), and on_default_action().

◆ COMDLG32_SetCommDlgExtendedError()

void COMDLG32_SetCommDlgExtendedError ( DWORD  err)

Definition at line 119 of file cdlg32.c.

120 {
121  TRACE("(%08x)\n", err);
126  else
127  FIXME("No Tls Space\n");
128 }
static DWORD COMDLG32_TlsIndex
Definition: cdlg32.c:44
BOOL WINAPI TlsSetValue(IN DWORD Index, IN LPVOID Value)
Definition: thread.c:1199
#define FIXME(fmt,...)
Definition: debug.h:110
#define TRACE(s)
Definition: solgame.cpp:4
DWORD WINAPI TlsAlloc(VOID)
Definition: thread.c:1023
#define TLS_OUT_OF_INDEXES
Definition: winbase.h:530
#define err(...)
uint32_t DWORD_PTR
Definition: typedefs.h:63

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 691 of file filedlg.c.

692 {
693  UINT nStrCharCount = 0; /* index in src buffer */
694  UINT nFileIndex = 0; /* index in dest buffer */
695  UINT nFileCount = 0; /* number of files */
696 
697  /* we might get single filename without any '"',
698  * so we need nStrLen + terminating \0 + end-of-list \0 */
699  *lpstrFileList = heap_alloc((nStrLen + 2) * sizeof(WCHAR));
700  *sizeUsed = 0;
701 
702  /* build delimited file list from filenames */
703  while ( nStrCharCount <= nStrLen )
704  {
705  if ( lpstrEdit[nStrCharCount]=='"' )
706  {
707  nStrCharCount++;
708  while ((nStrCharCount <= nStrLen) && (lpstrEdit[nStrCharCount]!='"'))
709  {
710  (*lpstrFileList)[nFileIndex++] = lpstrEdit[nStrCharCount];
711  nStrCharCount++;
712  }
713  (*lpstrFileList)[nFileIndex++] = 0;
714  nFileCount++;
715  }
716  nStrCharCount++;
717  }
718 
719  /* single, unquoted string */
720  if ((nStrLen > 0) && (nFileIndex == 0) )
721  {
722  lstrcpyW(*lpstrFileList, lpstrEdit);
723  nFileIndex = lstrlenW(lpstrEdit) + 1;
724  nFileCount = 1;
725  }
726 
727  /* trailing \0 */
728  (*lpstrFileList)[nFileIndex++] = '\0';
729 
730  *sizeUsed = nFileIndex;
731  return nFileCount;
732 }
#define lstrlenW
Definition: compat.h:407
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define lstrcpyW
Definition: compat.h:406
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 2461 of file filedlg.c.

2462 {
2463  WCHAR strMsgTitle[MAX_PATH];
2464  WCHAR strMsgText [MAX_PATH];
2465  if (idCaption)
2466  LoadStringW(COMDLG32_hInstance, idCaption, strMsgTitle, ARRAY_SIZE(strMsgTitle));
2467  else
2468  strMsgTitle[0] = '\0';
2469  LoadStringW(COMDLG32_hInstance, idText, strMsgText, ARRAY_SIZE(strMsgText));
2470  MessageBoxW(hwnd,strMsgText, strMsgTitle, MB_OK | MB_ICONHAND);
2471 }
#define MB_ICONHAND
Definition: winuser.h:782
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
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, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
#define ARRAY_SIZE(a)
Definition: main.h:24
#define MB_OK
Definition: winuser.h:784

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 2473 of file filedlg.c.

2475 {
2476  int nOpenAction = defAction;
2477  LPWSTR lpszTemp, lpszTemp1;
2478  LPITEMIDLIST pidl = NULL;
2479  static const WCHAR szwInvalid[] = { '/',':','<','>','|', 0};
2480 
2481  /* check for invalid chars */
2482  if((strpbrkW(lpstrPathAndFile+3, szwInvalid) != NULL) && !(flags & OFN_NOVALIDATE))
2483  {
2485  return FALSE;
2486  }
2487 
2488  if (FAILED (SHGetDesktopFolder(ppsf))) return FALSE;
2489 
2490  lpszTemp1 = lpszTemp = lpstrPathAndFile;
2491  while (lpszTemp1)
2492  {
2493  LPSHELLFOLDER lpsfChild;
2494  WCHAR lpwstrTemp[MAX_PATH];
2495  DWORD dwEaten, dwAttributes;
2496  LPWSTR p;
2497 
2498  lstrcpyW(lpwstrTemp, lpszTemp);
2499  p = PathFindNextComponentW(lpwstrTemp);
2500 
2501  if (!p) break; /* end of path */
2502 
2503  *p = 0;
2504  lpszTemp = lpszTemp + lstrlenW(lpwstrTemp);
2505 
2506  /* There are no wildcards when OFN_NOVALIDATE is set */
2507  if(*lpszTemp==0 && !(flags & OFN_NOVALIDATE))
2508  {
2509  static const WCHAR wszWild[] = { '*', '?', 0 };
2510  /* if the last element is a wildcard do a search */
2511  if(strpbrkW(lpszTemp1, wszWild) != NULL)
2512  {
2513  nOpenAction = ONOPEN_SEARCH;
2514  break;
2515  }
2516  }
2517  lpszTemp1 = lpszTemp;
2518 
2519  TRACE("parse now=%s next=%s sf=%p\n",debugstr_w(lpwstrTemp), debugstr_w(lpszTemp), *ppsf);
2520 
2521  /* append a backslash to drive letters */
2522  if(lstrlenW(lpwstrTemp)==2 && lpwstrTemp[1] == ':' &&
2523  ((lpwstrTemp[0] >= 'a' && lpwstrTemp[0] <= 'z') ||
2524  (lpwstrTemp[0] >= 'A' && lpwstrTemp[0] <= 'Z')))
2525  {
2526  PathAddBackslashW(lpwstrTemp);
2527  }
2528 
2529  dwAttributes = SFGAO_FOLDER;
2530  if(SUCCEEDED(IShellFolder_ParseDisplayName(*ppsf, hwnd, NULL, lpwstrTemp, &dwEaten, &pidl, &dwAttributes)))
2531  {
2532  /* the path component is valid, we have a pidl of the next path component */
2533  TRACE("parse OK attr=0x%08x pidl=%p\n", dwAttributes, pidl);
2534  if(dwAttributes & SFGAO_FOLDER)
2535  {
2536  if(FAILED(IShellFolder_BindToObject(*ppsf, pidl, 0, &IID_IShellFolder, (LPVOID*)&lpsfChild)))
2537  {
2538  ERR("bind to failed\n"); /* should not fail */
2539  break;
2540  }
2541  IShellFolder_Release(*ppsf);
2542  *ppsf = lpsfChild;
2543  lpsfChild = NULL;
2544  }
2545  else
2546  {
2547  TRACE("value\n");
2548 
2549  /* end dialog, return value */
2550  nOpenAction = ONOPEN_OPEN;
2551  break;
2552  }
2553  ILFree(pidl);
2554  pidl = NULL;
2555  }
2556  else if (!(flags & OFN_NOVALIDATE))
2557  {
2558  if(*lpszTemp || /* points to trailing null for last path element */
2559  (lpwstrTemp[strlenW(lpwstrTemp)-1] == '\\')) /* or if last element ends in '\' */
2560  {
2561  if(flags & OFN_PATHMUSTEXIST)
2562  {
2564  break;
2565  }
2566  }
2567  else
2568  {
2569  if( (flags & OFN_FILEMUSTEXIST) && !isSaveDlg )
2570  {
2572  break;
2573  }
2574  }
2575  /* change to the current folder */
2576  nOpenAction = ONOPEN_OPEN;
2577  break;
2578  }
2579  else
2580  {
2581  nOpenAction = ONOPEN_OPEN;
2582  break;
2583  }
2584  }
2585  ILFree(pidl);
2586 
2587  return nOpenAction;
2588 }
#define OFN_FILEMUSTEXIST
Definition: commdlg.h:106
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define IDS_INVALID_FILENAME_TITLE
void WINAPI ILFree(LPITEMIDLIST pidl)
Definition: pidl.c:925
LPWSTR WINAPI PathFindNextComponentW(LPCWSTR lpszPath)
Definition: path.c:2558
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
Definition: unicode.h:212
void FILEDLG95_OnOpenMessage(HWND hwnd, int idCaption, int idText)
Definition: filedlg.c:2461
#define lstrlenW
Definition: compat.h:407
DWORD dwAttributes
Definition: vdmdbg.h:34
LPWSTR WINAPI PathAddBackslashW(LPWSTR lpszPath)
Definition: path.c:289
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define IDS_PATHNOTEXISTING
#define OFN_PATHMUSTEXIST
Definition: commdlg.h:117
#define IDS_FILENOTEXISTING
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
__wchar_t WCHAR
Definition: xmlstorage.h:180
WINE_UNICODE_INLINE WCHAR * strpbrkW(const WCHAR *str, const WCHAR *accept)
Definition: unicode.h:261
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
#define ERR(fmt,...)
Definition: debug.h:109
#define ONOPEN_OPEN
Definition: cdlg.h:211
#define IDS_INVALID_FILENAME
#define lstrcpyW
Definition: compat.h:406
#define OFN_NOVALIDATE
Definition: commdlg.h:115
GLfloat GLfloat p
Definition: glext.h:8902
WCHAR * LPWSTR
Definition: xmlstorage.h:184
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
#define SUCCEEDED(hr)
Definition: intsafe.h:57
#define ONOPEN_SEARCH
Definition: cdlg.h:212

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 }
static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv, enum ITEMDLG_TYPE type)
Definition: itemdlg.c:4600
REFIID riid
Definition: precomp.h:44
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 }
static HRESULT FileDialog_constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv, enum ITEMDLG_TYPE type)
Definition: itemdlg.c:4600
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by DllGetClassObject().

◆ GetFileName31A()

BOOL GetFileName31A ( OPENFILENAMEA lpofn,
UINT  dlgType 
)

Definition at line 1149 of file filedlg31.c.

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

Referenced by GetOpenFileNameA(), and GetSaveFileNameA().

◆ GetFileName31W()

BOOL GetFileName31W ( OPENFILENAMEW lpofn,
UINT  dlgType 
)

Definition at line 1174 of file filedlg31.c.

1175 {
1176  BOOL bRet = FALSE;
1177  PFD31_DATA lfs;
1178 
1179  if (!lpofn || !FD31_Init()) return FALSE;
1180 
1181  lfs = FD31_AllocPrivate((LPARAM) lpofn, dlgType, TRUE);
1182  if (lfs)
1183  {
1186  FD31_DestroyPrivate(lfs);
1187  }
1188 
1189  TRACE("file %s, file offset %d, ext offset %d\n",
1190  debugstr_w(lpofn->lpstrFile), lpofn->nFileOffset, lpofn->nFileExtension);
1191  return bRet;
1192 }
#define TRUE
Definition: types.h:120
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
static PFD31_DATA FD31_AllocPrivate(LPARAM lParam, UINT dlgType, BOOL IsUnicode)
Definition: filedlg31.c:919
LPWSTR lpstrFile
Definition: commdlg.h:367
WORD nFileExtension
Definition: commdlg.h:375
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
WORD nFileOffset
Definition: commdlg.h:374
LONG_PTR LPARAM
Definition: windef.h:208
#define TRACE(s)
Definition: solgame.cpp:4
static void FD31_DestroyPrivate(PFD31_DATA lfs)
Definition: filedlg31.c:836
static BOOL FD31_Init(void)
Definition: filedlg31.c:79
HWND hwndOwner
Definition: commdlg.h:361
LPCVOID template
Definition: filedlg31.c:69
INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
static INT_PTR CALLBACK FD31_FileOpenDlgProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
Definition: filedlg31.c:1101

Referenced by GetOpenFileNameW(), and GetSaveFileNameW().

◆ LPITEMIDLIST()

LPITEMIDLIST ( WINAPI COMDLG32_SHSimpleIDListFromPathAW)

Variable Documentation

◆ DECLSPEC_HIDDEN

HINSTANCE COMDLG32_hInstance DECLSPEC_HIDDEN

Definition at line 155 of file crypt32_private.h.