home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
com
/
inole2
/
chap18
/
cosmo1.0
/
oleinst.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-03
|
1KB
|
45 lines
/*
* OLEINST.C
*
* OLE-Specific installation data types and function prototypes.
*
* Copyright(c) Microsoft Corp. 1992-1994 All Rights Reserved
* Win32 version, January 1994
*/
#ifdef WIN32
#include <winreg.h>
#else
#include <shellapi.h>
#endif
typedef struct
{
LPSTR pszServerName; //Full server name.
LPSTR pszServerClass; //Short server class name.
LPSTR pszServerPath; //Full path to server module.
LPSTR pszHandlerPath; //Optional Full path to object handler DLL.
LPSTR pszExt; //File extension for the server.
LPSTR *ppszVerbs; //Pointer to array of LPSTRs to verbs.
UINT cVerbs; //Number of verbs in array.
LPSTR pszSetFormats; //Optional CSV list of accepted formats.
LPSTR pszRequestFormats; //Optional CSV list of requestable formats.
BOOL fExecute; //Is OleExecute supported?
} REGINSTALL;
typedef REGINSTALL FAR *LPREGINSTALL;
#define CBREGINSTALL sizeof(REGINSTALL)
//Function prototypes
BOOL WINAPI FRegDBInstall(void);
BOOL WINAPI FOLEServerInstall(LPREGINSTALL);
BOOL PASCAL FKeyCreate(LPSTR, LPSTR, LPSTR);
//Verbs
#define OBJVERB_EDIT 0
#define OBJVERB_PLAY 1
#define OBJVERB_MAX 1