Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: API Function Request (Read 3972 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

API Function Request

Hi,

for my OpenAL output component I need the Win32 API function "GetSystemDirectory" to get the path to a driver OpenAL32.DLL (this path is used with uLoadLibrary later...).  This function isn't covered by the UTF8API yet. It would be very kind to implement a uGetSystemDirectory function in the next 0.7 SDK version.

Thank you,

Arne Bockholdt

API Function Request

Reply #1
Is an absolute path absolutely necessary? (Heh, heh.)

API Function Request

Reply #2
If you tell me another way to load the library from the system directory without the absolute path, no ! It *must* be the one from the system directory not any dll from the path...there are so many wrapper functions around the Win32 API in the current SDK, so one more won't hurt....

API Function Request

Reply #3
if (IsUnicode())
    GetSystemDirectoryW()
else
    GetSystemDirectoryA()

P.S.  I'm sure over time Peter will expand the utf8api wrappers, but until then, you'll need to do some wrapping yourself.

API Function Request

Reply #4
Utf8api.dll isn't meant to be complete at the moment, I only selectively wrapped functions that were referenced in my code. I've added this one (as well as GetWindowsDirectory and some other similar functions, to be included with next beta); if you think that I missed something important, post it and I'll add it.
Microsoft Windows: We can't script here, this is bat country.