Solved

How to create DLL with Localized Strings and IDs for use with RegLoadMUIString

Posted on 2008-06-25
6
286 Views
Last Modified: 2010-04-21
Please refer to the following MSDN articles:
http://msdn.microsoft.com/en-us/library/ms685156(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms724890(VS.85).aspx

My question is, how do I create a DLL that can be used to hold Localized String with ID references that I can plug into a service description? I can set the service description using the ChangeServiceConfig2 function but I'd like to use the form: @[path\]dllname,-strID on W2K8 and Vista.
I just need to see and example of the DLL source code that would make this work.
Thanks
0
Comment
Question by:softbreeze
  • 3
  • 3
6 Comments
 
LVL 21

Expert Comment

by:ziolko
Comment Utility
are you trying to make event source DLL for service application to get rid of those comments in NT Log about not being able to find event description?

ziolko.
0
 
LVL 1

Author Comment

by:softbreeze
Comment Utility
No. I've figured that one out by creating a resource DLL. I have a 'Service Manager Application' that worked great until Vista and W2K8 came out. I now have to use the RegLoadMUIString to get the service description for those two versions. My program also allows you to install services so I'd like to be able to install the reference to the DLL for Vista and W2K8. Do you think the DLL would be build that same way as the resource DLL for event messages?
0
 
LVL 21

Expert Comment

by:ziolko
Comment Utility
>> Do you think the DLL would be build that same way as the resource DLL for event messages?
that would be logical, but you have to test it yourself:)

>>My program also allows you to install services so I'd like to be able to install the reference to the DLL for Vista and W2K8.
you can use onbeforeinstall/onafetrinstall event handlers to make registry changes and/or RegLoadMUIString call

ziolko.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 1

Author Comment

by:softbreeze
Comment Utility
Thanks I will do the testing. Currently when I install a service with my app I use the CreateService function followed by the ChangeServiceConfig2 function to add the description. I suppose that if the description is contained in a resource DLL then I could use the ChangeServiceConfig2 function to install a description that looks like:

@%SystemRoot%\System32\MyAppRes.dll,-101

where 101 is the ID of the description string.  
0
 
LVL 21

Accepted Solution

by:
ziolko earned 500 total points
Comment Utility
yup, one thing about string ID test if it needs to be decimal or hexadecimal number, but I guess it would be decimal

ziolko.
0
 
LVL 1

Author Closing Comment

by:softbreeze
Comment Utility
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now