|
// *********************************************************
// ディスク資源ダイアログ接続解除
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxWNet::DialogDisConnect( HWND hOwner )
{
if ( this->lib == NULL ) {
return false;
}
LPFUNC_WNetDisconnectDialog DllWNetDisconnectDialog;
DllWNetDisconnectDialog =
(LPFUNC_WNetDisconnectDialog)GetProcAddress(
lib, "WNetDisconnectDialog"
);
if ( DllWNetDisconnectDialog == NULL ) {
return false;
}
DWORD dwRet;
dwRet = DllWNetDisconnectDialog(
hOwner,
RESOURCETYPE_DISK
);
this->ErrorDescription.SetChar( 0, 0 );
if ( dwRet == NO_ERROR ) {
return true;
}
return false;
}
| |