Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.02.17;
Скачать: CL | DM;

Вниз

Какое значение у константы FOF_NORECURSION ?   Найти похожие ветки 

 
AlexRu   (2003-01-05 13:55) [0]

У меня не работает нормально функция SHFileOperation т.к. в модуле ShellAPI не описана константа FOF_NORECURSION. Я думю ввести прямо значение, но где его взять? В MSDN только имена. Вообще, где в таких случаях брать значения констант?


 
ION T ©   (2003-01-05 14:31) [1]

Вот из ShellAPI.h:

////
//// Shell File Operations
////
#ifndef FO_MOVE //these need to be kept in sync with the ones in shlobj.h

#define FO_MOVE 0x0001
#define FO_COPY 0x0002
#define FO_DELETE 0x0003
#define FO_RENAME 0x0004

#define FOF_MULTIDESTFILES 0x0001
#define FOF_CONFIRMMOUSE 0x0002
#define FOF_SILENT 0x0004 // don"t create progress/report
#define FOF_RENAMEONCOLLISION 0x0008
#define FOF_NOCONFIRMATION 0x0010 // Don"t prompt the user.
#define FOF_WANTMAPPINGHANDLE 0x0020 // Fill in SHFILEOPSTRUCT.hNameMappings
// Must be freed using SHFreeNameMappings
#define FOF_ALLOWUNDO 0x0040
#define FOF_FILESONLY 0x0080 // on *.*, do only files
#define FOF_SIMPLEPROGRESS 0x0100 // means don"t show names of files
#define FOF_NOCONFIRMMKDIR 0x0200 // don"t confirm making any needed dirs
#define FOF_NOERRORUI 0x0400 // don"t put up error UI
#define FOF_NOCOPYSECURITYATTRIBS 0x0800 // dont copy NT file Security Attributes
#define FOF_NORECURSION 0x1000 // don"t recurse into directories.
#if (_WIN32_IE >= 0x0500)
#define FOF_NO_CONNECTED_ELEMENTS 0x2000 // don"t operate on connected elements.
#define FOF_WANTNUKEWARNING 0x4000 // during delete operation, warn if nuking instead of recycling (partially overrides FOF_NOCONFIRMATION)
#endif // (_WIN32_IE >= 0x500)
#if (_WIN32_WINNT >= 0x0501)
#define FOF_NORECURSEREPARSE 0x8000 // treat reparse points as objects, not containers
#endif // (_WIN32_WINNT >= 0x501)


Вообще надо всегда иметь компилятор си++ под рукой...



Страницы: 1 вся ветка

Текущий архив: 2003.02.17;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.025 c
7-53290
seacat
2002-12-15 15:06
2003.02.17
Восстановление файлов


3-52808
DBGrid
2003-01-29 13:34
2003.02.17
процедура column autosize для DBGrid


6-53149
Hawk2
2002-12-26 14:51
2003.02.17
Написание cgi-скриптов.


9-52698
pasha676
2002-09-13 09:28
2003.02.17
Пересечения 3D объектов


3-52777
Imshanya
2003-01-21 14:10
2003.02.17
Referential Integrity