OrangeC icon indicating copy to clipboard operation
OrangeC copied to clipboard

Support forwarding DLL call

Open yh15kla9 opened this issue 7 months ago • 1 comments

For example:

#pragma comment(linker, "/export:CancelWaitableTimer=kernel32.CancelWaitableTimer")

You can see that this is used all over the place in this DLL:

https://github.com/cristianadam/api-ms-win-core-synch-Win7/blob/main/api-ms-win-core-synch-l1-2-0.c#L142

They are implementing the missing functions for older Windows systems. Applications will see the CancelWaitableTimer function implemented in this DLL as something from kernel32.dll. I only guess about how it works, though.

Is it possible to do something like this in Orange C?

Originally posted by @yh15kla9 in https://github.com/LADSoft/OrangeC/discussions/1100

yh15kla9 avatar Jun 06 '25 04:06 yh15kla9

so sure it was fine you made this, I hadn't realized the original issue was over in the discussions. Things to be fixed are easier found here... it will be just a bit before I get back to fixing stuff as I'm working on compiling covscript right now.....

LADSoft avatar Jun 11 '25 13:06 LADSoft