Shadow copy API - Original work by "Ken Cross" <kcross@nssolutions.com>, adapted