大网数据广告活动
Windows 系统接口

CSCFindFirstFileW function

· 52CE 我爱测

Searches for a file in the Offline Files cache that meets the specified criteria.

[This function is not supported and should not be used.]

Searches for a file in the Offline Files cache that meets the specified criteria.

Syntax

HANDLE WINAPI CSCFindFirstFileW(
  _In_  LPCWSTR          lpszFileName,
  _Out_ WIN32_FIND_DATAW *lpFind32,
  _Out_ LPDWORD          lpdwStatus,
  _Out_ LPDWORD          lpdwPinCount,
  _Out_ LPDWORD          lpdwHintFlags,
  _Out_ FILETIME         *lpOrgFileTime
);

Parameters

lpszFileName [in]

A pointer to a null-terminated string that specifies a valid UNC directory or path.

lpFind32 [out]

A pointer to the WIN32_FIND_DATA structure that receives information about the file or subdirectory.

lpdwStatus [out]

An NTSTATUS code that indicates the status of the call.

lpdwPinCount [out]

This parameter is nonzero if the file has been made available offline or 0 otherwise.

lpdwHintFlags [out]

This parameter can be one of the following values.

Value Meaning
FLAG_CSC_HINT_PIN_USER 0x01 A user has made the file available offline.
FLAG_CSC_HINT_PIN_INHERIT_USER 0x02 A user has made the parent available offline and marked the parent such that its children are available offline.
FLAG_CSC_HINT_PIN_INHERIT_SYSTEM 0x04 An administrator or group policy has made the parent available offline and marked the parent such that its children are available offline.
FLAG_CSC_HINT_PIN_SYSTEM 0x10 An administrator or group policy has made the file available offline.

lpOrgFileTime [out]

A pointer to a FILETIME structure to receive the date and time information for the file or subdirectory.

Return value

If the function succeeds, the return value is a search handle used in a subsequent call to CSCFindNextFileW or CSCFindClose.

If the function fails, the return value is INVALID_HANDLE_VALUE.

Remarks

This function has no associated import library or header file; you must call it using the LoadLibrary and GetProcAddress functions.

Requirements

Requirement Value
DLL Cscmig.dll

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。