ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

precomp.h
Go to the documentation of this file.
00001 #ifndef __DEVMGMT_PRECOMP_H
00002 #define __DEVMGMT_PRECOMP_H
00003 
00004 #define WIN32_LEAN_AND_MEAN
00005 #include <windows.h>
00006 #include <windowsx.h>
00007 #include <stdio.h>
00008 #include <tchar.h>
00009 #include <setupapi.h>
00010 #include <cfgmgr32.h>
00011 #include <commctrl.h>
00012 #include <dll/devmgr/devmgr.h>
00013 #include <initguid.h>
00014 #include <cguid.h>
00015 #include <devguid.h>
00016 #include "resource.h"
00017 
00018 #ifdef _MSC_VER
00019 #pragma warning(disable : 4100)
00020 #endif
00021 
00022 #define MAX_DEV_LEN 256
00023 
00024 typedef enum
00025 {
00026     DevicesByType,
00027     DevicesByConnection,
00028     RessourcesByType,
00029     RessourcesByConnection
00030 } DISPLAY_TYPE;
00031 
00032 typedef struct _MAIN_WND_INFO
00033 {
00034     HWND  hMainWnd;
00035     HWND  hTreeView;
00036     HWND  hStatus;
00037     HWND  hTool;
00038     HWND  hProgDlg;
00039     HMENU hShortcutMenu;
00040     int   nCmdShow;
00041 
00042     DISPLAY_TYPE Display;
00043     BOOL bShowHidden;
00044 
00045     /* status flags */
00046     UINT InMenuLoop : 1;
00047 
00048 } MAIN_WND_INFO, *PMAIN_WND_INFO;
00049 
00050 
00051 INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
00052 
00053 
00054 /* devmgmt.c */
00055 extern HINSTANCE hInstance;
00056 extern HANDLE ProcessHeap;
00057 
00058 /* mainwnd.c */
00059 typedef struct _MENU_HINT
00060 {
00061     WORD CmdId;
00062     UINT HintId;
00063 } MENU_HINT, *PMENU_HINT;
00064 
00065 BOOL InitMainWindowImpl(VOID);
00066 VOID UninitMainWindowImpl(VOID);
00067 HWND CreateMainWindow(LPCTSTR lpCaption, int nCmdShow);
00068 
00069 
00070 /* enumdevices.c */
00071 
00072 VOID FreeDeviceStrings(HWND hTreeView);
00073 VOID OpenPropSheet(HWND hTreeView, HTREEITEM hItem);
00074 HTREEITEM InitTreeView(HWND hTreeView);
00075 VOID ListDevicesByType(HWND hTreeView, HTREEITEM hRoot, BOOL bShowHidden);
00076 VOID ListDevicesByConnection(HWND hTreeView, HTREEITEM hRoot, BOOL bShowHidden);
00077 
00078 
00079 /* misc.c */
00080 INT AllocAndLoadString(OUT LPTSTR *lpTarget,
00081                        IN HINSTANCE hInst,
00082                        IN UINT uID);
00083 
00084 DWORD LoadAndFormatString(IN HINSTANCE hInstance,
00085                           IN UINT uID,
00086                           OUT LPTSTR *lpTarget,
00087                           ...);
00088 
00089 BOOL StatusBarLoadAndFormatString(IN HWND hStatusBar,
00090                                   IN INT PartId,
00091                                   IN HINSTANCE hInstance,
00092                                   IN UINT uID,
00093                                   ...);
00094 
00095 BOOL StatusBarLoadString(IN HWND hStatusBar,
00096                          IN INT PartId,
00097                          IN HINSTANCE hInstance,
00098                          IN UINT uID);
00099 
00100 INT GetTextFromEdit(OUT LPTSTR lpString,
00101                     IN HWND hDlg,
00102                     IN UINT Res);
00103 
00104 HIMAGELIST InitImageList(UINT NumButtons,
00105                          UINT StartResource,
00106                          UINT Width,
00107                          UINT Height);
00108 
00109 VOID GetError(VOID);
00110 VOID DisplayString(LPTSTR);
00111 
00112 #endif /* __DEVMGMT_PRECOMP_H */

Generated on Sat May 26 2012 04:15:23 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.