Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

  1. //**********************************************************************
  2. // File name: simpsvr.h
  3. //
  4. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  5. //**********************************************************************
  6. #define IDM_ABOUT 100
  7. #define IDM_INSERT 101
  8. #define IDM_VERB0 1000
  9. int PASCAL WinMain
  10. #ifdef WIN32
  11. (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
  12. #else
  13. (HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
  14. #endif
  15. BOOL InitApplication(HANDLE hInstance);
  16. BOOL InitInstance(HANDLE hInstance, int nCmdShow);
  17. LRESULT FAR PASCAL EXPORT MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
  18. LRESULT FAR PASCAL EXPORT DocWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
  19. #ifdef WIN32
  20. INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  21. #else
  22. BOOL FAR PASCAL EXPORT About(HWND hDlg, UINT message, WORD wParam, LONG lParam);
  23. #endif
  24. #define SZCLASSICONBOX "SimpSvrIBClass"
  25. #define SZCLASSRESULTIMAGE "SimpSvrRIClass"
  26. #ifdef WIN32
  27. // The following functions are all obsolete in Win32.
  28. // By using the following macros, we can use the app in both Win16 and
  29. // Win32
  30. #define SetWindowOrg(h,x,y) SetWindowOrgEx((h),(x),(y),NULL)
  31. #define SetWindowExt(h,x,y) SetWindowExtEx((h),(x),(y),NULL)
  32. #define SetViewportExt(h,x,y) SetViewportExtEx((h),(x),(y),NULL)
  33. #ifndef EXPORT
  34. #define EXPORT
  35. #endif
  36. #else
  37. #ifndef EXPORT
  38. // _export is obsolete in Win32
  39. #define EXPORT _export
  40. #endif
  41. #endif