- Timestamp:
- Jun 13, 2001, 4:54:58 AM (24 years ago)
- Location:
- trunk/src/win16ldr
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win16ldr/odin.c
r5954 r5979 1 #ifndef MSC6 1 2 #include <windows.h> 3 #else 4 #include "msc60win.h" 5 #endif 2 6 #include <stdlib.h> 3 7 #include <string.h> … … 16 20 17 21 18 //***************************************************************************************** 19 //***************************************************************************************** 22 //***************************************************************************************** 23 //***************************************************************************************** 20 24 int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 21 25 { 22 26 MSG msg; 23 24 if (!hPrevInstance) 27 28 if (!hPrevInstance) 25 29 if (!InitApplication(hInstance)) 26 30 return (FALSE); … … 34 38 35 39 if(hModule >= 32) { 36 while (GetMessage(&msg, NULL, NULL, NULL)) 40 while (GetMessage(&msg, NULL, NULL, NULL)) 37 41 { 38 42 TranslateMessage(&msg); 39 43 DispatchMessage(&msg); 40 } 44 } 41 45 } 42 46 else { … … 47 51 DestroyWindow(hwnd); 48 52 } 49 53 50 54 FreeLibrary(hDll); 51 55 return (msg.wParam); 52 } 53 //***************************************************************************************** 54 //***************************************************************************************** 56 } 57 //***************************************************************************************** 58 //***************************************************************************************** 55 59 BOOL InitApplication(HANDLE hInstance) 56 { 60 { 57 61 WNDCLASS wc; 58 62 … … 63 67 64 68 wc.style = NULL; 65 wc.lpfnWndProc = MainWndProc; 69 wc.lpfnWndProc = MainWndProc; 66 70 wc.cbClsExtra = 0; 67 71 wc.cbWndExtra = 0; … … 75 79 return (RegisterClass(&wc)); 76 80 } 77 //***************************************************************************************** 78 //***************************************************************************************** 81 //***************************************************************************************** 82 //***************************************************************************************** 79 83 BOOL InitInstance(HANDLE hInstance, int nCmdShow) 80 84 { … … 97 101 if (!hwnd) 98 102 return (FALSE); 99 103 100 104 return (TRUE); 101 105 102 106 } 103 //***************************************************************************************** 104 //***************************************************************************************** 107 //***************************************************************************************** 108 //***************************************************************************************** 105 109 long FAR PASCAL __export MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) 106 { 110 { 107 111 char modname[256]; 108 112 … … 128 132 return (NULL); 129 133 } 130 //***************************************************************************************** 131 //***************************************************************************************** 134 //***************************************************************************************** 135 //***************************************************************************************** -
trunk/src/win16ldr/odindll.c
r5978 r5979 1 #ifndef MSC6 1 2 #include <windows.h> 3 #else 4 #include "msc60win.h" 5 #endif 2 6 #include <string.h> 3 7 #include "peexe.h" … … 9 13 BOOL GetPEOptionalHeader (LPVOID lpFile, PIMAGE_OPTIONAL_HEADER pHeader); 10 14 11 #if def __WATCOMC__15 #if defined(__WATCOMC__) 12 16 typedef DWORD (FAR * WINAPI * FUNC_GetVersion)(void); 13 17 typedef UINT (FAR * WINAPI * FUNC_WinExec)(LPCSTR, UINT);
Note:
See TracChangeset
for help on using the changeset viewer.