Changeset 32475 in vbox
- Timestamp:
- Sep 14, 2010 11:47:38 AM (14 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp
r32474 r32475 488 488 489 489 #ifdef VBOX_WITH_HGCM 490 /* Initialize the HGCM event notification semaphore. */491 KeInitializeEvent(&pDevExt->win.s.hgcm.s.keventNotification, NotificationEvent, FALSE);492 493 /* Preallocated constant timeout 250ms for HGCM async waiter. */494 pDevExt->win.s.hgcm.s.WaitTimeout.QuadPart = 250;495 pDevExt->win.s.hgcm.s.WaitTimeout.QuadPart *= -10000; /* Relative in 100ns units. */496 497 490 Log(("VBoxGuest::vboxguestwinInit: Allocating kernel session data ...\n")); 498 491 int vrc = VBoxGuestCreateKernelSession(pDevExt, &pDevExt->win.s.pKernelSession); -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.h
r32322 r32475 69 69 70 70 71 /** Windows-specific HGCM device extension bits. */72 typedef struct VBOXGUESTDEVEXTWINHGCM73 {74 /** The callback wait timeout. */75 LARGE_INTEGER WaitTimeout;76 /** Notification semaphore. */77 KEVENT keventNotification;78 } VBOXGUESTDEVEXTWINHGCM, *PVBOXGUESTDEVEXTWINHGCM;79 80 81 71 /** Windows-specific device extension bits. */ 82 72 typedef struct VBOXGUESTDEVEXTWIN … … 125 115 * for handling kernel IOCtls. */ 126 116 PVBOXGUESTSESSION pKernelSession; 127 128 /** Align the next bit on a 64-byte boundary and make sure it starts at the same129 * offset in both 64-bit and 32-bit builds.130 *131 * @remarks The aligments of the members that are larger than 48 bytes should be132 * 64-byte for cache line reasons. structs containing small amounts of133 * data could be lumped together at the end with a < 64 byte padding134 * following it (to grow into and align the struct size).135 */136 uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 24 : 4];137 138 /** HGCM stuff. */139 union140 {141 #ifdef VBOX_WITH_HGCM142 VBOXGUESTDEVEXTWINHGCM s;143 #endif144 uint8_t padding[256]; /* Multiple of 64; fix me! */145 } hgcm;146 117 } VBOXGUESTDEVEXTWIN, *PVBOXGUESTDEVEXTWIN; 147 118
Note:
See TracChangeset
for help on using the changeset viewer.