home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
com
/
tutsamp
/
freserve
/
freserve.h
< prev
next >
Wrap
Text File
|
1997-08-05
|
3KB
|
75 lines
/*+==========================================================================
File: FRESERVE.H
Summary: Include file for the FRESERVE.DLL dynamic link library.
Intended primarily for external users of this DLL who exploit
it via static linkage to the DllRegisterServer and
DllUnregisterServer exported service calls.
For a comprehensive tutorial code tour of FRESERVE's contents
and offerings see the tutorial FRESERVE.HTM file. For more
specific technical details on the internal workings see the
comments dispersed throughout the FRESERVE source code.
Classes: none.
Functions: DllRegisterServer, DllUnregisterServer.
Origin: 12-10-96: atrent - Editor-inheritance from DLLSERVE.H in
the DLLSERVE Tutorial Code Sample. [Revised]
----------------------------------------------------------------------------
This file is part of the Microsoft COM Tutorial Code Samples.
Copyright (C) Microsoft Corporation, 1997. All rights reserved.
This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation. See these other
materials for detailed information regarding Microsoft code samples.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
==========================================================================+*/
#if !defined(FRESERVE_H)
#define FRESERVE_H
#if !defined(RC_INCLUDE)
#if !defined(_DLLEXPORT_)
// If _DLLEXPORT_ is NOT defined then the default is to import.
#if defined(__cplusplus)
#define DLLENTRY extern "C" __declspec(dllimport)
#else
#define DLLENTRY extern __declspec(dllimport)
#endif
#define STDENTRY DLLENTRY HRESULT WINAPI
#define STDENTRY_(type) DLLENTRY type WINAPI
// Here is the list of server APIs offered by the DLL (using the
// appropriate entry API declaration macros just #defined above).
STDENTRY DllRegisterServer(void);
STDENTRY DllUnregisterServer(void);
#else // _DLLEXPORT_
// Else if _DLLEXPORT_ is indeed defined then we've been told to export.
#if defined(__cplusplus)
#define DLLENTRY extern "C" __declspec(dllimport)
#else
#define DLLENTRY extern __declspec(dllimport)
#endif
#define STDENTRY DLLENTRY HRESULT WINAPI
#define STDENTRY_(type) DLLENTRY type WINAPI
#endif // _DLLEXPORT_
#endif // RC_INCLUDE
#endif // FRESERVE_H