home *** CD-ROM | disk | FTP | other *** search
- ; ObjBase.inc
- ; Version 1.0 - April 9, 1999 - by Lord Lucifer
- ;-------------------------------------------------------------------------------------------------
-
- includelib ole32.lib
-
- ;--------------------------------------------------------------------------------------------------
- FAILED equ 10000000h
- SUCCEEDED equ 00000000h
-
- S_OK equ 00000000h
- S_FALSE equ 00000001h
-
- ;--------------------------------------------------------------------------------------------------
-
- CLSCTX_ALL equ CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER
- CLSCTX_INPROC equ CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER
- CLSCTX_SERVER equ CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER
-
- REGCLS_SINGLEUSE equ 0
- REGCLS_MULTIPLEUSE equ 1
- REGCLS_MULTI_SEPARATE equ 2
-
- MARSHALINTERFACE_MIN equ 500
- CWCSTORAGENAME equ 32
- STGM_DIRECT equ 0
- STGM_TRANSACTED equ 00010000h
- STGM_SIMPLE equ 08000000h
- STGM_READ equ 0
- STGM_WRITE equ 00000001h
- STGM_READWRITE equ 00000002h
- STGM_SHARE_DENY_NONE equ 00000040h
- STGM_SHARE_DENY_READ equ 00000030h
- STGM_SHARE_DENY_WRITE equ 00000020h
- STGM_SHARE_EXCLUSIVE equ 00000010h
- STGM_PRIORITY equ 00040000h
- STGM_DELETEONRELEASE equ 04000000h
- STGM_CREATE equ 00001000h
- STGM_CONVERT equ 00020000h
- STGM_FAILIFTHERE equ 0
-
-
- ; Object API Prototypes
- ;-------------------------------------------------------------------------------------------------
-
- CoBuildVersion PROTO
-
- CoInitialize PROTO :DWORD
- CoUninitialize PROTO
- CoGetMalloc PROTO :DWORD, :DWORD
- CoGetCurrentProcess PROTO
- CoRegisterMallocSpy PROTO :DWORD
- CoRevokeMallocSpy PROTO
- CoCreateStandardMalloc PROTO :DWORD, :DWORD
-
- DebugCoGetRpcFault PROTO
- DebugCoSetRpcFault PROTO :DWORD
-
- CoGetClassObject PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
- CoRegisterClassObject PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
- CoRevokeClassObject PROTO :DWORD
-
- CoGetMarshalSizeMax PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
- CoMarshalInterface PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
- CoUnmarshalInterface PROTO :DWORD, :DWORD, :DWORD
- CoMarshalHresult PROTO :DWORD, :DWORD
- CoUnmarshalHresult PROTO :DWORD, :DWORD
- CoReleaseMarshalData PROTO :DWORD
- CoDisconnectObject PROTO :DWORD, :DWORD
- CoLockObjectExternal PROTO :DWORD, :DWORD, :DWORD
- CoGetStandardMarshal PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
-
- CoIsHandlerConnected PROTO :DWORD
- CoHasStrongExternalConnections PROTO :DWORD
- CoMarshalInterThreadInterfaceInStream PROTO :DWORD, :DWORD, :DWORD
- CoGetInterfaceAndReleaseStream PROTO :DWORD, :DWORD, :DWORD
- CoCreateFreeThreadedMarshaler PROTO :DWORD, :DWORD
-
- CoLoadLibrary PROTO :DWORD, :DWORD
- CoFreeLibrary PROTO :DWORD
- CoFreeAllLibraries PROTO
- CoFreeUnusedLibraries PROTO
-
- CoCreateInstance PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
-
- StringFromCLSID PROTO :DWORD, :DWORD
- CLSIDFromString PROTO :DWORD, :DWORD
- StringFromIID PROTO :DWORD, :DWORD
- IIDFromString PROTO :DWORD, :DWORD
- CoIsOle1Class PROTO :DWORD
- ProgIDFromCLSID PROTO :DWORD, :DWORD
- CLSIDFromProgID PROTO :DWORD, :DWORD
- StringFromGUID2 PROTO :DWORD, :DWORD, :DWORD
-
- CoCreateGuid PROTO :DWORD
- CoFileTimeToDosDateTime PROTO :DWORD, :DWORD, :DWORD
- CoDosDateTimeToFileTime PROTO :DWORD, :DWORD, :DWORD
- CoFileTimeNow PROTO :DWORD
-
- CoRegisterMessageFilter PROTO :DWORD, :DWORD
- CoGetTreatAsClass PROTO :DWORD, :DWORD
- CoTreatAsClass PROTO :DWORD, :DWORD
-
- DllGetClassObject PROTO :DWORD, :DWORD, :DWORD
- DllCanUnloadNow PROTO
-
- CoTaskMemAlloc PROTO :DWORD
- CoTaskMemRealloc PROTO :DWORD, :DWORD
- CoTaskMemFree PROTO :DWORD
-
- CreateDataAdviseHolder PROTO :DWORD, :DWORD
- CreateDataCache PROTO :DWORD, :DWORD, :DWORD, :DWORD
-
- StgCreateDocfile PROTO :DWORD, :DWORD, :DWORD, :DWORD
- StgCreateDocfileOnILockBytes PROTO :DWORD, :DWORD, :DWORD, :DWORD
-
- StgOpenStorage PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
- StgOpenStorageOnILockBytes PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
- StgIsStorageFile PROTO :DWORD
- StgIsStorageILockBytes PROTO :DWORD
-
- StgSetTimes PROTO :DWORD, :DWORD, :DWORD, :DWORD
-
- BindMoniker PROTO :DWORD, :DWORD, :DWORD, :DWORD
- MkParseDisplayName PROTO :DWORD, :DWORD, :DWORD, :DWORD
- MonikerRelativePathTo PROTO :DWORD, :DWORD, :DWORD, :DWORD
- MonikerCommonPrefixWith PROTO :DWORD, :DWORD, :DWORD
- CreateBindCtx PROTO :DWORD, :DWORD
- CreateGenericComposite PROTO :DWORD, :DWORD, :DWORD
- GetClassFile PROTO :DWORD, :DWORD
-
- CreateFileMoniker PROTO :DWORD, :DWORD
- CreateItemMoniker PROTO :DWORD, :DWORD, :DWORD
- CreateAntiMoniker PROTO :DWORD
- CreatePointerMoniker PROTO :DWORD, :DWORD
- GetRunningObjectTable PROTO :DWORD, :DWORD
-
- IID STRUCT DWORD
- Data1 dd ?
- Data2 dw ?
- Data3 dw ?
- Data4 db 8 dup(?)
- IID ENDS
-
- ;-------------------------------------------------------------------------------------------------
- ; IUnknown interface
-
- externdef IID_IUnknown:IID
- LPUNKNOWN typedef DWORD
- LPPUNKNOWN typedef ptr LPUNKNOWN
-
- IUnknown_QueryInterfaceProto typedef proto :DWORD, :DWORD, :DWORD
- IUnknown_AddRefProto typedef proto :DWORD
- IUnknown_ReleaseProto typedef proto :DWORD
- IUnknown_QueryInterface typedef ptr IUnknown_QueryInterfaceProto
- IUnknown_AddRef typedef ptr IUnknown_AddRefProto
- IUnknown_Release typedef ptr IUnknown_ReleaseProto
-
- IUnknown struct DWORD
- QueryInterface IUnknown_QueryInterface ?
- AddRef IUnknown_AddRef ?
- Release IUnknown_Release ?
- IUnknown ends
-
-
- ;--------------------------------------------------------------------------------------------------
- ;IMalloc Interface
-
- externdef IID_IMalloc:IID
- LPMALLOC typedef DWORD
- LPPMALLOC typedef ptr LPMALLOC
-
- IMalloc_AllocProto typedef proto :DWORD, :DWORD
- IMalloc_ReallocProto typedef proto :DWORD, :DWORD, :DWORD
- IMalloc_FreeProto typedef proto :DWORD, :DWORD
- IMalloc_GetSizeProto typedef proto :DWORD, :DWORD
- IMalloc_DidAllocProto typedef proto :DWORD, :DWORD
- IMalloc_HeapMinimizeProto typedef proto :DWORD
-
- IMalloc_Alloc typedef ptr IMalloc_AllocProto
- IMalloc_Realloc typedef ptr IMalloc_ReallocProto
- IMalloc_Free typedef ptr IMalloc_FreeProto
- IMalloc_GetSize typedef ptr IMalloc_GetSizeProto
- IMalloc_DidAlloc typedef ptr IMalloc_DidAllocProto
- IMalloc_HeapMinimize typedef ptr IMalloc_HeapMinimizeProto
-
- IMalloc struct DWORD
- QueryInterface IUnknown_QueryInterface ?
- AddRef IUnknown_AddRef ?
- Release IUnknown_Release ?
- Alloc IMalloc_Alloc ?
- Realloc IMalloc_Realloc ?
- Free IMalloc_Free ?
- GetSize IMalloc_GetSize ?
- DidAlloc IMalloc_DidAlloc ?
- HeapMinimize IMalloc_HeapMinimize ?
- IMalloc ends
-