WindowsXP-SP1/shell/ext/url/openas.h
2020-09-30 16:53:49 +02:00

60 lines
1.2 KiB
C

/*
* openas.h - MyOpenAsDialog() definitions.
*/
#include "shellp.h"
/* Types
********/
/* OPENASINFO flags */
typedef enum openasinfo_flags
{
/* Allow association registration. */
OPENASINFO_FL_ALLOW_REGISTRATION = 0x0001,
/* Register extension. */
OPENASINFO_FL_REGISTER_EXT = 0x0002,
/* Execute file after registering association. */
OPENASINFO_FL_EXEC = 0x0004,
/* flag combinations */
ALL_OPENASINFO_FLAGS = (OPENASINFO_FL_ALLOW_REGISTRATION |
OPENASINFO_FL_REGISTER_EXT |
OPENASINFO_FL_EXEC)
}
OPENASINFO_FLAGS;
DECLARE_STANDARD_TYPES(OPENASINFO);
/* Prototypes
*************/
/* fsassoc.c */
/*
* Success:
* S_OK user requested file type be registered
* S_FALSE user requested file type not be registered (one-shot)
*
* Failure:
* E_ABORT user cancelled
* E_OUTOFMEMORY out of memory
*/
extern HRESULT MyOpenAsDialog(HWND hwnd, POPENASINFO poainfo);
/* assoc.c. */
#ifdef DEBUG
extern BOOL IsValidPCOPENASINFO(PCOPENASINFO pcoainfo);
#endif /* DEBUG */