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.

59 lines
1.2 KiB

  1. /*
  2. * openas.h - MyOpenAsDialog() definitions.
  3. */
  4. #include "shellp.h"
  5. /* Types
  6. ********/
  7. /* OPENASINFO flags */
  8. typedef enum openasinfo_flags
  9. {
  10. /* Allow association registration. */
  11. OPENASINFO_FL_ALLOW_REGISTRATION = 0x0001,
  12. /* Register extension. */
  13. OPENASINFO_FL_REGISTER_EXT = 0x0002,
  14. /* Execute file after registering association. */
  15. OPENASINFO_FL_EXEC = 0x0004,
  16. /* flag combinations */
  17. ALL_OPENASINFO_FLAGS = (OPENASINFO_FL_ALLOW_REGISTRATION |
  18. OPENASINFO_FL_REGISTER_EXT |
  19. OPENASINFO_FL_EXEC)
  20. }
  21. OPENASINFO_FLAGS;
  22. DECLARE_STANDARD_TYPES(OPENASINFO);
  23. /* Prototypes
  24. *************/
  25. /* fsassoc.c */
  26. /*
  27. * Success:
  28. * S_OK user requested file type be registered
  29. * S_FALSE user requested file type not be registered (one-shot)
  30. *
  31. * Failure:
  32. * E_ABORT user cancelled
  33. * E_OUTOFMEMORY out of memory
  34. */
  35. extern HRESULT MyOpenAsDialog(HWND hwnd, POPENASINFO poainfo);
  36. /* assoc.c. */
  37. #ifdef DEBUG
  38. extern BOOL IsValidPCOPENASINFO(PCOPENASINFO pcoainfo);
  39. #endif /* DEBUG */