Artifact b2a61832b0cfbdcf29c0bc7f02c52ed27701c433
- File
src/win32/unknwn.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
/***********************************************************************\ * unknwn.d * * * * Windows API header module * * * * Translated from MinGW Windows headers * * * * Placed into public domain * \***********************************************************************/ module win32.unknwn; import win32.objfwd, win32.windef, win32.wtypes; private import win32.basetyps; extern (Windows) { void* MIDL_user_allocate(size_t); void MIDL_user_free(void*); } extern (Windows) { interface IUnknown { HRESULT QueryInterface(IID* riid, void** pvObject); ULONG AddRef(); ULONG Release(); } alias IUnknown LPUNKNOWN; interface IClassFactory : IUnknown { HRESULT CreateInstance(IUnknown UnkOuter, IID* riid, void** pvObject); HRESULT LockServer(BOOL fLock); } alias IClassFactory LPCLASSFACTORY; /+ // These do not seem to be necessary (or desirable) for D. HRESULT IUnknown_QueryInterface_Proxy(IUnknown,REFIID,void**); ULONG IUnknown_AddRef_Proxy(IUnknown); ULONG IUnknown_Release_Proxy(IUnknown); HRESULT IClassFactory_RemoteCreateInstance_Proxy(IClassFactory,REFIID,IUnknown*); HRESULT IClassFactory_RemoteLockServer_Proxy(IClassFactory,BOOL); HRESULT IClassFactory_CreateInstance_Proxy(IClassFactory,IUnknown,REFIID,void**); HRESULT IClassFactory_CreateInstance_Stub(IClassFactory,REFIID,IUnknown*); HRESULT IClassFactory_LockServer_Proxy(IClassFactory,BOOL); HRESULT IClassFactory_LockServer_Stub(IClassFactory,BOOL); void IUnknown_QueryInterface_Stub(LPRPCSTUBBUFFER,LPRPCCHANNELBUFFER,PRPC_MESSAGE,PDWORD); void IUnknown_AddRef_Stub(LPRPCSTUBBUFFER,LPRPCCHANNELBUFFER,PRPC_MESSAGE,PDWORD); void IUnknown_Release_Stub(LPRPCSTUBBUFFER,LPRPCCHANNELBUFFER,PRPC_MESSAGE,PDWORD); void IClassFactory_RemoteCreateInstance_Stub(LPRPCSTUBBUFFER,LPRPCCHANNELBUFFER,PRPC_MESSAGE,PDWORD); void IClassFactory_RemoteLockServer_Stub(LPRPCSTUBBUFFER,LPRPCCHANNELBUFFER,PRPC_MESSAGE,PDWORD); +/ }