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.
|
|
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
Badfunc.h
Abstract:
Contains constants, function prototypes, and structures used by the bad functions.
Notes:
ANSI only - must run on Win9x.
History:
01/30/01 rparsons Created 01/10/02 rparsons Revised
--*/
#define REG_WORDPAD "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\WORDPAD.EXE"
#define DEMO_REG_APP_ROOT_KEY "Software\\Microsoft"
#define DEMO_REG_APP_KEY "Software\\Microsoft\\DemoApp2"
#define DEMO_REG_APP_SUB_KEY "Software\\Microsoft\\DemoApp2\\Sub"
typedef void (WINAPI *LPFNDEMOAPPEXP)(DWORD* dwParam); typedef void (WINAPI *LPFNDEMOAPPMESSAGEBOX)(HWND hWnd);
BOOL BadIsWindows95( void );
void BadLoadBogusDll( void );
BOOL BadEnumPrinters( void );
HANDLE BadOpenPrinter( void );
BOOL BadDeleteRegistryKey( void );
BOOL BadGetFreeDiskSpace( void );
void BadDisplayReadme( IN BOOL fDisplay );
void BadRebootComputer( IN BOOL fReboot );
void BadLaunchHelpFile( IN BOOL fDisplay );
void BadCreateShortcut( IN BOOL fCorrectWay, IN LPSTR lpDirFileName, IN LPCSTR lpWorkingDir, IN LPSTR lpDisplayName );
#if 0
void BadBufferOverflow( IN BOOL fCorrect ); #endif
void BadCorruptHeap( void );
void BadLoadLibrary( void );
BOOL BadWriteToFile( void );
BOOL BadCreateProcess( IN LPSTR lpApplicationName, IN LPSTR lpCommandLine, IN BOOL fLaunch );
BOOL BadSaveToRegistry( IN BOOL fSave, IN OUT POINT* lppt );
BOOL BadCreateTempFile( void );
|