IWDFDevice::CreateSymbolicLink method

The CreateSymbolicLink method creates a symbolic link for the device.

Syntax


HRESULT CreateSymbolicLink(
  [in]  PCWSTR pSymbolicLink
);

Parameters

pSymbolicLink [in]

A pointer to a NULL-terminated string that contains the name of the symbolic link for the device. The symbolic link name must be in the global DosDevices namespace.

Return value

CreateSymbolicLink returns S_OK if the operation succeeds. Otherwise, this method returns one of the error codes that are defined in Winerror.h.

Remarks

A symbolic link is a file-system object that points to another file-system object. The object being pointed to is called the target.

For an example usage of this method, see the VirtualSerial driver sample.

Requirements

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfddi.h (include Wudfddi.h)

DLL

WUDFx.dll

See also

IWDFDevice
IWDFDevice2::CreateSymbolicLinkWithReferenceString

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft