Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsCopyError function

Copies an error object from a specified source to a specifed destination.

Syntax


HRESULT WINAPI  WsCopyError(
  _In_ WS_ERROR* source,
  _In_ WS_ERROR* destination
);

Parameters

source [in]

Pointer to a WS_ERROR structure representing the error object to copy.

destination [in]

Pointer to a WS_ERROR structure that receives the copied error object.

Return value

If the function succeeds, it returns NO_ERROR; otherwise, it returns an HRESULT error code.

Return codeDescription
E_INVALIDARG

One of the error objects is NULL.

E_INVALIDARG

One or more arguments are invalid.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

Other Errors

This function may return other errors not listed above.

 

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2017 Microsoft