Have you seen this?
In reply to Re^5: How to use 'unsigned char' C data type with Win32::API by BrowserUk in thread Solved: How to use 'unsigned char' C data type with Win32::API by sam_bakki