IPhotoAcquire::CreatePhotoSource method (photoacquire.h)
The CreatePhotoSource
method initializes an IPhotoAcquireSource object to pass to IPhotoAcquire::Acquire.
Syntax
HRESULT CreatePhotoSource(
[in] LPCWSTR pszDevice,
[out] IPhotoAcquireSource **ppPhotoAcquireSource
);
Parameters
[in] pszDevice
Pointer to a null-terminated string containing the device name.
[out] ppPhotoAcquireSource
Returns the initialized photo source to acquire photos from.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
A non-NULL pointer was expected. |
Remarks
The IPhotoAcquireSource object created is used as the parameter for the Acquire method.
If an error occurs in CreatePhotoSource
, ppPhotoAcquireSource is initialized to NULL.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | photoacquire.h |
Library | PhotoAcquireUID.lib |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for