Hello All!
I have a program that uses the following windows api commands and
structures for enumerating and adding printers and drivers to a remote
machine. The program's job is to copy drivers from a print server to a
remote machine and add the drivers and printer to the remote machine's...
Hello All!
I have a program that uses the following windows api commands and
structures for enumerating and adding printers and drivers to a remote
machine. The program's job is to copy drivers from a print server to a
remote machine and add the drivers and printer to the remote machine's...
Sorry about the missing pieces, they are from the API, CleanupAds is just a routine to cleanup variables, here is the rest of the code...
blnDoFatalError is an internal error handler, just replace it with your own...
when you look at the security on the folder, it won't be human readable, it...
I can only receive small files < 20kb. Anything over that will stop about 1k bytes from being completely delivered. The code below shows the loop that should be receiving. The Receive method hangs without Blocking and throws an exception with Blocking on. nothing I have tried will accept the...
Actually I have used this in the past. Sometimes I get lazy and don't want to convert the Declarations myself. http://www.allapi.net/ is the place I use most often.
Thanks again
I am trying to get a handle for GetPrinterDriver with the OpenPrinter function but it keeps crashing VB. I need to be able to open a printer on a network print server so I can access the print driver and programatically install printers on the fly. Here is some of what I am working with...
I have pretty much what 'caf' wrote (using SHBrowseForFolder) in my own code. I am trying to find out exactly where the path info is stored so I can pass it back into one of the stuctures and setup the last opened or default folder.
I don't want to set the root since it will only display the...
After much banging of the head, and hacking apart other's code, I just finished this for myself...enjoy.
Note: this will only set the advanced security settings ofr the folder, still working on the regular security settings,if anyone know how to get to these settings, please help me out...
My program needs to be able to update NTFS folder security on remote machines. I am trying to get the SDDL of a user's SID so I can add an ACE to the file's DACL. I am not able to reference the samlib.dll (figuring that it is the correct one) to access the SAM functions. Am I going about this...
Read/write/change,etc. basically all of them. After some more looking around I found the "Net Functions" and they look promising. I also need to be able to created/delete shared folders.
I have been scouring the API for a way to set/get the properties for a shared folder and have come up with nothing. Hopefully someone can point me in the right direction in my search.
Thanks
Use the file system object but just use the Name property.
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
f.Name = "NewFileName.bat"
We just had this problem at work, SQL Server and some other dBs don't like the single quote since it inteferes with some SQL statements. FengShui1998 has the popular solution that we used. Just make sure to reformat the string when you display it.
I am trying to disable screen print even when the application is not active. I got ScreenPrint and ScreenPrint with CTRL or SHIFT pressed, but I can still print the screen with the ALT button pressed. Can someone tell me how to capture this? I am using Virtual Keys to capture the input in VB6...
I am trying to disable screen print even when the application is not active. I got ScreenPrint and ScreenPrint with CTRL or SHIFT pressed, but I can still print the screen with the ALT button pressed. Can someone tell me how to capture this. I am using Virtual Keys to capture the input in VB6...
I was looking for the same answer that you were lookin for and I found this post that will probably do exactly what you want with little modification.
thread222-256587
Hope it helps.
Found the problem, actually the opposite of what you said, but it pointed me in the right direction. I had a second copy of the DLL in my program files, how, I don't know. The wizard was trying to use that one although another DLL was dependent on that DLL. The wizard was using the AppPath of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.