示例#1
0
 private HandleSuite()
 {
     handleNewProc            = new NewPIHandleProc(NewHandle);
     handleDisposeProc        = new DisposePIHandleProc(DisposeHandle);
     handleGetSizeProc        = new GetPIHandleSizeProc(GetHandleSize);
     handleSetSizeProc        = new SetPIHandleSizeProc(SetHandleSize);
     handleLockProc           = new LockPIHandleProc(LockHandle);
     handleUnlockProc         = new UnlockPIHandleProc(UnlockHandle);
     handleRecoverSpaceProc   = new RecoverSpaceProc(RecoverHandleSpace);
     handleDisposeRegularProc = new DisposeRegularPIHandleProc(DisposeRegularHandle);
     handles = new Dictionary <IntPtr, HandleEntry>(IntPtrEqualityComparer.Instance);
 }
示例#2
0
 private HandleSuite()
 {
     handleNewProc            = new NewPIHandleProc(NewHandle);
     handleDisposeProc        = new DisposePIHandleProc(DisposeHandle);
     handleGetSizeProc        = new GetPIHandleSizeProc(GetHandleSize);
     handleSetSizeProc        = new SetPIHandleSizeProc(SetHandleSize);
     handleLockProc           = new LockPIHandleProc(LockHandle);
     handleUnlockProc         = new UnlockPIHandleProc(UnlockHandle);
     handleRecoverSpaceProc   = new RecoverSpaceProc(RecoverHandleSpace);
     handleDisposeRegularProc = new DisposeRegularPIHandleProc(DisposeRegularHandle);
     handles = new Dictionary <Handle, HandleEntry>();
 }