Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FhServiceOpenPipe function

Opens a communication channel to the File History Service.

Syntax


HRESULT WINAPI FhServiceOpenPipe(
  _In_  BOOL                   StartServiceIfStopped,
  _Out_ FH_SERVICE_PIPE_HANDLE *Pipe
);

Parameters

StartServiceIfStopped [in]

If the File History Service is not started yet and this parameter is TRUE, this function starts the File History Service before opening a communication channel to it.

If the File History Service is not started yet and this parameter is FALSE, this function fails and returns an unsuccessful HRESULT value.

Pipe [out]

On successful return, this parameter contains a non-NULL handle representing a newly opened communication channel to the File History Service.

Return value

S_OK on success, or an unsuccessful HRESULT value on failure. Possible unsuccessful HRESULT values include values defined in the FhErrors.h header file.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

FhSvcCtl.h

Library

FhSvcCtl.lib

See also

FhServiceClosePipe

 

 

Community Additions

ADD
Show:
© 2015 Microsoft