Group: File Management - Library: kernel32
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Using File Mapping for enumerating files opened by Visual FoxPro
DWORD QueryDosDevice(
LPCTSTR lpDeviceName, // MS-DOS device name string
LPTSTR lpTargetPath, // query results buffer
DWORD ucchMax // maximum size of buffer
); DECLARE INTEGER QueryDosDevice IN kernel32;
INTEGER lpDeviceName,;
STRING @ lpTargetPath,;
INTEGER ucchMax 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.
If the function succeeds, the return value is the number of TCHARs stored into the buffer pointed to by lpTargetPath.
Windows 98/Me: QueryDosDeviceW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application.
Home