Export (0) Print
Expand All

SfcGetNextProtectedFile function

[This function is available for use in the operating systems specified in the Requirements section. Support for this function was removed in Windows Vista and Windows Server 2008. Use the supported functions listed in WRP Functions instead.]

Retrieves the complete list of protected files. Applications should not replace these files.

Syntax


BOOL SfcGetNextProtectedFile(
  _In_     HANDLE RpcHandle,
  _Inout_  PPROTECTED_FILE_DATA ProtFileData
);

Parameters

RpcHandle [in]

This parameter must be NULL.

ProtFileData [in, out]

The list of protected files. The format of this structure is as follows.

typedef struct _PROTECTED_FILE_DATA {
    WCHAR   FileName[MAX_PATH];
    DWORD   FileNumber;
} PROTECTED_FILE_DATA, *PPROTECTED_FILE_DATA;

Before calling this function the first time, set the FileNumber member to zero.

Return value

If the function succeeds, the return value is nonzero.

If there are no more protected files to enumerate, the return value is zero and GetLastError returns ERROR_NO_MORE_FILES. If the function fails, GetLastError will return a different error code.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Sfc.h

Library

Sfc.lib

DLL

Sfc.dll

See also

SfcIsFileProtected

 

 

Community Additions

ADD
Show:
© 2015 Microsoft