Solved

Check memory

Posted on 2002-05-31
6
150 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reading the Contents of a Directory In Access VBA 5 70
Determine Range to Select 5 48
Windows Script Host failed (Access is denied.) error 6 147
Spell Check in VB6 13 113
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

777 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