GUID returns the event GUID from the raw event type.
()
| 579 | |
| 580 | // GUID returns the event GUID from the raw event type. |
| 581 | func (t *Type) GUID() windows.GUID { |
| 582 | return windows.GUID{ |
| 583 | Data1: binary.BigEndian.Uint32(t[0:4]), |
| 584 | Data2: binary.BigEndian.Uint16(t[4:6]), |
| 585 | Data3: binary.BigEndian.Uint16(t[6:8]), |
| 586 | Data4: [8]byte{t[8], t[9], t[10], t[11], t[12], t[13], t[14], t[15]}, |
| 587 | } |
| 588 | } |
| 589 | |
| 590 | // HookID returns the event operation code (hook ID) from the raw event type. |
| 591 | func (t *Type) HookID() uint16 { |