Search found 10 matches

by Gary
Sun Apr 12, 2020 5:10 pm
Forum: Development Help
Topic: Why doesn't the ReactOS vga.sys work in Win 2000?
Replies: 3
Views: 2242

Re: Why doesn't the ReactOS vga.sys work in Win 2000?

Ok, I figured it out. The ReactOS vga.sys stores the value 0x54 as the size of the VIDEO_HW_INITIALIZATION data structure. So when calling Videoprt.sys/VideoPortInitialize the function rejects the data structure and returns an error code. The DriverEntry function of vga.sys returns this error code a...
by Gary
Sun Apr 12, 2020 5:05 pm
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows refuse to load my simple driver?
Replies: 12
Views: 5537

Re: writing a driver: why does Windows refuse to load my simple driver?

Ok, I figured it out. The size of the last section needs to be divisible through the value in the field file alignment. Which is not necessary for a dll or exe file. Took me quite a while to figure it out but finally I got a working driver.
by Gary
Fri Feb 14, 2020 11:06 pm
Forum: Development Help
Topic: Why doesn't the ReactOS vga.sys work in Win 2000?
Replies: 3
Views: 2242

Why doesn't the ReactOS vga.sys work in Win 2000?

Hello,
I just tested the vga.sys from ReactOS under Windows 2000 and noticed that the driver is not even loaded (error code 31 = driver can't be loaded).

Does someone know why Windows is rejecting the loading procedure?

Thank you.
by Gary
Fri Feb 14, 2020 10:59 pm
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows refuse to load my simple driver?
Replies: 12
Views: 5537

Re: writing a driver: why does Windows refuse to load my simple driver?

That's strange: I just deleted graphic.sys from the directory "drivers" and then made a copy of vga.sys from Microsoft. Then I renamed the copy to "graphic.sys" to see if it's the sys-file or the inf-file. But surprisingly Windows said that the driver was writen for an older version of Windows and t...
by Gary
Thu Feb 13, 2020 11:23 pm
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows refuse to load my simple driver?
Replies: 12
Views: 5537

Re: writing a driver: why does Windows refuse to load my simple driver?

@ThFabba: Thank you for the tip. I must have forgotten this when I just wanted to output some debug information somehow. I have removed the imports from kernel32.dll but I still get the same error. http://ontheserver.de/temp/2020-02-13/graphic.inf http://ontheserver.de/temp/2020-02-13/graphic.sys Ma...
by Gary
Thu Feb 13, 2020 12:32 am
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows refuse to load my simple driver?
Replies: 12
Views: 5537

Re: writing a driver: why does Windows refuse to load my simple driver?

Thank you for your reply. I thought that the development section is dedicated to ReactOS development. So I didn't want to tread on someones toes. A moderator is free to move the topic. About those section names: You are right, english is probably the best choice. But even if I named them sfsfdhdgd W...
by Gary
Wed Feb 12, 2020 8:37 pm
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows refuse to load my simple driver?
Replies: 12
Views: 5537

[solved] writing a driver: why does Windows refuse to load my simple driver?

Hello, I am trying to write a driver. The driver should call a function (VideoPortInitialize) and then write the return value to a file (for debugging). But Windows 2000 refuses to even start executing the machine code of the driver. When I try to start the driver I only get the error code 31 ("devi...
by Gary
Sat Jan 25, 2020 1:25 pm
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows not know the date
Replies: 8
Views: 2828

Re: writing a driver: why does Windows not know the date

Thank you for the response. The space was/is legal according to the syntax. I just checked it anyway but my test confirmed that removing the space makes no difference. I checked the documentation and found that according to the documentation a driver needs to be digitally signed. If it is not signed...
by Gary
Fri Jan 24, 2020 9:02 pm
Forum: Off Topic
Topic: [solved] writing a driver: why does Windows not know the date
Replies: 8
Views: 2828

[solved] writing a driver: why does Windows not know the date

Hello, I am trying to write my first driver for Windows 2000. The driver does nothing at the moment. The DriverEntry-function returns 0 ("all ok") and that's it. I wrote an *.inf file but something seems to be wrong about it because Windows is unable to read the date. http://ontheserver.de/temp/2020...