home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / objbase.inc < prev    next >
Encoding:
Text File  |  2000-05-25  |  6.6 KB  |  198 lines

  1. ; ObjBase.inc
  2. ; Version 1.0 - April 9, 1999 - by Lord Lucifer
  3. ;-------------------------------------------------------------------------------------------------
  4.  
  5. includelib ole32.lib
  6.  
  7. ;--------------------------------------------------------------------------------------------------
  8. FAILED                equ    10000000h
  9. SUCCEEDED            equ    00000000h
  10.  
  11. S_OK                  equ    00000000h
  12. S_FALSE                 equ    00000001h
  13.  
  14. ;--------------------------------------------------------------------------------------------------
  15.  
  16. CLSCTX_ALL                equ CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER
  17. CLSCTX_INPROC           equ CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER
  18. CLSCTX_SERVER           equ    CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER 
  19.  
  20. REGCLS_SINGLEUSE        equ    0
  21. REGCLS_MULTIPLEUSE        equ    1
  22. REGCLS_MULTI_SEPARATE    equ 2
  23.  
  24. MARSHALINTERFACE_MIN    equ 500
  25. CWCSTORAGENAME          equ 32
  26. STGM_DIRECT             equ 0
  27. STGM_TRANSACTED         equ 00010000h
  28. STGM_SIMPLE             equ 08000000h
  29. STGM_READ               equ 0
  30. STGM_WRITE              equ 00000001h
  31. STGM_READWRITE          equ 00000002h
  32. STGM_SHARE_DENY_NONE    equ 00000040h
  33. STGM_SHARE_DENY_READ    equ 00000030h
  34. STGM_SHARE_DENY_WRITE   equ 00000020h
  35. STGM_SHARE_EXCLUSIVE    equ 00000010h
  36. STGM_PRIORITY           equ 00040000h
  37. STGM_DELETEONRELEASE    equ 04000000h
  38. STGM_CREATE             equ 00001000h
  39. STGM_CONVERT            equ 00020000h
  40. STGM_FAILIFTHERE        equ 0
  41.  
  42.  
  43. ; Object API Prototypes
  44. ;-------------------------------------------------------------------------------------------------
  45.  
  46. CoBuildVersion PROTO
  47.  
  48. CoInitialize PROTO :DWORD
  49. CoUninitialize PROTO
  50. CoGetMalloc PROTO :DWORD, :DWORD
  51. CoGetCurrentProcess PROTO
  52. CoRegisterMallocSpy PROTO :DWORD
  53. CoRevokeMallocSpy PROTO
  54. CoCreateStandardMalloc PROTO :DWORD, :DWORD
  55.  
  56. DebugCoGetRpcFault PROTO
  57. DebugCoSetRpcFault PROTO :DWORD
  58.  
  59. CoGetClassObject PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  60. CoRegisterClassObject PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  61. CoRevokeClassObject PROTO :DWORD
  62.  
  63. CoGetMarshalSizeMax PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  64. CoMarshalInterface PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  65. CoUnmarshalInterface PROTO :DWORD, :DWORD, :DWORD
  66. CoMarshalHresult PROTO :DWORD, :DWORD
  67. CoUnmarshalHresult PROTO :DWORD, :DWORD
  68. CoReleaseMarshalData PROTO :DWORD
  69. CoDisconnectObject PROTO :DWORD, :DWORD
  70. CoLockObjectExternal PROTO :DWORD, :DWORD, :DWORD
  71. CoGetStandardMarshal PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  72.  
  73. CoIsHandlerConnected PROTO :DWORD
  74. CoHasStrongExternalConnections PROTO :DWORD
  75. CoMarshalInterThreadInterfaceInStream PROTO :DWORD, :DWORD, :DWORD
  76. CoGetInterfaceAndReleaseStream PROTO :DWORD, :DWORD, :DWORD
  77. CoCreateFreeThreadedMarshaler PROTO :DWORD, :DWORD
  78.  
  79. CoLoadLibrary PROTO :DWORD, :DWORD
  80. CoFreeLibrary PROTO :DWORD
  81. CoFreeAllLibraries PROTO
  82. CoFreeUnusedLibraries PROTO
  83.  
  84. CoCreateInstance PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  85.  
  86. StringFromCLSID PROTO :DWORD, :DWORD
  87. CLSIDFromString PROTO :DWORD, :DWORD
  88. StringFromIID PROTO :DWORD, :DWORD
  89. IIDFromString PROTO :DWORD, :DWORD
  90. CoIsOle1Class PROTO :DWORD
  91. ProgIDFromCLSID PROTO :DWORD, :DWORD
  92. CLSIDFromProgID PROTO :DWORD, :DWORD
  93. StringFromGUID2 PROTO :DWORD, :DWORD, :DWORD
  94.  
  95. CoCreateGuid PROTO :DWORD
  96. CoFileTimeToDosDateTime PROTO :DWORD, :DWORD, :DWORD
  97. CoDosDateTimeToFileTime PROTO :DWORD, :DWORD, :DWORD
  98. CoFileTimeNow PROTO :DWORD
  99.  
  100. CoRegisterMessageFilter PROTO :DWORD, :DWORD
  101. CoGetTreatAsClass PROTO :DWORD, :DWORD
  102. CoTreatAsClass PROTO :DWORD, :DWORD
  103.  
  104. DllGetClassObject PROTO :DWORD, :DWORD, :DWORD
  105. DllCanUnloadNow PROTO
  106.  
  107. CoTaskMemAlloc PROTO :DWORD
  108. CoTaskMemRealloc PROTO :DWORD, :DWORD
  109. CoTaskMemFree PROTO :DWORD
  110.  
  111. CreateDataAdviseHolder PROTO :DWORD, :DWORD
  112. CreateDataCache PROTO :DWORD, :DWORD, :DWORD, :DWORD
  113.  
  114. StgCreateDocfile PROTO :DWORD, :DWORD, :DWORD, :DWORD
  115. StgCreateDocfileOnILockBytes PROTO :DWORD, :DWORD, :DWORD, :DWORD
  116.  
  117. StgOpenStorage PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  118. StgOpenStorageOnILockBytes PROTO :DWORD, :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  119. StgIsStorageFile PROTO :DWORD
  120. StgIsStorageILockBytes PROTO :DWORD
  121.  
  122. StgSetTimes PROTO :DWORD, :DWORD, :DWORD, :DWORD
  123.  
  124. BindMoniker PROTO :DWORD, :DWORD, :DWORD, :DWORD
  125. MkParseDisplayName PROTO :DWORD, :DWORD, :DWORD, :DWORD
  126. MonikerRelativePathTo PROTO :DWORD, :DWORD, :DWORD, :DWORD
  127. MonikerCommonPrefixWith PROTO :DWORD, :DWORD, :DWORD
  128. CreateBindCtx PROTO :DWORD, :DWORD
  129. CreateGenericComposite PROTO :DWORD, :DWORD, :DWORD
  130. GetClassFile PROTO :DWORD, :DWORD
  131.  
  132. CreateFileMoniker PROTO :DWORD, :DWORD
  133. CreateItemMoniker PROTO :DWORD, :DWORD, :DWORD
  134. CreateAntiMoniker PROTO :DWORD
  135. CreatePointerMoniker PROTO :DWORD, :DWORD
  136. GetRunningObjectTable PROTO :DWORD, :DWORD
  137.  
  138. IID    STRUCT DWORD
  139.     Data1     dd ?
  140.     Data2     dw ?
  141.     Data3     dw ?
  142.     Data4     db 8 dup(?)
  143. IID ENDS
  144.  
  145. ;-------------------------------------------------------------------------------------------------
  146. ; IUnknown interface
  147.  
  148. externdef                IID_IUnknown:IID        
  149. LPUNKNOWN                typedef DWORD
  150. LPPUNKNOWN                typedef ptr LPUNKNOWN
  151.  
  152. IUnknown_QueryInterfaceProto    typedef proto :DWORD, :DWORD, :DWORD
  153. IUnknown_AddRefProto            typedef proto :DWORD 
  154. IUnknown_ReleaseProto            typedef proto :DWORD
  155. IUnknown_QueryInterface            typedef ptr IUnknown_QueryInterfaceProto
  156. IUnknown_AddRef                    typedef ptr    IUnknown_AddRefProto
  157. IUnknown_Release                typedef ptr IUnknown_ReleaseProto
  158.     
  159. IUnknown struct DWORD
  160.     QueryInterface    IUnknown_QueryInterface    ?
  161.     AddRef            IUnknown_AddRef            ?
  162.     Release            IUnknown_Release        ?
  163. IUnknown ends
  164.  
  165.  
  166. ;--------------------------------------------------------------------------------------------------
  167. ;IMalloc Interface
  168.  
  169. externdef        IID_IMalloc:IID        
  170. LPMALLOC        typedef DWORD
  171. LPPMALLOC        typedef ptr LPMALLOC
  172.  
  173. IMalloc_AllocProto            typedef proto :DWORD, :DWORD
  174. IMalloc_ReallocProto        typedef proto :DWORD, :DWORD, :DWORD
  175. IMalloc_FreeProto            typedef proto :DWORD, :DWORD
  176. IMalloc_GetSizeProto        typedef proto :DWORD, :DWORD
  177. IMalloc_DidAllocProto        typedef proto :DWORD, :DWORD
  178. IMalloc_HeapMinimizeProto    typedef proto :DWORD
  179.  
  180. IMalloc_Alloc                typedef ptr IMalloc_AllocProto
  181. IMalloc_Realloc                typedef ptr IMalloc_ReallocProto
  182. IMalloc_Free                typedef ptr IMalloc_FreeProto
  183. IMalloc_GetSize                typedef ptr IMalloc_GetSizeProto
  184. IMalloc_DidAlloc            typedef ptr IMalloc_DidAllocProto
  185. IMalloc_HeapMinimize        typedef ptr IMalloc_HeapMinimizeProto
  186.  
  187. IMalloc struct DWORD
  188.     QueryInterface    IUnknown_QueryInterface ?
  189.     AddRef            IUnknown_AddRef            ?
  190.     Release            IUnknown_Release        ?
  191.     Alloc            IMalloc_Alloc            ?
  192.     Realloc            IMalloc_Realloc            ?
  193.     Free            IMalloc_Free            ?
  194.     GetSize            IMalloc_GetSize            ?
  195.     DidAlloc        IMalloc_DidAlloc        ?
  196.     HeapMinimize    IMalloc_HeapMinimize    ?
  197. IMalloc ends
  198.