Sha256: 8c75302ab9267851b0086008f6ab6ada298e162e6c14c24000602db965dfceb7

Contents?: true

Size: 817 Bytes

Versions: 3

Compression:

Stored size: 817 Bytes

Contents

== Parameters
Long:     'L'
Integer:  'I'
Pointer:  'P'
Void:     'V'
String:   'S'
Callback: 'K' # win32-api only

== Windows Data Types
BOOL  		=> 'I' (or 'B', win32-api only)
DWORD 		=> 'L'
HANDLE		=> 'L'
LPDWORD		=> 'P' (or 'L')
LPTSTR 		=> 'P'
LPCTSTR     => 'S'
UINT  		=> 'L'
VOID        => 'V'
WORD        => 'I'
LPVOID      => 'L' (or 'P')
CALLBACK    => 'K'

== C Data Types
void     	=> 'V'
void*    	=> 'P'
char*    	=> 'P'
const char* => 'L'
int			=> 'I'
long        => 'L'
struct      => 'P'
struct*     => 'P'

== Notes
In practice most LPVOID types should be designated as 'L' because this
usually means the function is looking for an address. Check the documentation
for details.

If using the windows-api library, you can use 'B' instead of 'I' for the return
type for functions that return a BOOL. 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
windows-pr-1.2.4 doc/conversion_guide.txt
windows-pr-1.2.3 doc/conversion_guide.txt
windows-pr-1.1.3 doc/conversion_guide.txt