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.

70 lines
1.8 KiB

  1. /****************************************************************************\
  2. APPINST.H / Setup Manager (SETUPMGR.EXE)
  3. Microsoft Confidential
  4. Copyright (c) Microsoft Corporation 2001
  5. All rights reserved
  6. 06/2001 - Jason Cohen (JCOHEN)
  7. Added this new header file for the new exported functions in the
  8. APPINST.C file.
  9. \****************************************************************************/
  10. #ifndef _APPINST_H_
  11. #define _APPINST_H_
  12. //
  13. // External Defined Value(s):
  14. //
  15. #define MAX_DISPLAYNAME 256
  16. // ISSUE-2002/02/27-stelo,swamip - Multiple Definitions for MAX_CMDLINE
  17. #define MAX_CMDLINE 256
  18. #define MAX_SECTIONNAME 32
  19. #define APP_FLAG_REBOOT 0x00000001
  20. #define APP_FLAG_STAGE 0x00000002
  21. #define APP_FLAG_INTERNAL 0x00000004
  22. //
  23. // External Type Definition(s):
  24. //
  25. typedef struct _APPENTRY
  26. {
  27. TCHAR szDisplayName[MAX_DISPLAYNAME];
  28. TCHAR szSourcePath[MAX_PATH];
  29. TCHAR szSetupFile[MAX_PATH];
  30. TCHAR szCommandLine[MAX_CMDLINE];
  31. DWORD dwFlags;
  32. TCHAR szSectionName[MAX_SECTIONNAME];
  33. INSTALLTECH itSectionType;
  34. TCHAR szInfSectionName[256];
  35. TCHAR szStagePath[MAX_PATH];
  36. struct _APPENTRY * lpNext;
  37. }
  38. APPENTRY, *PAPPENTRY, *LPAPPENTRY, **LPLPAPPENTRY;
  39. //
  40. // External Function Prototype(s):
  41. //
  42. LPAPPENTRY OpenAppList(LPTSTR lpIniFile);
  43. void CloseAppList(LPAPPENTRY lpAppHead);
  44. BOOL SaveAppList(LPAPPENTRY lpAppHead, LPTSTR lpszIniFile, LPTSTR lpszAltIniFile);
  45. BOOL InsertApp(LPAPPENTRY * lplpAppHead, LPAPPENTRY lpApp);
  46. BOOL RemoveApp(LPAPPENTRY * lplpAppHead, LPAPPENTRY lpApp);
  47. #endif // _APPINST_H_