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.

47 lines
1.1 KiB

  1. #ifndef _MAIN_H
  2. #define _MAIN_H
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. #ifndef STRICT
  7. #define STRICT
  8. #endif
  9. #ifndef _WIN32_WINNT
  10. #define _WIN32_WINNT 0x0400
  11. #endif
  12. #define _ATL_APARTMENT_THREADED
  13. //#include <applgroup.cpp>
  14. // using tstring for all applicable wstrings
  15. /*
  16. #ifdef _UNICODE
  17. typedef std::wstring tstring;
  18. #else
  19. typedef std::string tstring;
  20. #endif
  21. */
  22. // Function Prototypes.
  23. INT ParseCmdLine( LPTSTR );
  24. INT RemoveFromUserinit(const TCHAR *);
  25. INT SuppressCfgSrvPage(void);
  26. INT GetSourcePath( TCHAR * , DWORD );
  27. INT PromptForPath( BSTR* );
  28. INT VerifyPath( const TCHAR * );
  29. HRESULT MakeLink(const TCHAR* const sourcePath, const TCHAR* const linkPath, const TCHAR* const args);
  30. HRESULT CheckDCPromoSwitch( TCHAR* pszCmdLine );
  31. HRESULT CheckBOSSwitch( TCHAR* pszCmdLine );
  32. VOID GetParameter( TCHAR* pszCmdLine, TCHAR* pszSwitch, TCHAR* pszOut );
  33. HRESULT CheckSuppressCYS( TCHAR* pszCmdLine );
  34. VOID GetSystemDrive(TCHAR** ppszDrive);
  35. BOOL g_bSBS;
  36. BOOL g_bWinSB;
  37. #endif