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.

142 lines
3.9 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1987-1990 **/
  4. /********************************************************************/
  5. /*
  6. * FILE STATUS:
  7. * 9/18/90 Copied from generic template
  8. * 11/29/90 Changed from logon.h to logon.hxx
  9. * 1/12/91 Split from Logon App, reduced to just Shell Test APP
  10. */
  11. #ifndef _APP_HXX
  12. #define _APP_HXX
  13. #define INCL_WINDOWS
  14. #define INCL_WINDOWS_GDI
  15. #define INCL_DOSERRORS
  16. #define INCL_NETERRORS
  17. #include <lmui.hxx>
  18. extern "C"
  19. {
  20. #include <dos.h>
  21. #include <stdlib.h>
  22. #include <lmcons.h>
  23. #include <lmuse.h>
  24. #include <lmwksta.h>
  25. #define LPUINT PUINT
  26. #include <mpr.h>
  27. #include <winnetp.h>
  28. //#include <winnet32.h>
  29. //#include <npapi.h>
  30. #include <wnintrn.h>
  31. // Winuser.h redefines MessageBox to MessageBoxEx but MessageBoxEx wasn't
  32. //built for the 266 libraries, so we will go back to the original message box
  33. //
  34. // The following should go away on 267 (assuming MessageBoxExW is implemented)
  35. #undef MessageBox
  36. #undef MessageBoxW
  37. int
  38. MessageBoxW( HWND hwnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType ) ;
  39. #define MessageBox MessageBoxW
  40. }
  41. #define INCL_BLT_CONTROL
  42. #define INCL_BLT_DIALOG
  43. #define INCL_BLT_MSGPOPUP
  44. #include <blt.hxx>
  45. #include <uiassert.hxx>
  46. #include <uitrace.hxx>
  47. #include <string.hxx>
  48. #include <strlst.hxx> // for lmowks.hxx
  49. #include <lmowks.hxx>
  50. extern "C" {
  51. #include <uinetlib.h>
  52. #include "appresrc.h"
  53. /* sections/keywords in WIN.INI */
  54. #define WININI_USERNAME_SECTION (PSZ)SZ("netshell")
  55. #define WININI_USERNAME_KEYWORD (PSZ)SZ("username")
  56. /* window class names */
  57. #define WC_MAINWINDOW SZ("AppWClass")
  58. /* misc. stuff */
  59. #define UNUSED(param) (void) param
  60. typedef long (FAR PASCAL *LONGFARPROC)();
  61. #ifdef DEFINED_AWAY
  62. int FAR PASCAL WinMain(
  63. HANDLE hInstance, /* current instance */
  64. HANDLE hPrevInstance, /* previous instance */
  65. LPSTR lpCmdLine, /* command line */
  66. int nCmdShow /* show-window type (open/icon) */
  67. ) ;
  68. #endif // DEFINED_AWAY
  69. BOOL InitApplication(
  70. HINSTANCE hInstance /* current instance */
  71. ) ;
  72. BOOL InitInstance(
  73. HINSTANCE hInstance, /* Current instance identifier. */
  74. int nCmdShow /* Param for first ShowWindow() call. */
  75. ) ;
  76. long FAR PASCAL MainWndProc(
  77. HWND hWnd, /* window handle */
  78. unsigned message, /* type of message */
  79. WORD wParam, /* additional information */
  80. LONG lParam /* additional information */
  81. ) ;
  82. BOOL FAR PASCAL About(
  83. HWND hDlg, /* window handle of the dialog box */
  84. unsigned message, /* type of message */
  85. WORD wParam, /* message-specific information */
  86. LONG lParam
  87. ) ;
  88. // routines in strings.c
  89. // strings valid after first RefreshStrings call
  90. // call RefreshStrings to refresh constant strings
  91. int LoadStaticStrings(HANDLE hInstance, HWND hWnd);
  92. int RefreshStrings(HANDLE hInstance, HWND hWnd);
  93. int DrawStrings(PAINTSTRUCT *pPS);
  94. extern char pWkstaName[]; // including "\\\\" and termination
  95. extern char pUserName[];
  96. extern char pDomainName[];
  97. } // end of extern "C"
  98. void test1(HWND hwndParent);
  99. void test2(HWND hwndParent);
  100. void test3(HWND hwndParent);
  101. void test4(HWND hwndParent);
  102. void test5(HWND hwndParent);
  103. void test6(HWND hwndParent);
  104. void test7(HWND hwndParent);
  105. void test8(HWND hwndParent);
  106. void test9(HWND hwndParent);
  107. void test11(HWND hwndParent);
  108. #ifdef WIN32
  109. void test10(HANDLE hInstance,HWND hwndParent);
  110. extern HWND hwndEnum;
  111. #endif
  112. #endif // _APP_HXX