|
1-20 of 58
Previous
Next |
|
Firing Focused JButtons with the ENTER Key
by Milan Zivkovic
This code corrects a glitch in the Java 1.2 user interface.
|
|
A Utility Program to Display System Properties
by Arun Kumar
This utility program takes the property name as the command line argument and prints out its value on the stdout.
|
|
Get the Drive Serial Number
by Predrag Dervisevic
|
|
Encrypting Stored Procedures
by Rick Codrington
When creating stored procedures, there will be occasions where a certain procedure definition should not be viewed. Using the WITH ENCRYPTION clause stores the procedure definition in an ...
|
|
Undocumented Encrypt and Decrypt Functions in SQL Server 7.0
by Andrew Holliday
There are two undocumented encryption functions. They are not supported by Microsoft, and I have had problems with some SQL Server service packs when using these functions. That being said, the ...
|
|
Rebooting with NT's Schedule Services
by DevX Pro
How can I schedule an automatic reboot?
I have the schedule service started and set up to start automatically, and I know how to do
the "at" commands. What I don't know is the command to get it to reboot.
|
|
GetPrimaryDCName
by DevX Pro
I'm trying to get the PDC name for a domain on my network using the following code. It works fine within the VB IDE, but the moment I compile it and run it as an executable, it errors out with either
NERR_DCNotFound(2453): Could not find domain controller for this domain
or
ERROR_BAD_NETPATH(53): The network path was not found
Any idea what's going wrong?
Here's my code:
Private Declare Function NetGetDCName Lib "NETAPI32.DLL" _
(ServerName As Byte, DomainName As Byte, DCName As Long) As Long
Private Declare Function lstrcpyW Lib _
"kernel32.dll" (bRet As Byte, ByVal _
lPtr As Long) As Long
Private Declare Function NetApiBufferFree Lib _
"Netapi32" (ByVal pBuffer As Long) As Long
Public Function GetPrimaryDCName(ByVal DName As String) As String
Dim DCName As String, DCNPtr As Long
Dim DNArray() As Byte, DCNArray(100) As Byte
Dim result As Long
DNArray = DName & vbNullChar
result = NetGetDCName(0&, DNArray(0), DCNPtr)
If result 0 Then
Err.Raise vbObjectError + 4000, "CNetworkInfo", result
Exit Function
End If
lstrcpyW DCNArray(0), DCNPtr
result = NetApiBufferFree(DCNPtr)
DCName = DCNArray()
GetPrimaryDCName = Left(DCName, InStr(DCName, Chr(0)) - 1)
End Function
|
|
NetUserGetInfo - API Call
by DevX Pro
I am using "NetUserGetInfo" API call to get the NT user profile. I use:
typedef struct _USER_INFO_3
How can I parse the "usri3_flags" member in detail?
|
|
Creating a Numeric-Input JTextField
by David Glasser
Validating user input that is typed into a JTextField can ...
|
|
Synchronizing Workstation Clocks
by DevX Pro
How do I synchronize all the Workstation clocks of a 100+ user community to the same reference?
|
|
Delete a User in NT
by DevX Pro
How do I delete a user in NT with the API's?
|
|
Directories That Won't Open
by DevX Pro
How come I can't open some directories on my C:\ drive? I get the error
"c:\directoryname is not accessible. Access is denied."
|
|
Run EXE as Logged-On User
by DevX Pro
Let's assume I am logged onto an NT Workstation as a normal user. Using one of your
10-Minute Solutions I managed to get the LogonUser API to log me in as the
Administrator (i.e., returned True) with VB. Now I want to shell an EXE as the logged on
Administrator and not myself. For example, this viruscan update, which requires Admin
privileges:
c:\Temp\sdat4080.exe
How do I do this (I believe one solution is the CreateProcessAsUser API, but I don't
know how to use it)?
|
|
File Security Under NT/2000
by DevX Pro
I am trying to back up my server, but there are no freeware products that will save the ACLs off the files on the backup. Tape backup is not an optionwe've just invested in a CD-RW. How do you save and restore a particular file/folder's ACL?
|
|
Windows 2000 Boot Disk
by DevX Pro
I have installed Windows 2000 on my laptop. I would like to create an emergency start disk akin to Windows 98. My current partition is FAT32. I created a floppy as per instructions using the backup utility. When I use the disk to boot I get NTLDR is missing.
I would like to blow away my Win98 install, but am afraid to if I should need to emergeny boot. What should I do to create an emergency disk.
|
|
Column-Level Permissions or Access
by DevX Pro
I have a table that contains about six million records. Each record contains some sensitive data or data that be accessible by the public. What would be the best method to allow access to the table, yet block the access to the sensitive columns (i.e., name, address, etc.)?
|
|
SQL Application Security
by DevX Pro
Is there a "best" way to design VB/ASP apps to deal with SQL (7.0) security? For example, in a WAN environment and a Web application where the app needs to set up SQL users, somebody or some ActiveX component has to have SQL Server Administrator rights. Is there any way around this? Or do you have any suggestions on where to locate information on this subject?
|
|
Changed Permission Properties
by DevX Pro
When I do a property box on a file/directory, the Security sheet changes from the normal (NT4, SP0) one to a new one. Can you explain this? (I have installed NT4, SP5 recently, although other NT4 Server boxes don't do this.)
|
|
Hide Implementation Details of Stored Procedures
by Deepak Pant
You can hide the implementation details of your stored procedures from end users of the application using WITH ENCRYPTION option. ENCRYPTION indicates that SQL Server encrypts the syscomments table ...
|
|
Special Folder Path
by DevX Pro
I want to find the path to the Startup special folder. How can this be done within a VB application?
|
|
1-20 of 58
Previous
Next |