lib/win32/windows/structs.rb in win32-service-0.8.8 vs lib/win32/windows/structs.rb in win32-service-0.8.9
- old
+ new
@@ -59,9 +59,14 @@
:dwTagId, :dword,
:lpDependencies, :pointer,
:lpServiceStartName, :pointer,
:lpDisplayName, :pointer
)
+
+ def dependencies
+ length = self[:lpServiceStartName].address - self[:lpDependencies].address - 1
+ self[:lpDependencies].read_bytes(length).split(0.chr)
+ end
end
class SERVICE_STATUS_PROCESS < FFI::Struct
layout(
:dwServiceType, :dword,