草庐IT

reference_name

全部标签

python - SE_SYSTEMTIME_NAME 权限不存在

我正在尝试从Windows7计算机上的用户帐户(而不是管理员帐户)更改系统时间。为了更改系统时间,在这个link中提到我们需要拥有SE_SYSTEMTIME_NAME权限。这是我的python脚本。importos,sysimportwin32apiimportwin32securitypriv_flags=win32security.TOKEN_ADJUST_PRIVILEGES|win32security.TOKEN_QUERYhToken=win32security.OpenProcessToken(win32api.GetCurrentProcess(),priv_flags)

windows - 错误 RC2247 : Symbol name too long (winnt. h)

尝试在Win32应用程序中显示对话框时出现RC2247错误(符号名称太长)。此文件中发生错误:C:\ProgramFiles(x86)\WindowsKits\10\Include\10.0.17134.0\um\winnt.h这在VS2015下运行良好。当我升级到VS2017时出现错误。我看过以下帖子,它们似乎不相关,因为它们属于prsht.h:RC2247:CannotopenRcfile:Resourceexplorercannotloadresource;Loadfailedhttp://social.msdn.microsoft.com/Forums/en-US/vcprer

python - Cygwin 上的 os.name 是什么?

Whentouseos.name,sys.platform,orplatform.system?建议os.name可能是'nt'。ReliablydetectWindowsinPython建议os.name是'posix'。是'posix'还是'nt'? 最佳答案 在Cygwin64上,importos;printos.name;importsys;printsys.platform;importplatform;printplatform.system()产量:posixcygwinCYGWIN_NT-6.1

python - `pickle` : yet another `ImportError: No module named my_module`

我在my_module中定义了一个类MyClass。MyClass有一个方法pickle_myself可以pickle相关类的实例:defpickle_myself(self,pkl_file_path):withopen(pkl_file_path,'w+')asf:pkl.dump(self,f,protocol=2)我已确保my_module在PYTHONPATH中。在解释器中,执行__import__('my_module')工作正常:>>>__import__('my_module')但是,当最终加载文件时,我得到:File"A:\Anaconda\lib\pickle.py

C++ 图形用户界面教程 : undefined reference to TextOut

因此,在搜索了一些Win32GUI教程之后(我认为有关制作GUI的教程可能会让我更积极地制作C++应用程序,因此通常更擅长使用C++进行编程),我遇到了一个rohitab教程。我已经找到了两个部分。第1部分工作正常,我现在正在处理Part2,但是,我在Code::Blocks中遇到了这个错误:C:\Users\John\Documents\WindowsGUIs\first_gui.cpp||在函数'C:\Users\John\Documents\WindowsGUIs\first_gui.o:first_gui.cpp:(.text+0x281)||对“_TextOutA@20”的u

c++ - 对 _imp__CryptProtectData@28 的 undefined reference

我正在尝试使用windows.h和wincrypt.h库构建一个简单的应用程序以加密一些字符串。当我调用函数CryptProtectData(&input,NULL,NULL,NULL,NULL,0,&output);时出现错误:error:undefinedreferenceto`_imp__CryptProtectData@28'我在网上搜索了很多,但没有找到多少。我还意识到Chromium浏览器使用与我的类似的代码来加密和解密其登录,我并没有做不同的事情。我正在使用QtCreatorIDE来编译我的代码。我的一些代码:std::stringplaintext="Someplain

c - MPICH:如何发布_name 以便客户端应用程序可以查找_name 呢?

在Windows(1.4.1p1)中使用MPICH学习MPI时,我发现了一些示例代码here.最初,当我运行服务器时,我必须复制生成的port_name并用它启动客户端。这样,客户端就可以连接到服务器了。我将其修改为在服务器中包含MPI_Publish_name()。在启动名称为aaaa的服务器后,我启动了失败的客户端MPI_Lookup_name()withInvalidservicename(seeMPI_Publish_name),errorstack:MPID_NS_Lookup(87):Lookupfailedforservicenameaaaa以下是代码片段:服务器.cMP

c - 使用 mingw 对 imp 的 undefined reference

我遇到的问题是在构建项目时出现的“对'_imp__...'的undefinedreference”错误。我使用的是Windows7、MinGW、Eclipse以及.lib和.dll文件,这些文件不是我制作的,而是我直接从向我出售其产品的公司那里获取的。我用-l命令链接HRDL.lib文件,我在同一目录中有PicoHRDL.dll。找到了lib文件(我确定这一点),但出现错误。我已将完整路径包含在-L命令中。我已经包含了函数声明的头文件,我得到了undefinedreference,但错误仍然存​​在。我已经联系了Eclipse支持和Picotech支持(上述公司),但他们直到现在都无法

c++ - shell_notifyicon : an attempt was made to reference a token that does not exist, 没有显示图标

我看到通知气球,但没有显示图标。在成功(返回TRUE)调用Shell_NotifyIcon后出现Windows错误:尝试引用不存在的token。主要问题是为什么我看不到图标?使用最新更新的Windows7。这是一个代码片段:namespacetray_tip{#defineFINAL_INIT(tip,title,ic,icon_id,inst)\if(icon)\{\staticconstGUIDmyGUID=\{0x23977b55,0x10e0,0x4041,{0xb8,0x62,0xb1,0x95,0x41,0x96,0x36,0x69}};\data.guidItem=myG

android - Appium Android Windows : driver. findElement(By.name (""))不能连续工作

WebElementusername=driver.findElement(By.name("username"));username.sendKeys("test");WebElementpassword=driver.findElement(By.name("password"));password.sendKeys("test");WebElementloginBtn=driver.findElement(By.name("Login"));loginBtn.click();WebElementbackBtn=driver.findElement(By.tagName("Butt