pragma data_seg

Ive seen this for the first time in some dll:

1
2
3
4
#pragma data_seg (".HookSection")		
// Shared instance for all processes.
HHOOK hHook = NULL;	
#pragma data_seg () 


What is the purpose of data_seg? Can someone explain this to me in simple wording?

Thank you for your time.
Look at this:

http://msdn.microsoft.com/en-us/library/thfhx4st%28v=vs.80%29.aspx

you can name a segement where the data is stored. At the moment a can't think of any use for that.


No, it does not share data across processes (by itself, you have to do more to achieve that, like memory mapping that section. If that is actually possible. I don't know)
Topic archived. No new replies allowed.