src/wfcomman.c
// SwitchToSafeDrive:
// Used when on a network drive and disconnecting: must switch to
// a "safe" drive so that we don't prevent disconnect.
// IN: VOID
// OUT: VOID
// Precond: System directory is on a safe hard disk
//          szMessage not being used
// Postcond: Swich to this directory.
//          szMessage trashed.

Used when on a network drive and disconnecting: must switch to
a "safe" drive so that we don't prevent disconnect.
IN: VOID
OUT: VOID
Precond: System directory is on a safe hard disk
szMessage not being used
Postcond: Swich to this directory.
szMessage trashed.
Used when on a network drive and disconnecting : must switch to a " safe " drive so that we don ' t prevent disconnect . IN : VOID OUT : VOID Precond : System directory is on a safe hard disk szMessage not being used Postcond : Swich to this directory . szMessage trashed .
VOID
SwitchToSafeDrive(VOID)
{
   WCHAR szSafePath[MAXPATHLEN];
   GetSystemDirectory(szSafePath, COUNTOF(szSafePath));
   SetCurrentDirectory(szSafePath);
}
VOID SwitchToSafeDrive ( VOID ) { WCHAR szSafePath [ MAXPATHLEN ] ; GetSystemDirectory ( szSafePath , COUNTOF ( szSafePath ) ) ; SetCurrentDirectory ( szSafePath ) ; }
SwitchToSafeDrive:
Used when on a network drive and disconnecting: must switch to
a "safe" drive so that we don't prevent disconnect.
SwitchToSafeDrive : Used when on a network drive and disconnecting : must switch to a " safe " drive so that we don ' t prevent disconnect .