|
Hi
I trying to compile a device driver and to avoid compiling in user level functions I’ve specified /NODEFAULTLIB as a makefile flag. The function memset is now reported as a non-resolved function. The memset function is available in LIBCRT.LIB however, whenever I explicitly reference this library in the makefile it generates a number of other non-resolved functions beginning with gs_ which I believe are related to kernel32.lib which is not available to driver .dll’s
Is there an alternative to the memset function I could use?
Patrick
|
|
|
|
|
You probably need to consult some of the information presented here[^], as there are many issues with kernel level code, not just memory allocation. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
I guess you may use RtlFillMemory [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I ended up inserting the following line in the sources file and it now works:
TARGETLIBS=\WinDDK\7600.16385.0\lib\wnet\i386\libcntpr.lib
As it works I'm assuming that this is a kernel equivalent to libcnt.lib?
Patrickmodified on Thursday, February 18, 2010 7:14 PM
|
|
|
|
|
Hi All,
I am trying to install the .inf file through cmd line
rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\mfile.inf
It runs fine with wondows xp and windows 7 but in windows vista I am getting error message "Installation failed".
Even UAC also disabled. What might be the problem?
|
|
|
|
|
john5632 wrote: What might be the problem?
Same as this[^].txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
|
Provide some more information, your message gives us nothing to work with. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
I have only inf file and want to install.
What information you want?
|
|
|
|
|
What are you trying to install? Perhaps if you post the contents of your inf file that might be a starting point. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
ok, trying to install kQemu driver through .inf file
Code:--
; Copyright (C) 2005 Filip Navara, Damien Mascord
[Version]
Signature = "$Windows NT$"
Class = System
ClassGuid = {4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider = %Author%
DriverVer = 04/28/2005,1.0
[DestinationDirs]
DefaultDestDir = 12
KQemu.DriverFiles = 12
KQemu.InfFiles = 10,inf
[SourceDisksNames]
1 = %InstDisk%
[SourceDisksFiles]
kqemu.sys = 1
[Manufacturer]
%Author% = KQemu.Manufacturer
[KQemu.Manufacturer]
%Description% = DefaultInstall,kqemu
[DefaultInstall.NT]
CopyFiles = KQemu.DriverFiles, KQemu.InfFiles
AddReg = KQemu.UninstallRegistry
[DefaultInstall.NT.Services]
AddService = kqemu,,KQemuService_Inst
[Uninstall.NT]
DelFiles = KQemu.DriverFiles, KQemu.InfFiles
DelReg = KQemu.UninstallRegistry
[Uninstall.NT.Services]
DelService = kqemu,0x00000200
[KQemu.DriverFiles]
kqemu.sys
[KQemu.InfFiles]
kqemu.inf
[KQemu.UninstallRegistry]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KQEMU,"DisplayName",,%Description%
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KQEMU,"UninstallString",0x20000,"RunDll32 setupapi.dll,InstallHinfSection Uninstall 132 %SystemRoot%\inf\kqemu.inf"
[KQemuService_Inst]
DisplayName = %Description%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\kqemu.sys
[Strings]
Author = "Fabrice Bellard"
Description = "KQEMU virtualisation module for QEMU"
InstDisk = "KQEMU Install Disk"
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 3
SERVICE_ERROR_NORMAL = 1
|
|
|
|
|
I see that this file contains the name of the author and the company that manufactured this product. Obviously they are the people to contact to ask what this message means. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
If I could do that then no need of your help
|
|
|
|
|
As I said in answer to your earlier post, the message "Installation failed" gives no clue as to what might be wrong, so there is no way we could begin to guess what the error is. If you cannot get help from the people who wrote this package then I fear you are stuck. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
john5632 wrote: If I could do that then no need of your help
Oh Yeah? You must be happy for all the help you are getting here. You talk as if you are paying to get help from people here.
|
|
|
|
|
What's keeping you from contacting fabrice@bellard.org?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Perhaps you can start your console window as an administrator - it may help.
Browse to your \Windows\system32 folder, then right-click on cmd.exe and choose "Run As Administrator".
Hope it helps.Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
|
Hi,
When you install a device driver and the installation fails you can check the SetupAPI Log File[^] located at %windir%\inf\setupapi.dev.log on Windows Vista and above.
My guess is that you are attempting to install a 32 bit device driver on a 64 bit Vista OS.
Best Wishes,
-David Delaune
|
|
|
|
|
In a program I develop I need to find out if I can have write rights to a given file. Earlier I have used
dwAttributes = ::GetFileAttributes(sFileName);
if( dwAttributes != INVALID_FILE_ATTRIBUTES )
{
if( dwAttributes & FILE_ATTRIBUTE_READONLY )
{
bReadOnly = true;
}
}
|
|
|
|
|
Your program should require elevation to gain access to such folder, see, for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Did you answer to the right message? Your reply seem to have nothing to do with what I asked about.
|
|
|
|
|
The issue is with User Access Control. If you wish to write to files in certain directories you need elevated access rights before you are allowed to do so. Did you read the link that Carlo gave you? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Did you read the original question? I do not want to write files. I want to know if I can write files. i.e. I have a file name and want to be able to answer the question "Can I write to this file?".
I'm looking into using GetNamedSecurityInfo() and then GetEffectiveRightsFromAcl()
|
|
|
|
|
You're correct, I misunderstood your original question. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|