SetAppInstanceCsvFlags function (smbclnt.h)
Sets the flags that affect connections from the application instance.
Syntax
DWORD SetAppInstanceCsvFlags(
[in] HANDLE ProcessHandle,
[in] ULONG Mask,
[in] ULONG Flags
);
Parameters
[in] ProcessHandle
A process handle for the current process or a remote process to be tagged with the application instance. To tag a remote process, the handle must have PROCESS_TERMINATE access to that process.
[in] Mask
A bitmask that indicates the flags that are modified by the Flags parameter.
[in] Flags
New values of the flags.
Return value
Returns "0" if the operation is successful; otherwise, one of the following error codes is returned:
Return code | Description |
---|---|
|
The CCF filter failed to allocate the cache objects for the operation. |
|
The current process that's trying to tag the process specified by ProcessHandle doesn't have PROCESS_TERMINATE access to that process. |
|
The CCF mini-filter was not found. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2016 |
Target Platform | Windows |
Header | smbclnt.h |
Library | NTLanMan.lib |
DLL | NTLanMan.dll |