Mul ID,FiveCC¶
It describes the ID format that is used in the window script .
Mul ID¶
A Multi- ID is 32 bit integer divided to 8bit,8bit and 16bit.
Described in the following format.
8bit_8bit_16bit
You can set the value in the following range.
000_000_00000 … 255_255_65535
However , please “000_000_00000” do not use.
000_010_00000
123_123_12345
123_456_78910 //invalid(It is beyond the range of value)
Access method from C#¶
You can use the MulId class on C#.
//Constructor
MulId(string sId);
MulId(uint uppper,uint middle,uint lower);
MulId(uint val);
// Properties
uint Upper; //Get the upper 8bit
uint Middle; //Get the middle 8bit
uint Lower; //Get the lower 16bit
//cast to uint
static implicit operator uint (MulId mulId);
FiveCC¶
The ID consists of ASCII characters within five characters. You can use ASCII characters as follows.
0 … 9
a … z
A … Z
?,_
Space
Please be careful ‘?’ and ‘_’. Because thease are encoded in the same numerical value.
"BTN00"
"BTN0?" = "BTN0_"
"Test"
Access method from C#¶
You can use the FiveCC class on C#.
//Constructor
FiveCC(string sId);
FiveCC(uint uppper,uint middle,uint lower);
FiveCC(uint val);
// Get the character pointed to by the index
public char this[int index];
//cast to uint
static implicit operator uint (FiveCC FiveCC);