Click here to Skip to main content
15,905,504 members

Comments by Tolleule@web.de (Top 5 by date)

Tolleule@web.de 12-Sep-15 11:08am View    
You are right.

Yes i have Windows 10 64 Bit German version. I already thought about this possibility, that a english version of Windows has a english version of dismapi.dll, but i checked it and it's the same file. Then i changed my system language to en-US and the output was like expected in english. That's all i know -.-
Tolleule@web.de 11-Sep-15 20:53pm View    
Interesting, i think i got it Sergey. So a linker would compile the set of functions and objects to a static, dynamic library or a exe, right?

Then it's impossible to get the source code which i need to understand how dism is managing the error messages by language, right?

Thanks for your effort!

Edit: Don't forget, that i already have full access to all functions of the api, but with ole. I know its a indirect way, but using .net or c++ is no option -.-

Edit2: A .net wrapper for dism exists.

Edit3: You have shown me the proper way to use the api but don't forget my real problem? Changing the output language of dism error strings. I think without getting the source code, it's not possible to get a working solution :/ What do you mean
Tolleule@web.de 11-Sep-15 19:26pm View    
no no you missunderstood me. I'm interested in programming a lot, but not in f***ing C++, this language is confusing me. I only working with python. Now, i only need a way to read the lib. When i add it to my Win32 Project i get an error "...there is no editor available for dismapi.lib". Can you help me with it?

Edit: Is a lib file a compiled file like a DLL?
Tolleule@web.de 11-Sep-15 18:56pm View    
oh, i understand now, except the part with the 32 and 64 bit processes.

The problem is, i have no experience with c++ or .net and i dont't want to. But i like to have a look into this lib file and study it. Would you be so pleasant to explain, how i can get the code of this lib or how it is used? I have installed Visual Studio Express 2012 right now, but i can't open the file with it and there is no section "Linker". I checked the internet but the IDE is soo gay, can't find a proper explanation, perhaps it's because i have the german version -.-

Do you know TeamViewer? Would you login into my pc and prepare the IDE, it's really easy with TeamViewer. That would be really nice.
Thanks
Tolleule@web.de 10-Sep-15 21:35pm View    
Thanks for answer, but i can't follow you: What do you mean with "did you try to change the Culture and UICulture of the calling thread?"

The platform i work with is Windows 10, but i already worked a lot with DISM API on Windows 7 with AutoIT a few years ago. Now with Windows 10 and python. I already set up the models and i can access all documented functions without any trouble.

The question i alredy had while working with AutoIT language is how i can change the output language.

Here an example:

hDism = OleDLL("C:\\Windows\\SysWOW64\\DismApi.dll") // open api

hDism.DismInitialize(1, None, None) // init DISM

When i want to get an error message i can call:

session = hDism.DismOpenSession("C:\\folder_to_mount", None, None, byref(session))

and

hDism.DismGetLastErrorMessage(byref(ErrorMessage))
print("The last error message was: %s\n" % ErrorMessage[0].Value)

A german string is printed. Now I'm looking for a solution to change the language of the output string and there is no option to do this in the API Reference of microsoft.com.

As a test i changed my system language to en-US and i got an english output but it's not a solution i can work with.

Is there a possibility, to handle this.