Leaked source code of windows server 2003
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.

123 lines
1.8 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. Badfunc.h
  5. Abstract:
  6. Contains constants, function prototypes, and
  7. structures used by the bad functions.
  8. Notes:
  9. ANSI only - must run on Win9x.
  10. History:
  11. 01/30/01 rparsons Created
  12. 01/10/02 rparsons Revised
  13. --*/
  14. #define REG_WORDPAD "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\WORDPAD.EXE"
  15. #define DEMO_REG_APP_ROOT_KEY "Software\\Microsoft"
  16. #define DEMO_REG_APP_KEY "Software\\Microsoft\\DemoApp2"
  17. #define DEMO_REG_APP_SUB_KEY "Software\\Microsoft\\DemoApp2\\Sub"
  18. typedef void (WINAPI *LPFNDEMOAPPEXP)(DWORD* dwParam);
  19. typedef void (WINAPI *LPFNDEMOAPPMESSAGEBOX)(HWND hWnd);
  20. BOOL
  21. BadIsWindows95(
  22. void
  23. );
  24. void
  25. BadLoadBogusDll(
  26. void
  27. );
  28. BOOL
  29. BadEnumPrinters(
  30. void
  31. );
  32. HANDLE
  33. BadOpenPrinter(
  34. void
  35. );
  36. BOOL
  37. BadDeleteRegistryKey(
  38. void
  39. );
  40. BOOL
  41. BadGetFreeDiskSpace(
  42. void
  43. );
  44. void
  45. BadDisplayReadme(
  46. IN BOOL fDisplay
  47. );
  48. void
  49. BadRebootComputer(
  50. IN BOOL fReboot
  51. );
  52. void
  53. BadLaunchHelpFile(
  54. IN BOOL fDisplay
  55. );
  56. void
  57. BadCreateShortcut(
  58. IN BOOL fCorrectWay,
  59. IN LPSTR lpDirFileName,
  60. IN LPCSTR lpWorkingDir,
  61. IN LPSTR lpDisplayName
  62. );
  63. #if 0
  64. void
  65. BadBufferOverflow(
  66. IN BOOL fCorrect
  67. );
  68. #endif
  69. void
  70. BadCorruptHeap(
  71. void
  72. );
  73. void
  74. BadLoadLibrary(
  75. void
  76. );
  77. BOOL
  78. BadWriteToFile(
  79. void
  80. );
  81. BOOL
  82. BadCreateProcess(
  83. IN LPSTR lpApplicationName,
  84. IN LPSTR lpCommandLine,
  85. IN BOOL fLaunch
  86. );
  87. BOOL
  88. BadSaveToRegistry(
  89. IN BOOL fSave,
  90. IN OUT POINT* lppt
  91. );
  92. BOOL
  93. BadCreateTempFile(
  94. void
  95. );