char, unsigned char, signed char : 1 byte
short, unsigned short : 2 bytes
int, unsigned int : 4 bytes
long, unsigned long : 4 bytes
float : 4 bytes
double : 8 bytes
long double : 10 bytes
기본 자료형
LP (long pointer): 컴파일러의 버전에 따라 16bits~64bits 가능한 포인터
C (constant): 함수의 내부에서 인자값을 변경하지 않음
STR (string): 끝에 null값으로 종료하는 char형 배열
TSTR (tstring): 컴파일러에 따라 char 혹은 wchar로 mapping해주는 매크로
WSTR (wstring): 유니코드 문자들을 표시하기 위함
문자열 자료형
LPSTR : char*
LPCSTR : const char*
LPCTSTR : const char* 또는 const WCHAR*
WORD : 보통 2 byte의 부호없는 정수형 (unsigned long)(*.word형을 string형으로 바꾸기 string := IntToStr(word); )DWORD : 4 byte의 부호없는 정수형 (unsigned long)
MBCS문자열 유니코드문자열 자동매크로문자열
char wchar_t TCHAR
LPSTR(char*) LPWSTR(wchar_t*) LPTSTR
LPCSTR(const char*) LPCWSTR(const wchar_t *) LPCTSTR
Win32 API 자료형
BYTE(1 byte, unsigned char)
WORD(2 byte, unsigned short)
UINT(4 byte, unsigned int)
DWORD(4 byte, unsigned long)
LONG(4 byte,long), BOOL
문자: UCHAR(unsigned char)
Handle: 대상을 구분하는 4 byte 정수(HWND,HDC...)
참조: https://shineum.tistory.com/12
https://izen8.tistory.com/263