|
I don't know if can so much to see the errors.. but I will try!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
Is there any API that can increase the volume?
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
What volume? What do you want to do? Is this related to sound, and in that case are you using DirectSound? I don't know much about DirectX, but I guess someone here could help you if you provided more info..
/moliate
/moliate
|
|
|
|
|
I want my app to increase the system volume if it's called like that!?
The little system tray speaker... HOW to let my app increase that volume?!?!?!!!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
MMRESULT waveOutSetVolume(
HWAVEOUT hwo,
DWORD dwVolume
);
MMRESULT midiOutSetVolume(
HMIDIOUT hmo,
DWORD dwVolume
);
Kind regards
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
|
|
|
|
|
I wan to get the position of the window?
I use SetWindowPos(..) to set my app on top of all other apps. But I want to get the window's current positon on the desktop to assign the values in the function to stay where it was before!
HOW?
Show me code example! I know this is to easy but you can show me dude!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
If you want to place a window top most just call SetWindowPos like this:
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
Did I understand you right or I missed something?
|
|
|
|
|
Have u tried :
BOOL GetWindowRect(
HWND hWnd, // handle to window
LPRECT lpRect // window coordinates
);
|
|
|
|
|
Does anyone know if it's possible to increase the maximum password length for user accounts on NT to more than 14 characters?
|
|
|
|
|
You really want to make it hell to log in for your users, don't you?
Anyway, I don't think it is possible. NT acutually keeps two separate hashes: LanMan hash and NT hash. I guess the limitation is in the LM hash. LM breaks the password into two 7-byte chunks, that are separatly checked against the SAM. For that reason, the first seven characters should not be "related" to the next seven. For example, "QWERTYQWERTY" is broken into "QWERTYQ" and "WERTY__", and if a hacker finds eiter one guessing the whole password is rather easy. You could also place a non-printable chars in both halves to make it harder to guess, like '(NUM LOCK) ALT-255'.
Hope this helps
/moliate
|
|
|
|
|
moliate wrote:
You really want to make it hell to log in for your users, don't you?
I said the maximum, not the minimum. The reason is that I find it much easier to choose passwords from random phonemes via a Markov chain rather than by choosing random characters. 10 random elements from a third-order Markov chain must have several dozen characters to achieve the same entropy as 10 random alphanumeric/symbol characters, but can be more easily remembered because it can be pronounced with sounds consistent with the user's native language.
Those who want to use this system for choosing truly random passwords find that the time it takes to type in 30 characters is significantly less than the time it takes to look up an 8-character password in a secure password-storage device.
Thanks for the explanation of the NT password mechanism. I may need to accelerate the move to all-Win2K systems just because of this security problem!
|
|
|
|
|
Ops. Sorry about the misreading..
Anyway, I think Microsoft has provided some kind of Hotfix to turn LM authorization off if you don't need it. Check the sequrity site for that. Still don't know if there is a way to increase password length..
/moliate
/moliate
|
|
|
|
|
Running Explorer under Win2k, you can find some additional information on most files, like Title, Author, Comments and so on. Does anyone know where this information is stored? I try to find out if this is a property of ntfs or Windows, and if information is conserved when transfered to another computer...
Thanks.
/moliate
|
|
|
|
|
Which files? I'm familiar with that information in Office document files such as .DOC and .XLS. In this case the information is contained in the files themselves and will be transferred from one computer to another.
Michael
|
|
|
|
|
When I right-click on any file, choose Properities, select the propertytab Summary, I find some fields where I can enter data. This data is preserved if the file is copied or moved, and don't change the content of the file. Was just wondering how this was done.
BTW, I don't have an English version of Win2k, so the names I used above might be a bit garbled through translation..
/moliate
|
|
|
|
|
That info is stored in the file itself, using a second stream. Streams are supported on NTFS only, so as long as the file stays on NTFS volumes, the info will be preserved.
--Mike--
http://home.inreach.com/mdunn/
Help! Help! I'm being repressed!!
your with and
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Thanks for the reply! It helped me to search around a bit to find some more info. One thought bugs me though - wouldn't this feature make it easier to hide viruses? How could I find all the named streams contained in a file? Is there a tool to do this? I doesn't seem like the Windows API has direct support for named streams..
/moliate
|
|
|
|
|
Tell me if I am barking up the wrong tree here.
But with the advent of COM and OLE and stuff like that - they created a new file format called the "DOCFILE". A DOCFILE is a filesystem within a file containing storages (like a directory) and streams (like a file).
To use these, you need to start looking at the COM class IStorage.
This properties information you are looking for is contained within a stream in the root of the file. I don't recall the name or the format of the file, but it's there...
-p
P.S. This is not supported on NT or NTFS only. This is in all COM supporting versions of windows.
|
|
|
|
|
Not so much viruses, but you can hide data, that will not appear in the files size. A file can have a length of 0 bytes but could contain data in one of the other streams, which would not show up. I remember a freind doing a course on Win 2000 admin, and this police guys face went pale when the tutor showed them how to hide data in this way.
Giles
|
|
|
|
|
What are the APIs for accessing these streams?
Michael S. Scherotter
Lead Software Architect
Tartus Development, Inc.
|
|
|
|
|
Any of the standard API (i.e. CreateFile)
"mytextfile.txt:stream_name_1" is the name of "stream_name_1" in the file "mytextfile.txt".
MSDN Info
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Thank you.
How can you enumerate the streams on a file?
Michael S. Scherotter
Lead Software Architect
Tartus Development, Inc.
|
|
|
|
|
Hi,
I will soon install XP on one of our machines (probably mine). Has anyone been using Visual studio 6.0 on XP ? If so, did it work as before ? For the moment I do not think I will upgrade to a higher version. If version 6.0 works I will keep on using it for a while.
Also, I am using a legacy compiler for the 8051 processor. It is essentially DOS based but I have integrated it with Visual studio 6 and it is working well. Anyone have any experience with running DOS programs under XP ? To clarify, the DOS applications are just plain vanilla: to activate you type a command line with some arguments and during + after running you get some simple text output. Just wondering if under XP you can still do that.
Any help/comments much appreciated.
regards,
Filip
|
|
|
|
|
I've been using Visual Studio 6 SP5 for about 55 days on XP now. (I know the number of days because XP keeps reminding me I have x days left to activate)
I've not had any major problems. There have been a few unexpected crashes but I had plenty of those on 2000 too.
Michael
|
|
|
|
|
I haven't really had any crashes but I can't seem to debug anything.
-Matt Newman
-Matt Newman
|
|
|
|