Using Win32 functions in Visual FoxPro Image Gallery
File Management
..msdn
CopyFile
CopyFileTransacted
CreateDirectory
CreateFile
CreateFileTransacted
CreateHardLink
CreateSymbolicLink
DeleteFile
DeleteFileTransacted
FindClose
FindCloseChangeNotification
FindFirstChangeNotification
FindFirstFile
FindNextChangeNotification
FindNextFile
FlushFileBuffers
GetBinaryType
GetCurrentDirectory
GetDriveType
GetFileAttributes
GetFileAttributesEx
GetFileInformationByHandle
GetFileType
GetFullPathName
GetLongPathName
GetShortPathName
GetTempFileName
GetTempPath
LockFile
MoveFile
MoveFileTransacted
OpenFile
QueryDosDevice
ReadDirectoryChangesW
ReadFile
RemoveDirectory
RemoveDirectoryTransacted
ReplaceFile
SearchPath
SetCurrentDirectory
SetEndOfFile
SetFileAttributes
SetFilePointer
SetFilePointerEx
SetSearchPathMode
UnlockFile
WriteFile
_lclose
_lopen
Code examples:
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Using File Mapping for enumerating files opened by Visual FoxPro
QueryDosDevice
..msdn    Add comment     W32 Constants      Translate this page
Retrieves information about MS-DOS device names.
Code examples:
Using File Mapping for enumerating files opened by Visual FoxPro
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Declaration:
DWORD QueryDosDevice(
  LPCTSTR lpDeviceName, // MS-DOS device name string
  LPTSTR lpTargetPath,  // query results buffer
  DWORD ucchMax         // maximum size of buffer
);
FoxPro declaration:
DECLARE INTEGER QueryDosDevice IN kernel32;
    INTEGER   lpDeviceName,;
    STRING  @ lpTargetPath,;
    INTEGER   ucchMax
Parameters:
lpDeviceName
[in] Pointer to an MS-DOS device name string specifying the target of the query.

lpTargetPath
[out] Pointer to a buffer that will receive the result of the query.

ucchMax
[in] Specifies the maximum number of TCHARs that can be stored into the buffer pointed to by lpTargetPath.
Return value:
If the function succeeds, the return value is the number of TCHARs stored into the buffer pointed to by lpTargetPath.
My comment:
Windows 98/Me: QueryDosDeviceW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application.
Word Index links for the QueryDosDevice :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-03 19:14:48
Modified: 2002-01-03 19:17:13
Visited in last 7 days: 16
User Contributed Notes:
gerd@v-d-berg.eu | 2006-11-10 03:42:30
Must not the declartion for Foxpro be like this:

DECLARE INTEGER QueryDosDevice IN kernel32;
  STRING  lpDeviceName,;
  STRING @ lpTargetPath,;
  INTEGER  ucchMax 

STRING instead of INTEGER for lpDeviceName
?!

Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.223.197)
19 sec.Function: 'SQLFreeHandle'
34 sec.Function: 'RegisterClipboardFormat'
1.82 min.Function: 'WritePrivateProfileString'
3.6 min.Function: 'ResetEvent'
5.18 min.Function: 'waveOutGetVolume'
5.3 min.Function: 'WSACloseEvent'
Google
Advertise here!