Changeset 497 for trunk/Include/objbase.sbp
- Timestamp:
- Mar 28, 2008, 5:43:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/objbase.sbp
r303 r497 1 1 ' objbase.sbp 2 3 #ifndef _INC_OBJBASE4 #define _INC_OBJBASE5 2 6 3 TypeDef RPC_AUTH_IDENTITY_HANDLE = VoidPtr 'Declared in Rpcdce.sbp; include Rpc.sbp. … … 89 86 Const CLSCTX_INPROC = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER 90 87 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 91 #ifdef _WIN32_DCOM92 88 Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER or CLSCTX_REMOTE_SERVER 93 89 Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER or CLSCTX_REMOTE_SERVER 94 #else95 Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER96 Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER97 #endif90 '#else 91 'Const CLSCTX_ALL = CLSCTX_INPROC_SERVER or CLSCTX_INPROC_HANDLER or CLSCTX_LOCAL_SERVER 92 'Const CLSCTX_SERVER = CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER 93 '#endif 98 94 99 95 Const Enum REGCLS … … 115 111 116 112 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 117 #ifdef _WIN32_DCOM118 113 Const Enum COINIT 119 114 COINIT_MULTITHREADED = &h0 … … 124 119 Declare Function CoInitializeEx Lib "ole32" (pvReserved As VoidPtr, dwCoInit As DWord) As HRESULT 125 120 Declare Function CoGetCallerTID Lib "ole32" (ByRef dwTID AS DWord) As HRESULT 126 #endif121 '#endif 127 122 128 123 #ifdef __UNDECLARED__ … … 220 215 221 216 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 222 #ifdef _WIN32_DCOM223 217 224 218 /* Call Security. */ 225 219 220 /*SOLE_AUTHENTICATION_SERVICE未定義 226 221 Declare Function CoInitializeSecurity Lib "ole32" ( 227 222 ByVal pSecDesc As *SECURITY_DESCRIPTOR, … … 231 226 ByVal dwImpLevel As DWord, 232 227 ByVal pAuthList As VoidPtr, 233 ByVal dwCapabilities As DWord 228 ByVal dwCapabilities As DWord, 234 229 ByVal pReserved3 As VoidPtr) As HRESULT 230 */ 235 231 Declare Function CoGetCallContext Lib "ole32" ( 236 232 ByRef riid As IID, … … 243 239 ByVal pAuthnLevel As *DWord, 244 240 ByVal pImpLevel As *DWord, 245 ByVal pAuthInfo As *RPC_AUTH_IDENTITY_HANDLE 241 ByVal pAuthInfo As *RPC_AUTH_IDENTITY_HANDLE, 246 242 ByVal pCapabilites As *DWord) As HRESULT 247 243 Declare Function CoSetProxyBlanket Lib "ole32" ( … … 263 259 ByVal pAuthnLevel As *DWord, 264 260 ByVal pImpLevel As *DWord, 265 ByVal pPrivs As *RPC_AUTHZ_HANDLE 261 ByVal pPrivs As *RPC_AUTHZ_HANDLE, 266 262 ByVal pCapabilities As *DWord) As HRESULT 267 263 Declare Function CoImpersonateClient Lib "ole32" () As HRESULT … … 281 277 Const COM_RIGHTS_ACTIVATE_LOCAL = 8 282 278 Const COM_RIGHTS_ACTIVATE_REMOTE = 16 283 284 #endif ' DCOM 279 '#endif ' DCOM 285 280 286 281 Declare Function CoCreateInstance Lib "ole32" (ByRef clsid As CLSID, pUnknown As *IUnknown, dwClsContext As DWord, ByRef refiid As IID, ByRef pObj As Any) As HRESULT 287 282 288 283 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 289 #ifdef _WIN32_DCOM290 284 Declare Function CoGetInstanceFromFile Lib "ole32" ( 291 285 ByVal pServerInfo As *COSERVERINFO, … … 294 288 ByVal dwClsCtx As DWord, 295 289 ByVal grfMode As DWord, 296 ByVal pwszName As *OLECHAR 290 ByVal pwszName As *OLECHAR, 297 291 ByVal dwCount As DWord, 298 292 ByVal pResults As *MULTI_QI) As HRESULT … … 304 298 ByVal dwClsCtx As DWord, 305 299 ByVal grfMode As DWord, 306 ByVal pstg As *IStorage 300 ByVal pstg As *IStorage, 307 301 ByVal dwCount As DWord, 308 302 ByVal pResults As *MULTI_QI) As HRESULT … … 312 306 ByVal punkOuter As *IUnknown, 313 307 ByVal dwClsCtx As DWord, 314 ByVal pServerInfo As COSERVERINFO,308 ByVal pServerInfo As *COSERVERINFO, 315 309 ByVal dwCount As DWord, 316 310 ByVal pResults As *MULTI_QI) As HRESULT 317 #endif ' DCOM311 '#endif ' DCOM 318 312 319 313 /* Call related APIs */ 320 314 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 321 #ifdef _WIN32_DCOM322 323 315 Declare Function CoGetCancelObject Lib "ole32" (dwThreadId As DWord, ByRef iid As IID, ByRef pUnk As Any) As HRESULT 324 316 Declare Function CoSetCancelObject Lib "ole32" (pUnk As *IUnknown) As HRESULT … … 329 321 Declare Function CoAllowSetForegroundWindow Lib "ole32" (pUnk As *IUnknown, pvReserved As VoidPtr) As HRESULT 330 322 Declare Function DcomChannelSetHResult Lib "ole32" (pvReserved As HRESULT, pulReserved As DWord, appsHR As HRESULT) As HRESULT 331 332 #endif 323 '#endif 333 324 334 325 /* other helpers */ … … 353 344 354 345 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 355 #ifdef _WIN32_DCOM 356 Declare Function CoRegisterChannelHook Lib "ole32" (ByRef ExtensionUuid As GUID, pChannelHook As *IChannelHook) As HRESULT357 #endif ' DCOM346 'IChannelHook未定義 347 'Declare Function CoRegisterChannelHook Lib "ole32" (ByRef ExtensionUuid As GUID, pChannelHook As *IChannelHook) As HRESULT 348 '#endif ' DCOM 358 349 359 350 '#if (_WIN32_WINNT >= &h0400) Or defined(_WIN32_DCOM) 'DCOM 360 #ifdef _WIN32_DCOM361 351 362 352 Declare Function CoWaitForMultipleHandles Lib "ole32" ( … … 375 365 End Enum 376 366 377 #endif ' DCOM367 '#endif ' DCOM 378 368 379 369 /* for flushing OLESCM remote binding handles */ … … 551 541 ByVal pIbscCaller As *IBindStatusCallback, 552 542 ByRef pIbsc As *IBindStatusCallback) As HRESULT 553 554 555 #endif '_INC_OBJBASE
Note:
See TracChangeset
for help on using the changeset viewer.