Windows错误代码值

Windows错误代码值

本文介绍了Windows错误代码值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个C程序来安装/卸载驱动程序.
安装成功完成.
卸载期间,功能SetupUninstallOEMInf()失败.
GetLastError()给我的值为2.
该代码段为:

I have written a C program to install/uninstall my driver.
The installation happens successfully.
During uninstall the function SetupUninstallOEMInf() fails.
The GetLastError() gives me a value of 2.
The code snippet is:

TCHAR infFileName[MAX_PATH];

if( ! SetupUninstallOEMInf( infFileName, SUOI_FORCEDELETE, NULL) )
	{
		//failure to delete the OEM File
		_tprintf( _T("\nSetupUninstallOEMFile call failed. Code %u"), GetLastError() );
		return;
	}



如何查找这2表示什么?
我可以获取任何错误代码列表吗?



How to find what does this 2 indicates?
Can I get any list of error codes?
Is there any way to get descriptive message?

推荐答案


这篇关于Windows错误代码值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 03:10