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 >
C/C++ Source or Header  |  1995-05-03  |  1KB  |  45 lines

  1. /*
  2.  * OLEINST.C
  3.  *
  4.  * OLE-Specific installation data types and function prototypes.
  5.  *
  6.  * Copyright(c) Microsoft Corp. 1992-1994 All Rights Reserved
  7.  * Win32 version, January 1994
  8.  */
  9.  
  10. #ifdef WIN32
  11. #include <winreg.h>
  12. #else
  13. #include <shellapi.h>
  14. #endif
  15.  
  16.  
  17. typedef struct
  18.     {
  19.     LPSTR       pszServerName;      //Full server name.
  20.     LPSTR       pszServerClass;     //Short server class name.
  21.     LPSTR       pszServerPath;      //Full path to server module.
  22.     LPSTR       pszHandlerPath;     //Optional Full path to object handler DLL.
  23.     LPSTR       pszExt;             //File extension for the server.
  24.     LPSTR      *ppszVerbs;          //Pointer to array of LPSTRs to verbs.
  25.     UINT        cVerbs;             //Number of verbs in array.
  26.     LPSTR       pszSetFormats;      //Optional CSV list of accepted formats.
  27.     LPSTR       pszRequestFormats;  //Optional CSV list of requestable formats.
  28.     BOOL        fExecute;           //Is OleExecute supported?
  29.     } REGINSTALL;
  30.  
  31. typedef REGINSTALL FAR *LPREGINSTALL;
  32. #define CBREGINSTALL sizeof(REGINSTALL)
  33.  
  34.  
  35. //Function prototypes
  36. BOOL     WINAPI FRegDBInstall(void);
  37. BOOL     WINAPI FOLEServerInstall(LPREGINSTALL);
  38. BOOL     PASCAL FKeyCreate(LPSTR, LPSTR, LPSTR);
  39.  
  40.  
  41. //Verbs
  42. #define OBJVERB_EDIT    0
  43. #define OBJVERB_PLAY    1
  44. #define OBJVERB_MAX     1
  45.