Home > Software engineering >  Windows service program called GetDiskFreeSpaceEx failed to get network mapping space size!
Windows service program called GetDiskFreeSpaceEx failed to get network mapping space size!

Time:10-08

Using a Windows system service program calls GetDiskFreeSpaceEx failed to get network mapping space size!
Prompt error code 3,
Drive can be seen in the mapping space,
Great god help solve how broken!!!!!!

CodePudding user response:

3
Is the system cannot find the specified path,

CodePudding user response:

This API should be needed in user mode access program execution to get network mapping space

CodePudding user response:

@ oyljerry
How do I set the Windows operating system, please, to get service on the permissions?

CodePudding user response:

GetDiskFreeSpaceEx
The GetDiskFreeSpaceEx function obtains information about The amount of space available on a disk volume: The total amount of space, The total amount of free space, and The total amount of free space available to The user associated with The calling thread.

BOOL GetDiskFreeSpaceEx (
LPCTSTR lpDirectoryName,//a pointer to the directory name
PULARGE_INTEGER lpFreeBytesAvailableToCaller,//receives the number of bytes on
//disk available to the caller
PULARGE_INTEGER lpTotalNumberOfBytes,//receives the number of bytes on disk
PULARGE_INTEGER lpTotalNumberOfFreeBytes//receives the free bytes on disk
);

The Parameters
LpDirectoryName
Pointer to a null - terminated string that specifies a directory on the disk of interest. This string can be a UNC name. If This parameter is a UNC name, you must follow it with an additional backslash. For example, you order to specify \ \ MyServer \ MyShare as \ \ MyServer \ MyShare \.
If lpDirectoryName is NULL, the GetDiskFreeSpaceEx function obtains information about the disk that contains the current directory.

Note that lpDirectoryName does not have to specify the root directory on a disk. The function accepts any directory on the disk.

LpFreeBytesAvailableToCaller
Pointer to a variable to receive the total number of free bytes on the disk that are available to the user associated with the calling thread.
Windows NT 5.0 and later: If per - user quotas are in use, this value may be less than the total number of free bytes on the disk.

LpTotalNumberOfBytes
Pointer to a variable to receive the total number of bytes on the disk that are available to the user associated with the calling thread.
Windows NT 5.0 and later: If per - user quotas are in use, this value may be less than the total number of bytes on the disk.

LpTotalNumberOfFreeBytes
Pointer to a variable to receive the total number of free bytes on the disk.
This parameter can be NULL.

The Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Few
Note that the values obtained by this function are of type ULARGE_INTEGER. Be careful not to truncate these values to 32 bits.

Windows 95 OSR2: The GetDiskFreeSpaceEx function is available on The Windows 95 systems, beginning with OEM Service Release 2 (OSR2).

To determine been GetDiskFreeSpaceEx is available, the call To the LoadLibrary or LoadLibraryEx function To load the KERNEL32. DLL file, and then call the GetProcAddress call function To obtain the an address for GetDiskFreeSpaceEx. If GetProcAddress call fails, or If GetDiskFreeSpaceEx fails with the ERROR_CALL_NOT_IMPLEMENTED code, use the GetDiskFreeSpace home function GetDiskFreeSpaceEx.

QuickInfo
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 OSR2 or later.
Windows CE: Unsupported.
Header: Declared in winbase. H.
The Import Library: Use kernel32. Lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also
The File I/O the Overview, the File Functions provides, GetDiskFreeSpace


CodePudding user response:

The
reference 3 floor acyxc response:
@ oyljerry
How do I set the Windows operating system, please, to get service on the permissions?

Can do a user mode process to obtain
  • Related