qcap/tests: Add media tests for the SmartTee filter.
[wine/multimedia.git] / programs / winefile / winefile.h
blob31a1868f8321432a77feab73370052990ee9e2a9
1 /*
2 * Copyright 2000, 2003, 2004, 2005 Martin Fuchs
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #define WIN32_LEAN_AND_MEAN
20 #define WIN32_EXTRA_LEAN
21 #define NOSERVICE
22 #define NOMCX
23 #define NOIME
24 #define NOCOMM
25 #define NOKANJI
26 #define NORPC
27 #define NOPROXYSTUB
28 #define NOIMAGE
29 #define NOTAPE
31 #include <windows.h>
32 #include <commdlg.h>
34 #ifdef UNICODE
35 #define _UNICODE
36 #endif
38 #include <locale.h>
39 #include <time.h>
41 #include <shellapi.h> /* for ShellExecuteW() */
42 #include <shlobj.h>
44 #ifndef FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
45 #define FILE_ATTRIBUTE_ENCRYPTED 0x00000040
46 #define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
47 #define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
48 #define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
49 #endif
52 #ifdef _DEBUG
53 #define ASSERT(x) {if (!(x)) DebugBreak();}
54 #else
55 #define ASSERT(x) /* nothing */
56 #endif
58 #define BUFFER_LEN 1024
61 enum IMAGE {
62 IMG_NONE=-1, IMG_FILE=0, IMG_DOCUMENT, IMG_EXECUTABLE,
63 IMG_FOLDER, IMG_OPEN_FOLDER, IMG_FOLDER_PLUS,IMG_OPEN_PLUS, IMG_OPEN_MINUS,
64 IMG_FOLDER_UP, IMG_FOLDER_CUR
67 #define IMAGE_WIDTH 16
68 #define IMAGE_HEIGHT 13
69 #define SPLIT_WIDTH 5
70 #define TREE_LINE_DX 3
72 #define IDW_STATUSBAR 0x100
73 #define IDW_TOOLBAR 0x101
74 #define IDW_DRIVEBAR 0x102
75 #define IDW_FIRST_CHILD 0xC000 /*0x200*/
77 #define IDW_TREE_LEFT 3
78 #define IDW_TREE_RIGHT 6
79 #define IDW_HEADER_LEFT 2
80 #define IDW_HEADER_RIGHT 5
82 #define WM_DISPATCH_COMMAND 0xBF80
84 #define COLOR_COMPRESSED RGB(0,0,255)
85 #define COLOR_SELECTION RGB(0,0,128)
86 #define COLOR_SPLITBAR LTGRAY_BRUSH
88 #define FRM_CALC_CLIENT 0xBF83
89 #define Frame_CalcFrameClient(hwnd, prt) (SendMessageW(hwnd, FRM_CALC_CLIENT, 0, (LPARAM)(PRECT)prt))
91 typedef struct
93 int start_x;
94 int start_y;
95 int width;
96 int height;
97 } windowOptions;
99 typedef struct
101 HANDLE hInstance;
102 HACCEL haccel;
103 ATOM hframeClass;
105 HWND hMainWnd;
106 HMENU hMenuFrame;
107 HMENU hWindowsMenu;
108 HMENU hLanguageMenu;
109 HMENU hMenuView;
110 HMENU hMenuOptions;
111 HWND hmdiclient;
112 HWND hstatusbar;
113 HWND htoolbar;
114 HWND hdrivebar;
115 HFONT hfont;
117 WCHAR num_sep;
118 SIZE spaceSize;
119 HIMAGELIST himl;
121 WCHAR drives[BUFFER_LEN];
122 BOOL prescan_node; /*TODO*/
123 BOOL saveSettings;
125 IShellFolder* iDesktop;
126 IMalloc* iMalloc;
127 UINT cfStrFName;
128 } WINEFILE_GLOBALS;
130 extern WINEFILE_GLOBALS Globals;
132 extern void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHAR* ext);