Using Win32 functions in Visual FoxPro Image Gallery
Virtual Hard Disk (Win7)
Code examples:
..msdn    Add comment     W32 Constants      Translate this page
Detaches a virtual hard disk (VHD) by locating an appropriate VHD provider to accomplish the operation.
Code examples:
DWORD DetachVirtualDisk(
    __in  HANDLE VirtualDiskHandle,
    __in  ULONG ProviderSpecificFlags
FoxPro declaration:
DECLARE LONG DetachVirtualDisk IN virtdisk;
    INTEGER VirtualDiskHandle,;
    INTEGER VirtualDiskFlags,;
    LONG ProviderSpecificFlags
VirtualDiskHandle [in]
A handle to an open virtual disk, which must have been opened using the VIRTUAL_DISK_ACCESS_DETACH flag.

Flags [in]
A valid combination of values of the DETACH_VIRTUAL_DISK_FLAG enumeration.

ProviderSpecificFlags [in]
Flags specific to the type of virtual disk being detached. May be zero if none are required.
Return value:
If the function succeeds, the return value is ERROR_SUCCESS (0).
nResult = DetachVirtualDisk(;
My comment:
See also: AttachVirtualDisk, OpenVirtualDisk
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2010-11-01 20:18:19
Modified: 2010-11-01 20:20:28
Visited in last 7 days: 87
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
18 sec.Example: 'Using named pipes for interprocess communication'
41 sec.Function: 'SQLConnect'
1.02 min.
Function group: 'Dynamic-Link Library'
1.37 min.Function: 'waveInStart'
1.7 min.Function: 'WNetConnectionDialog1'
2.07 min.Function: 'CeGetVersionEx'
2.45 min.Function: 'QueryPerformanceCounter'
2.83 min.Function: 'GetQueueStatus'
3.23 min.Function: 'CreateSemaphore'
3.6 min.Function: 'sendto'
Advertise here!