how to realize "#define" macro definition in C#

Joined
Jun 29, 2005
Messages
11
Reaction score
0
I have such a block in C++
#pragma pack(push,4)
#define STATE_NULL 0x0000
#pragma pack(pop)

and I need to convert it to C#.

I want to use the "MarshalAs" attribute, but i dont
know which UnmanagedType that hex value belongs to.

Is there another way to realize this convertion ?

thank you very much
 
Back
Top