Click to return to the Web Content Management home page    
IWPSiteW::FindClose Metho...     IWPSiteW::FindNextFile Me...     IWPSiteW Interface    
Web Workshop  |  Web Content Management

IWPSiteW::FindFirstFile Method


Searches a directory for a file whose name matches the specified file name on the destination site identified by this object. It examines subdirectory names as well as file names.

Syntax

HRESULT FindFirstFile(
    LPCWSTR wsSearchFile,
    LPWIN32_FIND_DATAW pFindFileData,
    LPHANDLE pSearchHandle
);

Parameters

wsSearchFile
Address of a null-terminated string that contains the file name to find.
pFindFileData
Address of a WIN32_FIND_DATA structure that receives information about the file or subdirectory that has been found.
pSearchHandle
Address of a variable that receives a handle that can be used for subsequent calls to the FindNextFile and FindClose functions.

Return Value

Returns S_OK if successful, or an error code otherwise.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.