Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

76 lines
1.5 KiB

/*
* openas.h - MyOpenAsDialog() definitions.
*/
/* 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;
/* MyOpenAsDialog() structure */
typedef struct _openasinfo /* oainfo */
{
/* [in] file name */
PCSTR pcszFile;
/* [in] file class description, NULL means use pcszFile's extension */
PCSTR pcszClass;
/* [in] input flags from OPENASINFO_FLAGS */
DWORD dwInFlags;
/* [out] application selected */
char szApp[MAX_PATH];
}
OPENASINFO;
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 */