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.

39 lines
964 B

  1. /*****************************************************************************\
  2. * MODULE: gencab.h
  3. *
  4. * This is the main header for the CAB generation module.
  5. *
  6. * Copyright (C) 1996-1997 Microsoft Corporation
  7. * Copyright (C) 1996-1997 Hewlett Packard
  8. *
  9. * History:
  10. * 22-Nov-1996 <chriswil> Created.
  11. *
  12. \*****************************************************************************/
  13. // Constants.
  14. //
  15. #define MAX_CAB_BUFFER 1024
  16. #define MIN_CAB_BUFFER 64
  17. // Function Macro mappings.
  18. //
  19. #define EXEC_PROCESS(lpszCmd, psi, ppi) \
  20. CreateProcess(NULL, lpszCmd, NULL, NULL, FALSE, 0, NULL, NULL, psi, ppi)
  21. // Critical-Section Function Mappings.
  22. //
  23. #define InitCABCrit() InitializeCriticalSection(&g_csGenCab)
  24. #define FreeCABCrit() DeleteCriticalSection(&g_csGenCab)
  25. // Entry-point to the whole process.
  26. //
  27. DWORD GenerateCAB(
  28. LPCTSTR lpszFriendlyName,
  29. LPCTSTR lpszPortName,
  30. DWORD dwCliInfo,
  31. LPTSTR lpszOutputName,
  32. BOOL bSecure);