Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* File:main.h *
- * Credits: w2ch Anon */
- #ifndef MAIN_H
- #define MAIN_H
- #ifndef WINVER // Allow use of features specific to Windows 7 or later.
- #define WINVER 0x0700 // Change this to the appropriate value to target other versions of Windows.
- #endif
- #ifndef _WIN32_WINNT // Allow use of features specific to Windows 7 or later.
- #define _WIN32_WINNT 0x0700 // Change this to the appropriate value to target other versions of Windows.
- #endif
- #ifndef UNICODE
- #define UNICODE
- #endif
- #define WIN32_LEAN_AND_MEAN
- // Windows Header Files:
- #include <windows.h>
- // C++ RunTime Header Files:
- #include <vector>
- /******************************************************************
- * *
- * #define *
- * *
- ******************************************************************/
- #define NULL 0
- /******************************************************************
- * *
- * typedef *
- * *
- ******************************************************************/
- //expect to find in the plugins
- typedef void(*PLUGIN_PROCESS_DATA)(HWND hwndInputEdit, HWND hwndOutpuEdit);
- /******************************************************************
- * *
- * Struct *
- * *
- ******************************************************************/
- struct PluginElements
- {
- HMODULE hMod;
- PLUGIN_PROCESS_DATA ProcessData;
- TCHAR szFileName[MAX_PATH];
- };
- PluginElements make_PluginElements(HMODULE &rhMod, PLUGIN_PROCESS_DATA &rProcessData, TCHAR *rFileName);
- /******************************************************************
- * *
- * Classes *
- * *
- ******************************************************************/
- class w2chTools
- {
- public:
- w2chTools(); // EnigmaApp constructor.
- bool Initialize(); // Register the window class and call methods for instantiating drawing resources.
- void RunMessageLoop(); // Process and dispatch messages
- void OnExit();
- void LoadPlugins(); // Load all plugin in executable directory of program that forfile the requerments.
- void UnloadPlugins(); // Clean up plugins that have been loaded.
- private:
- // The dialog procedure.
- static INT_PTR CALLBACK DialogProc(
- HWND hwnd,
- UINT Message,
- WPARAM wParam,
- LPARAM lParam);
- private:
- HWND m_hDlg;
- HINSTANCE m_hinstRichedLib;
- std::vector<PluginElements> m_Plugins;
- HWND m_hwndInputEdit;
- HWND m_hwndOutpuEdit;
- HWND m_ComboBox;
- };
- #endif /* MAIN_H */
Advertisement
Add Comment
Please, Sign In to add comment