草庐IT

display_name

全部标签

c - IoCreateSymbolicLink 何时返回 STATUS_OBJECT_NAME_COLLISION

当我调用IoCreateSymbolicLink时失败,状态为STATUS_OBJECT_NAME_COLLISION。我的驱动程序中有代码,我试图在NT和DOS之间创建符号链接(symboliclink)名称。一般什么时候会出现这个错误?RtlInitUnicodeString(&deviceName,L"\\Device\\StreamEitor");RtlInitUnicodeString(&symbolicLinkName,L"\\DosDevices\\StreamEitor");status=IoCreateDevice(driverObject,0,&deviceName

windows - Knife 窗 : Network Error: getaddrinfo: Name or service not known (windows:22)

我有一个Ubuntu工作站,我正在尝试引导一个Windows节点。Windows节点在端口2222上打开了ssh。我一直在关注http://docs.opscode.com/plugin_knife_windows.html.ateetor@ateetor-virtual-machine:~/chef/chef-repo$sudogeminstallknife-windows--http-proxy=[REMOVED]Successfullyinstalledknife-windows-0.5.121geminstalledInstallingridocumentationforkni

python - Pyinstaller导入错误: cannot import name 'dist' on Windows

我正在尝试使用Pyinstaller(3.3版)在Windows(8.1版)上将Python(3.6版)项目构建到单个exe文件中。该项目包括PyQt5、numpy、matplotlib依赖项。Pyinstaller写道:BuildingEXEfromout00-exe.toccompletedsuccessfully.但是当我运行exe文件时,我得到:...File"distutils\__init__.py",line44,inImportError:cannotimportname'dist'[6748]Failedtoexecutescriptmyproj第44行的文件"dis

Windows MIrror Driver Remote Display Driver VNC 服务器 windows 8

我正在研究远程桌面服务器的驱动程序。类似于UltraVNC(内部协议(protocol))。首先我看到Windows8不支持镜像驱动程序。DDI的唯一子集作为远程显示驱动程序。1)这是否意味着我需要为Windows8实现远程显示驱动程序?2)从镜像驱动程序开始,仅添加此处指定的DDI足以让RemoteDisplayDriver在Windows8上运行(它会不安装Windows8)吗?它说远程显示驱动程序是镜像驱动程序的一个子集。http://msdn.microsoft.com/en-us/library/windows/hardware/hh974665(v=vs.85).aspx3

c++ - MinGW C++ : Reading a file with non-ascii file name

简单任务:我想读取一个文件名不是ascii的文件。在linux和MacOS上,我只是将文件名作为UTF-8编码字符串传递给fstream构造函数。在Windows上,这会失败。正如我从thisquestion中了解到的那样,windows根本不支持utf-8文件名。但是,它提供了一个自己的非标准open方法,该方法采用utf-16wchar_t*。因此,我可以简单地将我的string转换为utf-16wstring并且没问题。然而,在MinGW标准库中,fstream的wchar_t*open方法根本不存在。那么,如何在MinGW上打开一个非ascii文件名?

windows - 使用 PowerShell 重置 'Friendly Name' 证书属性

我需要一个证书的FriendlyName在证书控制台中设置为空值FriendlyName列将显示.使用此代码我所能得到的只是列中的空值,而不是我需要。gci"Cert:\LocalMachine\My"|?{$_.Subject-like"CN=mycer*"}|%{$_.FriendlyName=''}我也试过$_.FriendlyName=$null这没有什么区别。奇怪的事情-当我清除FriendlyName使用控制台,然后从Powershell的角度来看,该值为''因为以下语句会产生True:write-host($_.FriendlyName-eq'').然而,'''反之亦然应

java - 运行 spring boot build : Error creating bean with name 'entityManagerFactory' defined in class path

我已经构建了一个SpringBoot应用程序,现在可以部署它了。但是,我尝试构建一个包含所有内容的“fatjar”,但似乎我做错了什么,但不清楚是什么。application.properties(删除真实凭据)#Templateengineconfspring.thymeleaf.check-template-location=true#Databasestuffspring.jpa.hibernate.ddl-auto=updatespring.datasource.url=jdbc:mysql://localhost:3306/dbspring.datasource.userna

c++ - 如何像在 Process Explorer 中那样获取进程起始地址的 "name"?

好的,我正在编写一个应用程序,旨在枚举给定进程中的线程,就像ProcessExplorer所做的那样。我很清楚这可能会在不同的Windows版本之间中断,因为它依赖于“非官方”API,例如NtQuerySystemInformation,我对此非常满意。我已经有了获取给定线程基地址的代码。我现在想把它变成类似于进程资源管理器所做的事情,即“ntdll.dll!EtwDeliverDataBlock+0x453”。我实际上不需要函数名称或偏移量,只需要模块名称。我该怎么做? 最佳答案 如果您只需要模块名称,最简单的方法是使用EnumP

c# - 异常:指定类别中不存在实例 'Name of instance'

当我像这样创建和使用性能计数器时:privatereadonlyPerformanceCounter_cpuPerformanceCounter;publicProcessViewModel(Processprocess){_cpuPerformanceCounter=newPerformanceCounter("Process","%ProcessorTime",process.ProcessName,true);}publicvoidUpdate(){CPU=(int)_cpuPerformanceCounter.NextValue()/Environment.ProcessorC

c# - 使用 SmtpClient 发送电子邮件时的故障排除 "Mailbox unavailable. The server response was: Access denied - Invalid HELO name"

我一直在尝试通过C#发送电子邮件。我在Google上搜索了各种示例,并从每个示例和每个人最有可能使用的标准代码中提取了点点滴滴。stringto="receiver@domain.com";stringfrom="sender@domain.com";stringsubject="HelloWorld!";stringbody="HelloBody!";MailMessagemessage=newMailMessage(from,to,subject,body);SmtpClientclient=newSmtpClient("smtp.domain.com");client.Crede