C (Unmanaged Code) |
C# |
HANDLE, void*, 또는 일반 pointer |
IntPtr |
BYTE, unsigned short |
Byte |
short |
Short |
WORD, unsigned short |
Ushort |
int |
int |
UINT, unsigned int |
uint |
long |
int |
BOOL |
int |
DWORD, unsigned long |
uint |
char |
char |
LPSTR, char* |
string 또는 StringBuilder |
LPCSTR, const char* |
string 또는 StringBuilder |
BSTR |
string |
float |
float |
double |
double |
HRESULT |
int |
VARIANT |
object |
2011/11/04 - [C# .NET] - [C#] PInvoke 1탄. 데이터 타입 변환표
2011/11/04 - [C# .NET] - [C#] PInvoke 2탄. Normal Data Type
2011/11/04 - [C# .NET] - [C#] PInvoke 3탄. String 타입
2011/11/04 - [C# .NET] - [C#] PInvoke 4탄. ByteArray
2011/11/04 - [C# .NET] - [C#] PInvoke 5탄. Callback Function