2017-08-25 18:34:26 -04:00
|
|
|
! Copyright (C) 2010 Joe Groff.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2012-06-21 11:32:53 -04:00
|
|
|
USING: alien.data alien.strings byte-arrays
|
2011-09-25 14:49:27 -04:00
|
|
|
kernel specialized-arrays system tools.deploy.libraries
|
|
|
|
windows.kernel32 windows.types ;
|
2010-02-16 16:32:14 -05:00
|
|
|
FROM: alien.c-types => ushort ;
|
|
|
|
SPECIALIZED-ARRAY: ushort
|
|
|
|
IN: tools.deploy.libraries.windows
|
|
|
|
|
|
|
|
M: windows find-library-file
|
|
|
|
f DONT_RESOLVE_DLL_REFERENCES LoadLibraryEx [
|
|
|
|
[
|
2011-09-25 14:49:27 -04:00
|
|
|
32768 ushort (c-array) [ 32768 GetModuleFileName drop ] keep
|
2012-06-21 11:32:53 -04:00
|
|
|
alien>native-string
|
2010-02-16 16:32:14 -05:00
|
|
|
] [ FreeLibrary drop ] bi
|
|
|
|
] [ f ] if* ;
|