Displaying 6 results from an estimated 6 matches for "getcurrentdirectorya".
Did you mean:
getcurrentdirectoryw
2008 Jan 24
0
JRuby, JNA, Windows
Hi all,
Here''s a short example of how to interface with JRuby and the Windows
API I thought I''d share:
require ''java''
# LoadLibrary()
Kernel32 = com.sun.jna.NativeLibrary.getInstance("kernel32")
# GetProcAddress()
GetCurrentDirectoryA = Kernel32.getFunction(''GetCurrentDirectoryA'')
# You can also do -> buf = java.nio.ByteBuffer.allocate(256)
buf = Array.new(256).to_java(:byte)
GetCurrentDirectoryA.invokeInt([256, buf].to_java)
buf = java.lang.String.new(buf)
p buf.to_s.strip
It''s a little clunkier...
2008 Jan 26
0
JRuby version of win32-api - initial try
...rv = 0
end
args = args.map{ |e|
if e.respond_to?(:array)
e = String.from_java_bytes(e.array)
else
e
end
}
rv
end
end
end
if $0 == __FILE__
include Win32
GetCurrentDirectoryA = API.new(''GetCurrentDirectoryA'', ''LP'', ''L'',
''kernel32'')
buf = 0.chr * 70
p GetCurrentDirectoryA.call(buf.length, buf)
puts buf # => NOT WORKING
end
2008 Dec 18
5
EverQuest - worked once, but no more
...00000002 ret=005bc221
> 0009:Call KERNEL32.FlsGetValue(00000000) ret=005bc22f
> 0009:Ret KERNEL32.FlsGetValue() retval=00bf0128 ret=005bc22f
> 0009:Call KERNEL32.SetLastError(00000002) ret=005bc285
> 0009:Ret KERNEL32.SetLastError() retval=00000002 ret=005bc285
> 0009:Call KERNEL32.GetCurrentDirectoryA(00000105,0032f4d4) ret=005b7ba2
> 0009:Ret KERNEL32.GetCurrentDirectoryA() retval=0000001f ret=005b7ba2
> 0009:Call KERNEL32.GetLastError() ret=005bc221
> 0009:Ret KERNEL32.GetLastError() retval=00000002 ret=005bc221
> 0009:Call KERNEL32.FlsGetValue(00000000) ret=005bc22f
> 0009:Re...
2011 May 27
2
[OS X] How to link kernel32.lib.so with OS X XCode project?
Hi
Please tell me how can I use parts of WINE / WineLib (mainly Kernel32 library implementation) in Mac OS XCode projects?
I tried to link kernel32.lib.so with a test application, which used one of the Kernel32 functions - GetCurrentDirectoryA(), but got a linker error, which was not able to resolve this function :?
The most puzzling thing is that if I run otool on Kernel32.lib.so, it says the shared library is linked with several OS X dynamic libraries and also with libWine.dylib... But what is libWine.dylib? I've installed WINE wi...
2010 Feb 19
0
Wine release 1.1.39
...l.ocx: Use the SendMessage instead of ListView_GetItem.
hhctrl.ocx: Remove a stray heap_alloc(0) (Smatch).
ntdll: Avoid using HIWORD on types that are 64bit on Win64.
oleaut32: Avoid using HIWORD on string pointers.
kernel32: Don't use HIWORD to check for swapped args in GetCurrentDirectoryA.
kernel32: Avoid using HIWORD on types that are 64bit on Win64.
user32: Don't use HIWORD() on a HINSTANCE.
Nikolay Sivov (32):
msxml3: Use libxml2 functionality to skip top XML declaration node while writing to file.
comctl32/listview: Revert item width calculation to f...
2010 Feb 05
0
Wine release 1.1.38
...the array in DPA_Grow.
ntdll: Avoid reporting a freed block twice to Valgrind.
kernel32/tests: Fix heap flag tests for the page alloc case.
kernel: Only start the BIOS timer if there is an actual access to selector 0x40.
kernel32: Avoid truncating the output buffer length in GetCurrentDirectoryA.
kernel32/tests: Remove leftover Sleep() call.
server: Make terminate_process more robust against recursive calls for the same process.
user.exe: Make CreateIcon16 available as 32-bit export.
shell: Explicitly convert icons to 16-bit instead of casting handles.
user32/...