home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
com
/
connect
/
server
/
connect.idl
< prev
next >
Wrap
Text File
|
1998-04-02
|
1KB
|
57 lines
// Connect.idl : IDL source for Connect.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (Connect.tlb) and marshalling code.
[
object,
uuid(CCE84211-DB31-11CF-9D75-00A0C90391D3),
dual,
helpstring("IRandom Interface"),
pointer_default(unique)
]
interface IRandom : IDispatch
{
import "oaidl.idl";
[id(1), propget] HRESULT Start([out, retval] long* pnID);
[id(2), propput] HRESULT Stop([in] long nID);
[id(3)] HRESULT StopAll();
};
[
object,
uuid(CCE84212-DB31-11CF-9D75-00A0C90391D3),
dual,
helpstring("IRandomEvent Interface"),
pointer_default(unique)
]
interface IRandomEvent : IDispatch
{
import "oaidl.idl";
[id(1), propput] HRESULT Fire([in] long nID);
[id(2), propput] HRESULT ID([in] int n);
};
[
uuid(CCE8420F-DB31-11CF-9D75-00A0C90391D3),
version(1.0),
helpstring("Connect 1.0 Type Library")
]
library CONNECTLib
{
importlib("stdole32.tlb");
[
uuid(CCE84215-DB31-11CF-9D75-00A0C90391D3),
helpstring("Random Class")
]
coclass CoRandom
{
[default] interface IRandom;
[default, source] interface IRandomEvent;
};
};