Export (0) Print
Expand All
Expand Minimize

__writegsbyte, __writegsdword, __writegsqword, __writegsword

Microsoft Specific

Write memory to a location specified by an offset relative to the beginning of the GS segment.

void __writegsbyte( 
   unsigned long Offset, 
   unsigned char Data 
);
void __writegsword( 
   unsigned long Offset, 
   unsigned short Data 
);
void __writegsdword( 
   unsigned long Offset, 
   unsigned long Data 
);
void __writegsqword( 
   unsigned long Offset, 
   unsigned __int64 Data 
);

[in] Offset

The offset from the beginning of GS to write to.

[in] Data

The value to write.

Intrinsic

Architecture

__writegsbyte

x64

__writegsdword

x64

__writegsqword

x64

__writegsword

x64

Header file <intrin.h>

These intrinsics are available in kernel mode only, and these routines are only available as intrinsics.

Community Additions

ADD
Show:
© 2014 Microsoft