get rid of Magic numbers in windows/inventories.

Signed-off-by: Nick Minkler <sleaker@gmail.com>
Merge pull request #549 from Sleaker/master

Cleanup magic numbers in inventories