I'm a newbie My boss asked me make a iscsi target server by C++ using windows api (run on windows server 2012) project requirements - create iscsi target - connect target with a vhd I was find alot, but only fond
iSCSI Discovery Library Functions
Volume Shadow Copy API Interfaces
i was created a file .vhd anh truy with WINAPI AddIscsiStaticTarget windows api but cannot add into "File and storage service"
Thank you and Best Regards
Sr because my english
Best How To :
The first link in your question is to the API for configuring the iSCSI client component, not the iSCSI server component.
The second link is to the Volume Shadow Copy API, which I don't think is relevant either. That's used for the intelligent snapshotting of volumes, usually in order to run a backup.
To manipulate the iSCSI target server component, use the iSCSI Target Server Provider API.
Since you're dealing with a VHD file, you might also need the Virtual Hard Disk API.