FFI: FFI-Win32-mt.17.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FFI: FFI-Win32-mt.17.mcz

commits-2
Marcel Taeumel uploaded a new version of FFI-Win32 to project FFI:
http://source.squeak.org/FFI/FFI-Win32-mt.17.mcz

==================== Summary ====================

Name: FFI-Win32-mt.17
Author: mt
Time: 2 June 2020, 8:13:09.982821 pm
UUID: 2637aef5-7043-7f4e-bd85-b885abf44c3e
Ancestors: FFI-Win32-cbc.16

Complements FFI-Pools-mt.18

=============== Diff against FFI-Win32-cbc.16 ===============

Item was added:
+ ExternalPool subclass: #Win32Pool
+ instanceVariableNames: ''
+ classVariableNames: 'WIN32_WINNT_VISTA WIN32_WINNT_WIN10 WIN32_WINNT_WIN7 WIN32_WINNT_WIN8 WIN32_WINNT_WINXP'
+ poolDictionaries: ''
+ category: 'FFI-Win32-Examples'!

Item was added:
+ ----- Method: Win32Pool class>>winver (in category 'definitions') -----
+ winver
+ "
+ self winver writePoolData.
+ self winver readPoolData.
+ "
+ <ffiExternalPool>
+ <ffiPoolDataStorage: #methodSource>
+ <ffiPlatformName: 'Win32'>
+
+ <ffiCHeaders: #('<sdkddkver.h>')>
+ <ffiVariable: #_WIN32_WINNT_WINXP>
+ <ffiVariable: #_WIN32_WINNT_VISTA>
+ <ffiVariable: #_WIN32_WINNT_WIN7>
+ <ffiVariable: #_WIN32_WINNT_WIN8>
+ <ffiVariable: #_WIN32_WINNT_WIN10>
+
+ ^ self poolDefinition!

Item was added:
+ ----- Method: Win32Pool class>>winverData (in category 'definitions - data') -----
+ winverData
+ "Automatically generated."
+ <ffiPoolReadWriter: #ExternalPoolST1ReadWriter>
+ <ffiPoolDataStorage: #methodSource>
+ "
+ Win32Pool winver readPoolDataFrom: #methodSource.
+ Win32Pool winver writePoolDataTo: #methodSource.
+ "
+ ^ {
+ (FFIPlatformDescription name: 'Win32' osVersion: '10.0' subtype: 'IX86' wordSize: 4).
+ Dictionary new
+ at: #WIN32_WINNT_WIN7 put: 16r00000601;
+ at: #WIN32_WINNT_WINXP put: 16r00000501;
+ at: #WIN32_WINNT_VISTA put: 16r00000600;
+ at: #WIN32_WINNT_WIN8 put: 16r00000602;
+ at: #WIN32_WINNT_WIN10 put: 16r00000A00;
+ yourself.
+ }
+ !