Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

__writefsbyte, __writefsdword, __writefsqword, __writefsword

Microsoft Specific

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

void __writefsbyte( 
   unsigned long Offset, 
   unsigned char Data 
);
void __writefsword( 
   unsigned long Offset, 
   unsigned short Data 
);
void __writefsdword( 
   unsigned long Offset, 
   unsigned long Data 
);
void __writefsqword( 
   unsigned long Offset, 
   unsigned __int64 Data 
);

[in] Offset

The offset from the beginning of FS to write to.

[in] Data

The value to write.

Intrinsic

Architecture

__writefsbyte

x86

__writefsword

x86

__writefsdword

x86

__writefsqword

x86

Header file <intrin.h>

These routines are available only as intrinsics.

Community Additions

ADD
Show:
© 2015 Microsoft