forked from java-native-access/jna
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move new win32 structures into the correct Java files. Migrate new wi…
…n32 interfaces still in the old project structure.
- Loading branch information
1 parent
ffa4cc6
commit a4a7fab
Showing
18 changed files
with
368 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
contrib/platform/src/com/sun/jna/platform/win32/Tlhelp32.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.sun.jna.platform.win32; | ||
|
||
import com.sun.jna.Pointer; | ||
import com.sun.jna.Structure; | ||
import com.sun.jna.win32.StdCallLibrary; | ||
|
||
public interface Tlhelp32 extends StdCallLibrary { | ||
|
||
public static class PROCESSENTRY32W extends Structure { | ||
|
||
public static class ByReference extends PROCESSENTRY32W implements Structure.ByReference { | ||
public ByReference() { | ||
} | ||
|
||
public ByReference(Pointer memory) { | ||
super(memory); | ||
} | ||
} | ||
|
||
public PROCESSENTRY32W() { | ||
dwSize = new WinDef.DWORD(size()); | ||
} | ||
|
||
public PROCESSENTRY32W(Pointer memory) { | ||
useMemory(memory); | ||
read(); | ||
} | ||
|
||
public WinDef.DWORD dwSize; | ||
public WinDef.DWORD cntUsage; | ||
public WinDef.DWORD th32ProcessID; | ||
public BaseTSD.ULONG_PTR th32DefaultHeapID; | ||
public WinDef.DWORD th32ModuleID; | ||
public WinDef.DWORD cntThreads; | ||
public WinDef.DWORD th32ParentProcessID; | ||
public WinDef.LONG pcPriClassBase; | ||
public WinDef.DWORD dwFlags; | ||
public char[] szExeFile = new char[WinDef.MAX_PATH]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
contrib/platform/src/com/sun/jna/platform/win32/VerRsrc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.sun.jna.platform.win32; | ||
|
||
import com.sun.jna.Pointer; | ||
import com.sun.jna.Structure; | ||
import com.sun.jna.win32.StdCallLibrary; | ||
|
||
public interface VerRsrc extends StdCallLibrary { | ||
|
||
public static class VS_FIXEDFILEINFO extends Structure { | ||
|
||
public static class ByReference extends VS_FIXEDFILEINFO implements Structure.ByReference { | ||
public ByReference() { | ||
} | ||
|
||
public ByReference(Pointer memory) { | ||
super(memory); | ||
} | ||
} | ||
|
||
public VS_FIXEDFILEINFO() { | ||
} | ||
|
||
public VS_FIXEDFILEINFO(Pointer memory) { | ||
useMemory(memory); | ||
read(); | ||
} | ||
|
||
public int Signature; | ||
public int StrucVersion; | ||
public int FileVersionMS; | ||
public int FileVersionLS; | ||
public int ProductVersionMS; | ||
public int ProductVersionLS; | ||
public int FileFlagsMask; | ||
public int FileFlags; | ||
public int FileOS; | ||
public int FileType; | ||
public int FileSubtype; | ||
public int FileDateMS; | ||
public int FileDateLS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.