Solved

Check memory

Posted on 2002-05-31
6
149 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

862 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

23 Experts available now in Live!

Get 1:1 Help Now