Structs J/Direct Sample
This sample is located in \Samples\JDirect\Structs.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
Description
This sample displays the memory status of the local computer.
Using the Sample
To run the sample
Run Go.bat in the \Samples\JDirect\Structs directory.
Key Project Files
Structs.java
This class contains the methods that read and display the memory contents of KERNEL.DLL.
Technologies Demonstrated
Microsoft J/Direct
This sample shows how to:
- Use @dll.import and @dll.struct to read the memory contents of KERNEL.DLL and display the results.
- Pass a pointer to a simple structure. To declare a native structure in Java, use the @dll.struct directive as shown in the MEMORYSTATUS structure in Structs.java.
© 1999 Microsoft Corporation. All rights reserved. Terms of use.