Checking user ID from within a Delphi application

How can I check the user ID from a Delphi Application?

I need to allow only some users access to certain menu items, or limit the option available to users depending on who they are.

This is for a Delphi application running under Windows 95 on a Windows NT 4 server/network accessing a Paradox 7 database.

There are various ways to approach this problem. But having come from theParadox for Windows world, you’re probably better off having users log in to the application itself to control screen and menu access.There are a couple of reasons to justify this position.

First, you’ll have to keep a database of users and their accessrights in your application anyway. Might as well centralize control of thesecurity rather than using a detection scheme that might not be very reliable.

Second, the networking calls for detecting a user are different forWindows NT and 95. Not only will you have to detect the user, butyou’ll first need to get the operating system they’re using to make the propercall, and this makes the whole process ofbuilding the security layer more trouble than it’s really worth.

I have experience with complex and sophisticated security systemsbuilt around Paradox databases; based on that experience, my preferencewould be to build a centralized security system that is application-specific.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS