这篇教程C++ GetDisplayName函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetDisplayName函数的典型用法代码示例。如果您正苦于以下问题:C++ GetDisplayName函数的具体用法?C++ GetDisplayName怎么用?C++ GetDisplayName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetDisplayName函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: GetDisplayNamewxString DocumentListCtrl::OnGetItemText (long item, long column) const{ int sorteditem = _sortedIndices[(int)item]; int num_docs = _ferretparent->GetDocumentList().Size(); if (num_docs > 0) { int doc1 = _document1 [sorteditem]; int doc2 = _document2 [sorteditem]; int position = 0; if (column == 0) { return GetDisplayName (doc1); } else if (column == 1) { return GetDisplayName (doc2); } else // if (column == 2) { return wxString::Format("%f", _ferretparent->GetDocumentList().ComputeResemblance (doc1, doc2, _remove_common_trigrams, _ignore_template_material)); } } else { return "No items in document list"; }}
开发者ID:abame,项目名称:ferret,代码行数:28,
示例2: GetDisplayNamevoid Explorerplusplus::HandleAddressBarText(void){ LPITEMIDLIST pidl = NULL; TCHAR szAddressBarTitle[MAX_PATH]; pidl = m_pActiveShellBrowser->QueryCurrentDirectoryIdl(); TCHAR szParsingPath[MAX_PATH]; GetDisplayName(pidl,szParsingPath,SHGDN_FORPARSING); /* If the path is a GUID (i.e. of the form ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}), we'll switch to showing the in folder name. Otherwise, we'll show the full path. Driven by the principle that GUID's should NOT be shown directly to users. */ if(IsPathGUID(szParsingPath)) { GetDisplayName(pidl,szAddressBarTitle,SHGDN_INFOLDER); } else { StringCchCopy(szAddressBarTitle,SIZEOF_ARRAY(szAddressBarTitle), szParsingPath); } SetComboBoxExTitleString(m_hAddressBar,pidl,szAddressBarTitle); CoTaskMemFree(pidl);}
开发者ID:linquize,项目名称:explorerplus-custom,代码行数:31,
示例3: GetDisplayIDint CBillReview::OnCreate(LPCREATESTRUCT lpCreateStruct) { int is_business; //CAMqa66752 TCHAR bill_company[GAL_SI_SERVICE_COMPANY_LEN]; GAL_ERROR Error; CString AccountName; if (CDialog::OnCreate(lpCreateStruct) == -1) return -1; // TODO: Add your specialized creation code here // get the account info.... m_sBillRevAccountId = GetDisplayID(); is_business = m_lpAccount->GetIsBusinessCode(); //CAMqa66752 if (is_business) { if(galGetAccount_bill_company(m_lpAccount->m_Account, bill_company, &Error ) == GAL_FAILURE ) AccountName = GetDisplayName(); else AccountName = bill_company; } else { AccountName = GetDisplayName(); } m_sBillRevAccountName = AccountName; return 0;}
开发者ID:huilang22,项目名称:Projects,代码行数:32,
示例4: LOGvoid ExeComponent::Wait(DWORD tt){ ProcessComponent::Wait(tt); DWORD exitcode = ProcessComponent::GetProcessExitCode(); LOG(L"Component '" << id << "' return code " << exitcode << DVLib::FormatMessage(L" (0x%x).", exitcode)); // check for reboot if (! returncodes_reboot.empty() && IsReturnCode(exitcode, returncodes_reboot)) { LOG(L"Component '" << id << "' return code '" << exitcode << L", defined as reboot required in '" << returncodes_reboot << L"."); return; } // check for explicit success, where defined if (returncodes_success.empty()) { CHECK_BOOL(ERROR_SUCCESS == exitcode, L"Error executing '" << id << "' (" << GetDisplayName() << L"): " << exitcode << DVLib::FormatMessage(L" (0x%x)", exitcode)); } else { CHECK_BOOL(IsReturnCode(exitcode, returncodes_success), L"Error executing component '" << id << "' (" << GetDisplayName() << L"), return code " << exitcode << DVLib::FormatMessage(L" (0x%x)", exitcode) << L" is not in '" << returncodes_success << L"'"); LOG(L"Component '" << id << "' (" << GetDisplayName() << L") return code " << exitcode << DVLib::FormatMessage(L" (0x%x)", exitcode) << L", defined as success in '" << returncodes_success << L"'."); }}
开发者ID:Jairajp1992,项目名称:dotnetinstaller,代码行数:35,
示例5: ParsePropertiesbool CUDisks2Provider::FilesystemPropertiesChanged(const char *object, DBusMessageIter *propsIter, IStorageEventsCallback *callback){ if (m_filesystems.count(object) > 0) { auto fs = m_filesystems[object]; CLog::Log(LOGDEBUG, LOGDBUS, "UDisks2: Before update: %s", fs->toString()); bool wasMounted = fs->m_isMounted; auto ParseFilesystemProperty = std::bind(&CUDisks2Provider::ParseFilesystemProperty, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3); ParseProperties(fs, propsIter, ParseFilesystemProperty); CLog::Log(LOGDEBUG, LOGDBUS, "UDisks2: After update: %s", fs->toString()); if (!wasMounted && fs->m_isMounted && fs->IsApproved()) { CLog::Log(LOGINFO, "UDisks2: Added %s", fs->m_mountPoint); if (callback) callback->OnStorageAdded(fs->GetDisplayName(), fs->m_mountPoint); return true; } else if (wasMounted && !fs->m_isMounted) { CLog::Log(LOGINFO, "UDisks2: Removed %s", fs->m_block->m_device); if (callback) callback->OnStorageSafelyRemoved(fs->GetDisplayName()); return true; } } return false;}
开发者ID:68foxboris,项目名称:xbmc,代码行数:30,
示例6: GetDisplayNameinline VmbErrorType EnumEntry::GetDisplayName( std::string &rStrDisplayName ) const{ VmbErrorType res; VmbUint32_t nLength; res = GetDisplayName( NULL, nLength ); if ( VmbErrorSuccess == res ) { if ( 0 < nLength ) { rStrDisplayName.resize( nLength ); res = GetDisplayName( &rStrDisplayName[0], nLength ); if ( VmbErrorSuccess == res ) { size_t nPos = rStrDisplayName.find( '/0' ); if ( nLength-1 > nPos ) { rStrDisplayName.resize( nPos ); } } } else { rStrDisplayName.clear(); } } return res;}
开发者ID:SanderGrielens,项目名称:rapido,代码行数:29,
示例7: ILCombineint CALLBACK CShellBrowser::SortByType(int InternalIndex1,int InternalIndex2) const{ if(m_bVirtualFolder) { TCHAR FullFileName1[MAX_PATH]; LPITEMIDLIST pidlComplete1 = ILCombine(m_pidlDirectory,m_pExtraItemInfo[InternalIndex1].pridl); GetDisplayName(pidlComplete1,FullFileName1,SHGDN_FORPARSING); CoTaskMemFree(pidlComplete1); TCHAR FullFileName2[MAX_PATH]; LPITEMIDLIST pidlComplete2 = ILCombine(m_pidlDirectory,m_pExtraItemInfo[InternalIndex2].pridl); GetDisplayName(pidlComplete2,FullFileName2,SHGDN_FORPARSING); CoTaskMemFree(pidlComplete2); BOOL IsRoot1 = PathIsRoot(FullFileName1); BOOL IsRoot2 = PathIsRoot(FullFileName2); if(IsRoot1 && !IsRoot2) { return -1; } else if(!IsRoot1 && IsRoot2) { return 1; } } std::wstring Type1 = GetTypeColumnText(InternalIndex1); std::wstring Type2 = GetTypeColumnText(InternalIndex2); return StrCmpLogicalW(Type1.c_str(),Type2.c_str());}
开发者ID:Rajuk-,项目名称:explorerplusplus,代码行数:32,
示例8: GetDisplayNameint CALLBACK CShellBrowser::SortByType(const BasicItemInfo_t &itemInfo1, const BasicItemInfo_t &itemInfo2) const{ if(m_bVirtualFolder) { TCHAR FullFileName1[MAX_PATH]; GetDisplayName(itemInfo1.pidlComplete.get(),FullFileName1,SIZEOF_ARRAY(FullFileName1),SHGDN_FORPARSING); TCHAR FullFileName2[MAX_PATH]; GetDisplayName(itemInfo2.pidlComplete.get(),FullFileName2,SIZEOF_ARRAY(FullFileName2),SHGDN_FORPARSING); BOOL IsRoot1 = PathIsRoot(FullFileName1); BOOL IsRoot2 = PathIsRoot(FullFileName2); if(IsRoot1 && !IsRoot2) { return -1; } else if(!IsRoot1 && IsRoot2) { return 1; } } std::wstring Type1 = GetTypeColumnText(itemInfo1); std::wstring Type2 = GetTypeColumnText(itemInfo2); return StrCmpLogicalW(Type1.c_str(),Type2.c_str());}
开发者ID:derceg,项目名称:explorerplusplus,代码行数:28,
示例9: ifBOOL CDownloadWithTiger::SetHashset(BYTE* pSource, DWORD nSource){ if ( m_nSize == SIZE_UNKNOWN ) return FALSE; if ( m_pHashset.IsAvailable() ) return TRUE; if ( nSource == 0 && m_bED2K ) { m_pHashset.FromRoot( &m_pED2K ); } else if ( m_pHashset.FromBytes( pSource, nSource, m_nSize ) ) { MD4 pRoot; m_pHashset.GetRoot( &pRoot ); if ( m_bED2K && m_pED2K != pRoot ) { m_pHashset.Clear(); theApp.Message( MSG_ERROR, IDS_DOWNLOAD_HASHSET_CORRUPT, (LPCTSTR)GetDisplayName() ); return FALSE; } else if ( ! m_bED2K ) { m_bED2K = TRUE; m_pED2K = pRoot; } } else { theApp.Message( MSG_ERROR, IDS_DOWNLOAD_HASHSET_CORRUPT, (LPCTSTR)GetDisplayName() ); return FALSE; } m_nHashsetBlock = m_pHashset.GetBlockCount(); m_pHashsetBlock = new BYTE[ m_nHashsetBlock ]; ZeroMemory( m_pHashsetBlock, sizeof(BYTE) * m_nHashsetBlock ); SetModified(); theApp.Message( MSG_DEFAULT, IDS_DOWNLOAD_HASHSET_READY, (LPCTSTR)GetDisplayName(), (LPCTSTR)Settings.SmartVolume( ED2K_PART_SIZE, FALSE ) ); Neighbours.SendDonkeyDownload( reinterpret_cast<CDownload*>( this ) ); return TRUE;}
开发者ID:ericfillipe1,项目名称:shareaza-code,代码行数:49,
示例10: ASSERTvoid CDownload::OnDownloaded(){ ASSERT( m_bComplete == false ); theApp.Message( MSG_NOTICE, IDS_DOWNLOAD_COMPLETED, GetDisplayName() ); m_tCompleted = GetTickCount(); m_bDownloading = false; StopSearch(); CloseTransfers(); //AppendMetadata(); if ( GetTaskType() == dtaskMergeFile || GetTaskType() == dtaskPreviewRequest ) AbortTask();// LibraryBuilder.m_bBusy = true; // ? m_pTask.Copy(); Statistics.Current.Downloads.Files++; SetModified();}
开发者ID:GetEnvy,项目名称:Envy,代码行数:25,
示例11: SNewTSharedRef<ITableRow> FDetailCategoryImpl::GenerateNodeWidget( const TSharedRef<STableViewBase>& OwnerTable, const FDetailColumnSizeData& ColumnSizeData, const TSharedRef<IPropertyUtilities>& PropertyUtilities ) { return SNew( SDetailCategoryTableRow, AsShared(), OwnerTable ) .DisplayName( GetDisplayName() ) .HeaderContent( HeaderContentWidget );}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:7,
示例12: InitBackendInfovoid VideoBackend::ShowConfig(void* parent_handle){ if (!m_initialized) InitBackendInfo(); Host_ShowVideoConfig(parent_handle, GetDisplayName(), "gfx_opengl");}
开发者ID:aichunyu,项目名称:dolphin,代码行数:7,
示例13: SetTriggerTextOfCommandbool pawsConfigKeys::OnFingering(csString string, psControl::Device device, uint button, uint32 mods){ if (fingWnd == NULL || !fingWnd->IsVisible()) return true; bool changed = false; if (string == NO_BIND) // Removing trigger { psengine->GetCharControl()->RemapTrigger(editedCmd,psControl::NONE,0,0); changed = true; } else // Changing trigger { changed = psengine->GetCharControl()->RemapTrigger(editedCmd,device,button,mods); } if (changed) { SetTriggerTextOfCommand(editedCmd,string); dirty = true; return true; // Hide fingering window } else // Map already exists { const psControl* other = psengine->GetCharControl()->GetMappedTrigger(device,button,mods); CS_ASSERT(other); if (other->name != editedCmd) { fingWnd->SetCollisionInfo(GetDisplayName(other->name)); return false; // Keep fingering window up; invalid combo to set } else return true; // Hide fingering window; combo is the same as old }}
开发者ID:Chettie,项目名称:Eulora-client,代码行数:35,
示例14: TreeView_GetSelectionvoid Explorerplusplus::OnTreeViewSetFileAttributes(void){ HTREEITEM hItem = TreeView_GetSelection(m_hTreeView); if(hItem == NULL) { return; } std::list<NSetFileAttributesDialogExternal::SetFileAttributesInfo_t> sfaiList; NSetFileAttributesDialogExternal::SetFileAttributesInfo_t sfai; LPITEMIDLIST pidlItem = m_pMyTreeView->BuildPath(hItem); HRESULT hr = GetDisplayName(pidlItem,sfai.szFullFileName,SIZEOF_ARRAY(sfai.szFullFileName),SHGDN_FORPARSING); CoTaskMemFree(pidlItem); if(hr == S_OK) { HANDLE hFindFile = FindFirstFile(sfai.szFullFileName,&sfai.wfd); if(hFindFile != INVALID_HANDLE_VALUE) { FindClose(hFindFile); sfaiList.push_back(sfai); CSetFileAttributesDialog SetFileAttributesDialog(m_hLanguageModule, IDD_SETFILEATTRIBUTES,m_hContainer,sfaiList); SetFileAttributesDialog.ShowModalDialog(); } }}
开发者ID:hollylee,项目名称:explorerplusplus,代码行数:33,
示例15: CS_ASSERTvoid pawsConfigKeys::UpdateNicks(pawsTreeNode * subtreeRoot){ if (subtreeRoot == NULL) subtreeRoot = tree->GetRoot(); if (subtreeRoot == NULL) return; pawsSeqTreeNode * rootAsSeq; pawsTreeNode * child; pawsTextBox * label; rootAsSeq = dynamic_cast<pawsSeqTreeNode*> (subtreeRoot); if (rootAsSeq != NULL && rootAsSeq != tree->GetRoot()) { label = dynamic_cast<pawsTextBox*> (rootAsSeq->GetSeqWidget(0)); CS_ASSERT(label); psCharController* manager = psengine->GetCharControl(); // Update the name label const psControl* ctrl = manager->GetTrigger( subtreeRoot->GetName() ); if (ctrl) label->SetText( GetDisplayName(ctrl->name) ); } child = subtreeRoot->GetFirstChild(); while (child != NULL) { UpdateNicks(child); child = child->GetNextSibling(); }}
开发者ID:Chettie,项目名称:Eulora-client,代码行数:33,
示例16: AbortTaskvoid CDownload::Remove(){ AbortTask(); StopTrying(); CloseTorrent(); CloseTransfers(); theApp.Message( MSG_NOTICE, IDS_DOWNLOAD_REMOVE, (LPCTSTR)GetDisplayName() ); IsCompleted() ? CloseFile() : DeleteFile(); DeletePreviews(); if ( ! m_sPath.IsEmpty() ) { DeleteFileEx( m_sPath + L".png", FALSE, FALSE, TRUE ); DeleteFileEx( m_sPath + L".sav", FALSE, FALSE, TRUE ); DeleteFileEx( m_sPath, FALSE, FALSE, TRUE ); m_sPath.Empty(); } Downloads.Remove( this );}
开发者ID:GetEnvy,项目名称:Envy,代码行数:25,
示例17: GLW_ChangeDislaySettingsIfNeeded/*===================GLW_ChangeDislaySettingsIfNeededOptionally ChangeDisplaySettings to get a different fullscreen resolution.Default uses the full desktop resolution.===================*/static bool GLW_ChangeDislaySettingsIfNeeded( glimpParms_t parms ) { // If we had previously changed the display settings on a different monitor, // go back to standard. if ( win32.cdsFullscreen != 0 && win32.cdsFullscreen != parms.fullScreen ) { win32.cdsFullscreen = 0; ChangeDisplaySettings( 0, 0 ); Sys_Sleep( 1000 ); // Give the driver some time to think about this change } // 0 is dragable mode on desktop, -1 is borderless window on desktop if ( parms.fullScreen <= 0 ) { return true; } // if we are already in the right resolution, don't do a ChangeDisplaySettings int x, y, width, height, displayHz; if ( !GetDisplayCoordinates( parms.fullScreen - 1, x, y, width, height, displayHz ) ) { return false; } if ( width == parms.width && height == parms.height && ( displayHz == parms.displayHz || parms.displayHz == 0 ) ) { return true; } DEVMODE dm = {}; dm.dmSize = sizeof( dm ); dm.dmPelsWidth = parms.width; dm.dmPelsHeight = parms.height; dm.dmBitsPerPel = 32; dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL; if ( parms.displayHz != 0 ) { dm.dmDisplayFrequency = parms.displayHz; dm.dmFields |= DM_DISPLAYFREQUENCY; } common->Printf( "...calling CDS: " ); const char * const deviceName = GetDisplayName( parms.fullScreen - 1 ); int cdsRet; if ( ( cdsRet = ChangeDisplaySettingsEx( deviceName, &dm, NULL, CDS_FULLSCREEN, NULL) ) == DISP_CHANGE_SUCCESSFUL ) { common->Printf( "ok/n" ); win32.cdsFullscreen = parms.fullScreen; return true; } common->Printf( "^3failed^0, " ); PrintCDSError( cdsRet ); return false;}
开发者ID:neilogd,项目名称:DOOM-3-BFG,代码行数:65,
示例18: GetCommandOfButtonbool pawsConfigKeys::OnButtonPressed(int /*mouseButton*/, int /*keyModifier*/, pawsWidget* widget){ editedCmd = GetCommandOfButton(widget); if (editedCmd.IsEmpty()) return false; fingWnd->ShowDialog(this, GetDisplayName(editedCmd)); return true;}
开发者ID:Chettie,项目名称:Eulora-client,代码行数:9,
示例19: ILCombinevoid CShellBrowser::QueryFullItemNameInternal(int iItemInternal,TCHAR *szFullFileName,UINT cchMax) const{ LPITEMIDLIST pidlComplete = NULL; pidlComplete = ILCombine(m_pidlDirectory,m_pExtraItemInfo[iItemInternal].pridl); GetDisplayName(pidlComplete,szFullFileName,cchMax,SHGDN_FORPARSING); CoTaskMemFree(pidlComplete);}
开发者ID:3scp8,项目名称:explorerplusplus,代码行数:10,
示例20: TESTTEST(GetDisplayName, Simple){ TCHAR szFullFileName[MAX_PATH]; GetTestResourceFilePath(L"Metadata.jpg", szFullFileName, SIZEOF_ARRAY(szFullFileName)); TCHAR szDisplayName[MAX_PATH]; HRESULT hr = GetDisplayName(szFullFileName, szDisplayName, SIZEOF_ARRAY(szDisplayName), SHGDN_FORPARSING | SHGDN_INFOLDER); ASSERT_TRUE(SUCCEEDED(hr)); EXPECT_STREQ(L"Metadata.jpg", szDisplayName);}
开发者ID:3scp8,项目名称:explorerplusplus,代码行数:11,
示例21: rest/* Determines the drop effect based on thelocation of the source and destinationdirectories.Note that the first dropped file is takenas representative of the rest (meaning thatif the files come from different drives,whether this operation is classed as a copyor move is only based on the location of thefirst file). */BOOL CMyTreeView::CheckItemLocations(IDataObject *pDataObject,HTREEITEM hItem,int iDroppedItem){ FORMATETC ftc; STGMEDIUM stg; DROPFILES *pdf = NULL; LPITEMIDLIST pidlDest = NULL; TCHAR szDestDirectory[MAX_PATH]; TCHAR szFullFileName[MAX_PATH]; HRESULT hr; BOOL bOnSameDrive = FALSE; int nDroppedFiles; ftc.cfFormat = CF_HDROP; ftc.ptd = NULL; ftc.dwAspect = DVASPECT_CONTENT; ftc.lindex = -1; ftc.tymed = TYMED_HGLOBAL; hr = pDataObject->GetData(&ftc,&stg); if(hr == S_OK) { pdf = (DROPFILES *)GlobalLock(stg.hGlobal); if(pdf != NULL) { /* Request a count of the number of files that have been dropped. */ nDroppedFiles = DragQueryFile((HDROP)pdf,0xFFFFFFFF,NULL,NULL); if(iDroppedItem < nDroppedFiles) { pidlDest = BuildPath(hItem); if(pidlDest != NULL) { /* Determine the name of the first dropped file. */ DragQueryFile((HDROP)pdf,iDroppedItem,szFullFileName, SIZEOF_ARRAY(szFullFileName)); GetDisplayName(pidlDest,szDestDirectory,SIZEOF_ARRAY(szDestDirectory),SHGDN_FORPARSING); bOnSameDrive = PathIsSameRoot(szDestDirectory,szFullFileName); CoTaskMemFree(pidlDest); } } GlobalUnlock(stg.hGlobal); } } return bOnSameDrive;}
开发者ID:hollylee,项目名称:explorerplusplus,代码行数:63,
示例22: StringCchCopyvoid Explorerplusplus::OnTBGetInfoTip(LPARAM lParam){ NMTBGETINFOTIP *ptbgit = reinterpret_cast<NMTBGETINFOTIP *>(lParam); StringCchCopy(ptbgit->pszText,ptbgit->cchTextMax,EMPTY_STRING); if(ptbgit->iItem == TOOLBAR_BACK) { if(m_pActiveShellBrowser->IsBackHistory()) { LPITEMIDLIST pidl = m_pActiveShellBrowser->RetrieveHistoryItemWithoutUpdate(-1); TCHAR szPath[MAX_PATH]; GetDisplayName(pidl,szPath,SIZEOF_ARRAY(szPath),SHGDN_INFOLDER); TCHAR szInfoTip[1024]; TCHAR szTemp[64]; LoadString(m_hLanguageModule,IDS_MAIN_TOOLBAR_BACK,szTemp,SIZEOF_ARRAY(szTemp)); StringCchPrintf(szInfoTip,SIZEOF_ARRAY(szInfoTip),szTemp,szPath); StringCchCopy(ptbgit->pszText,ptbgit->cchTextMax,szInfoTip); } } else if(ptbgit->iItem == TOOLBAR_FORWARD) { if(m_pActiveShellBrowser->IsForwardHistory()) { LPITEMIDLIST pidl = m_pActiveShellBrowser->RetrieveHistoryItemWithoutUpdate(1); TCHAR szPath[MAX_PATH]; GetDisplayName(pidl,szPath,SIZEOF_ARRAY(szPath),SHGDN_INFOLDER); TCHAR szInfoTip[1024]; TCHAR szTemp[64]; LoadString(m_hLanguageModule,IDS_MAIN_TOOLBAR_FORWARD,szTemp,SIZEOF_ARRAY(szTemp)); StringCchPrintf(szInfoTip,SIZEOF_ARRAY(szInfoTip),szTemp,szPath); StringCchCopy(ptbgit->pszText,ptbgit->cchTextMax,szInfoTip); } }}
开发者ID:3scp8,项目名称:explorerplusplus,代码行数:41,
示例23: OpenSCManager//--------------------------------------------------------------------------------BOOL CNTService::InstallService() { AFX_MANAGE_STATE_IF_DLL TCHAR szPath[1024]; if(GetModuleFileName( 0, szPath, 1023 ) == 0 ) return FALSE; BOOL bRet = FALSE; SC_HANDLE schSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); if(schSCManager != NULL) { DWORD nServiceType = GetServiceType(); DWORD nStartType = GetStartType(); SC_HANDLE schService = CreateService( schSCManager, GetServiceName(), GetDisplayName(), GetDesiredAccess(), nServiceType, nStartType, GetErrorControl(), szPath, GetLoadOrderGroup(), ((nServiceType == SERVICE_KERNEL_DRIVER || nServiceType == SERVICE_FILE_SYSTEM_DRIVER) && (nStartType == SERVICE_BOOT_START || nStartType == SERVICE_SYSTEM_START)) ? &m_dwTagID : NULL, GetDependencies(), GetUserName(), GetPassword() ); if(schService != NULL) { CloseServiceHandle(schService); bRet = TRUE; } CloseServiceHandle(schSCManager); } if(bRet) // installation succeeded. Now register the message file RegisterApplicationLog(szPath, EVENTLOG_ERROR_TYPE | EVENTLOG_WARNING_TYPE | EVENTLOG_INFORMATION_TYPE); return bRet; }
开发者ID:richschonthal,项目名称:HL7,代码行数:54,
示例24: GetDisplayNamevoid Explorerplusplus::HandleTreeViewSelection(void){ HTREEITEM hItem; LPITEMIDLIST pidlDirectory = NULL; TCHAR szDirectory[MAX_PATH]; TCHAR szRoot[MAX_PATH]; UINT uDriveType; BOOL bNetworkPath = FALSE; if(!m_bSynchronizeTreeview) { return; } pidlDirectory = m_pActiveShellBrowser->QueryCurrentDirectoryIdl(); GetDisplayName(pidlDirectory,szDirectory,SIZEOF_ARRAY(szDirectory),SHGDN_FORPARSING); if(PathIsUNC(szDirectory)) { bNetworkPath = TRUE; } else { StringCchCopy(szRoot,SIZEOF_ARRAY(szRoot),szDirectory); PathStripToRoot(szRoot); uDriveType = GetDriveType(szRoot); bNetworkPath = (uDriveType == DRIVE_REMOTE); } /* To improve performance, do not automatically sync the treeview with network or UNC paths. */ if(!bNetworkPath) { hItem = m_pMyTreeView->LocateItem(pidlDirectory); if(hItem != NULL) { /* TVN_SELCHANGED is NOT sent when the new selected item is the same as the old selected item. It is only sent when the two are different. Therefore, the only case to handle is when the treeview selection is changed by browsing using the listview. */ if(TreeView_GetSelection(m_hTreeView) != hItem) m_bSelectingTreeViewDirectory = TRUE; SendMessage(m_hTreeView,TVM_SELECTITEM,(WPARAM)TVGN_CARET,(LPARAM)hItem); } } CoTaskMemFree(pidlDirectory);}
开发者ID:hollylee,项目名称:explorerplusplus,代码行数:53,
示例25: GetDisplayNamewxString TagEntry::GetFullDisplayName() const{ wxString name; if(GetParent() == wxT("<global>")) { name << GetDisplayName(); } else { name << GetParent() << wxT("::") << GetName() << GetSignature(); } return name;}
开发者ID:huan5765,项目名称:codelite-translate2chinese,代码行数:12,
示例26: GetCsidlDisplayNameHRESULT GetCsidlDisplayName(int csidl, TCHAR *szFolderName, UINT cchMax, DWORD uParsingFlags){ LPITEMIDLIST pidl = NULL; HRESULT hr = SHGetFolderLocation(NULL, csidl, NULL, 0, &pidl); if(SUCCEEDED(hr)) { hr = GetDisplayName(pidl, szFolderName, cchMax, uParsingFlags); CoTaskMemFree(pidl); } return hr;}
开发者ID:hollylee,项目名称:explorerplusplus,代码行数:13,
注:本文中的GetDisplayName函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ GetDistance函数代码示例 C++ GetDisplay函数代码示例 |