2010-02-16 16:32:14 -05:00
|
|
|
! (c)2010 Joe Groff bsd license
|
2011-09-25 14:49:27 -04:00
|
|
|
USING: alien.data alien.strings byte-arrays io.encodings.utf16n
|
|
|
|
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
|
2010-02-16 16:32:14 -05:00
|
|
|
utf16n alien>string
|
|
|
|
] [ FreeLibrary drop ] bi
|
|
|
|
] [ f ] if* ;
|
|
|
|
|