Solved

Check memory

Posted on 2002-05-31
6
147 Views
Last Modified: 2010-05-02
Can you  explain the api function whcih can check the memory of some drive and also api which can set the Horiz. scroll bar to list box. If you know where i can get all library of APIs, will be so good
0
Comment
Question by:sycale
6 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 7047681
have you looked in microsoft visual studio/visual studio tools/api text viewer?  (load win32api.txt)
0
 
LVL 2

Expert Comment

by:ventond
ID: 7048279
From MSDN

Sub ShowFreeSpace(drvPath)
    Dim fs, d, s
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set d = fs.GetDrive(fs.GetDriveName(drvPath))
    s = "Drive " & UCase(drvPath) & " - "
    s = s & d.VolumeName  & vbCrLf
    s = s & "Free Space: " & FormatNumber(d.FreeSpace/1024, 0)
    s = s & " Kbytes"
    MsgBox s
End Sub

0
 
LVL 2

Accepted Solution

by:
ventond earned 50 total points
ID: 7048295
Also ListBox HScrollBar:

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const LB_SETHORIZONTALEXTENT = &H194

Private Sub Form_Load()
   a = SendMessage(List1.hwnd, LB_SETHORIZONTALEXTENT, 100, 0)
End Sub


You will have to modify the "100" value until it suits your purpose.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 4

Expert Comment

by:Monchanger
ID: 7048519
The "Windows API Guide" is a great reference. It's comprehensive, explained simply, organized both alphabetiacally and by catagories.

It also has a few articles, including a "Beginner's Guide to the Windows API"

It is located at: http://216.26.161.91/vbapi/
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7851343
Hi sycale,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept ventond's comment(s) as an answer.

sycale, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7912912
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now