Sha256: db39f691d79d6d6f96c057832e6e02a488873d2f862afcead1630a341c5138a6

Contents?: true

Size: 854 Bytes

Versions: 11

Compression:

Stored size: 854 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

11 entries across 11 versions & 1 rubygems

Version Path
windows-pr-1.2.6 doc/conversion_guide.txt
windows-pr-1.2.5 doc/conversion_guide.txt
windows-pr-1.2.2 doc/conversion_guide.txt
windows-pr-1.2.1 doc/conversion_guide.txt
windows-pr-1.2.0 doc/conversion_guide.txt
windows-pr-1.1.2 doc/conversion_guide.txt
windows-pr-1.1.1 doc/conversion_guide.txt
windows-pr-1.1.0 doc/conversion_guide.txt
windows-pr-1.0.9 doc/conversion_guide.txt
windows-pr-1.0.8 doc/conversion_guide.txt
windows-pr-1.0.7 doc/conversion_guide.txt