473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

GetDiskFreeSpaceEx()

Ed
Hi,
I have tried using GetDiskFreeSpaceEx() to obtain the amount of free
space of a DVD RAM in C#. It returned an error and I used a
getlasterror showed that the error was "parameter is incorrect"

I have checked all 4 the parameters and found them to be correct.

Has someone faced similar problems.
Can someone tell me what is the meaning of the error - "parameter is
incorrect" and how it can be solved

Thanks
Ed

Nov 17 '05 #1
1 4883
>I have tried using GetDiskFreeSpaceEx() to obtain the amount of free
space of a DVD RAM in C#.
OK, so why did you crosspost to ms.pub.vb.general.discussion?

It returned an error and I used a
getlasterror showed that the error was "parameter is incorrect"
Use Marshal.GetLastWin32Error instead of GetLastError

Can someone tell me what is the meaning of the error - "parameter is
incorrect" and how it can be solved


Not unless you post your code.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David | last post by:
I am attempting to use the GetDiskFreeSpaceExA api to get the disksapce for a drive. When I call the function from C#, I receive an OK rc but the space is for my default drive "c:". No matter...
3
by: John Cantley | last post by:
I need to write an app that keeps check on our drives. I have tried using DirectoryInfo and Directory but it is way too slow. I have a new 2 terrabyte server going into production on Monday. Is...
3
by: John Cantley | last post by:
Here is what I have, I am not getting back any values all are returned as zero. But it seems to me that the call is not running at all. what am i doing wrong or missing? public class WinApi { ...
1
by: laurie | last post by:
Hi. Does anyone know of a simple asp script that can check free disk space and send an email to someone when low disk space occurs? I am not familiar with asp. I am from a php background but our...
10
by: MLH | last post by:
I wish to give someone an A97 database they can install on their PC as a runtime application. I want them to click a button on a form (frmDocumentMyPC). I want to document as much useful...
3
by: KenMacksey | last post by:
Hi I am running VB6 on a pentium 4 and Win XP pro. I wrote a small program to copy files to a memory card or mp3 player etc in a specific order or a random order instead of the windows default...
17
sashi
by: sashi | last post by:
Hi everyone, Here are some VB related tips & tricks, hope it helps. Good luck & Take care. Important This thread is closed for general posting. Please start a new thread if you have a...
8
by: theS70RM | last post by:
Hi! I downloaded some software that checks hard disk usage for all the pc's on our network. My question is how?? Is there some sort of dos command or api call or something? I want to create a...
2
Airslash
by: Airslash | last post by:
Hello, currently I'm working on a company project where they have created a custom FileOpenDialog component. In this component they have a function to get all the Physical drives on a system and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.