I need to convert int value to LPBYTE. when I look at the definitions is shows like this. I'm not sure what is far
word says.
typedef unsigned char BYTE;
typedef BYTE far *LPBYTE;
- What is the meaning of 'far'
- How to convert int value to LPBYTE
Edit
foo(LPBYTE x){
}
int main()
{
int y = koo();
foo(y); // how to cast here
return 0;
}
Actual code
int iVal = 0;
LONG res = RegQueryValueEx(hKey, L"UseSystemSeparators", NULL, &lpType, (LPBYTE)iVal, &size);