|
Hello all,
Can anyone help me on how to get notified on files and folders being changed on Wince 2.12 and later?
Thank you,
Firas
|
|
|
|
|
I have DLL, when some independent processes sharing some informations. I need create in this DLL primary thread, which will modified these information. When I use DLL entry point for first time, thread is depend on process, which create it. When this process quit thread quit too.
Can be created some thread which running for example in system memory space? And how to do it. Thanks a lot
Zbynek
|
|
|
|
|
Hello Zbynek,
First of all, I assume your DLL has some shared data (using a technique like the one described in How to share a data segment in a DLL, for instance) --otherwise, your question makes little sense.
That said, maybe the following technique will work: Have a shared global variable (with proper CRITICAL_SECTION -controlled access) that keeps track of how many processes are currently attached to the DLL. When this count is one (i.e., upon launching of the first process) make your entry point launch a special process (with CreateProcess ) that in turn loads the DLL and creates the service thread (or does the required job at its primary thread). This "service" process can then quit when all other "normal" processes abandon the DLL. Make the service process a non-GUI one and the scheme will go unnoticed.
I hope I made myself clear enough. Let me know it this did help.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Does anyone exactly know the kind of data which is stored in USER memory. We have a resource problem under Win98.
Christian Probst
|
|
|
|
|
There's an extenssion to win32API that comes with Win2000/XP
that allows to impose some restrictions on single process or
process group. The flags that are used to define constraints
allow to achiewe a lot , but I couldnt find how to force
process /group of processes to use not more than some amount
of procesor computing power, measured in % (percentage).
For example: I want a media player which decodes some
video file (ie divx format) to use not more than 50% of
computing power of my CPU. If the program wants to consume more
CPU procesing power (than the specyfied amount)it would simply not receive it. When viewing the performance tab of task manager , the upper graf (of the cpu) shouldn't exceed 50% (provided that no other applications use processor).
I know that it is possible , since the IIS (that comes with
Win2000) allows to specify whether or not to use 'process throttling' , and to specify how many CPU computing power a web application (running some executable code / scripts) within the server may consume
Thanx in advance
Michal Januszczyk
|
|
|
|
|
Hi
How can I get the Info. of Windows XP security architecture?
|
|
|
|
|
I think XP has the same security architecture as Win2k, although I have not looked further into it. I dont know how detailed information you need, but the book "Inside Windows 2000, 3d ed" has a chapter on security. If you don´t want to buy the book for one chapter, an introduction to NT security can be found below.
http://www.windowsitlibrary.com/Content/121/03/toc.html
|
|
|
|
|
Hi there, it's my first post at Code Project. I'm a short time surfer there but I find it the greatest VC site I ever found.
I'm currently making an (HP) pcl2tiff converter for my company. This converter is designed to run on both PC and Unix.
I develop under MSVC 6.0 and I write portable code so that I've little or no modification when I'll do the port to Unix (HP-UX 11).
I've read somewhere - I'm not sure - it is possible to generate Unix compatible exe directly from Visual C++, that is I wouldn't have to compile under Unix and that would be so great.
Can someone confirm this - or is it just a silly idea ?
btw When finished this converter will read HPGL/PCL5 printer files and generate output to TIFF or Bitmaps.
Yarp
|
|
|
|
|
I've heard of one virus that can run on both Intel based Linux and Windows machines, but I think you have to go down to the assembler level to do this, and you would really need to know what you are doing. Effectively you would still need to include support for both systems in the exe as they are different API's. As well as that VC6 is for 32bit Win apps, and to get this working it would have to be half dos based - 16bit app, as all the Win32 exe headers would get in the way. I would say this is really not something you would want to attempt. Are the HP-UX machines Alpha based, in which case it nails the coffin shut.
Giles
|
|
|
|
|
In fact I need not include support to either system. All I do with this PCL decoder is to read the file and ouptput the result to another file - a bitmap for example. These are just file ios, that's the reason why I thought there was a little possibility.
The dream as gone but anyway thank for the answer.
Yarp
|
|
|
|
|
Hello, is there somebody to help me solve my problem? I did following:
1. I have back-up of computer' HDD with english W2000 instalation.
2. After damage of disk at this computer, I installed there german version of W2000
3. German version was installed successfully - I continued with unpacking HDD backup of previous - english version. Backup program was working OK, after
unpacking backup propmted for computer restart.
4. After restart english Win2000 login dialog appeared on screen.
5. I tried to log-in as administrator - win2000 prompt "Local security policy does not allow this user to log in". All other users of previous instalation are now unknown, noone can log in.
What to do now? In backup of previous - english instalation was backed up all the HDD content, including system directory, documents ... everything except backup directory.
What can man do, when administrator has no right to log on?
Gnimelf
|
|
|
|
|
Has anybody else experienced problems using UDP sockets for prolonged periods on NT 4, with the system partially locking up or producing a blue screen? The same app will work for days on Win 95 and Win 2K without any problems. I've tried running the app in the debugger and it just locks that up at the same time! Bounds checker also says that there is nothing wrong with the code.
Anybody any ideas?
Nick
|
|
|
|
|
I have developed a Proxy server application listening on
a purticular port running on Win 2K .This applicaion
serves the request coming from client machine Browser
by reading the header.
I want to upload a file from Apple Mac through browser
to my application running on windows 2k.
Is there any method to solve this? .The Application
is developed in visual C++ using MFC.
Is there a component to serve the purpose? if there is
some component let me know how to use it
bgpandey,
|
|
|
|
|
I have developed a Proxy server application listening on
a purticular port running on Win 2K .This applicaion
serves the request coming from client machine Browser
by reading the header.
I want to upload a file from Apple Mac through browser
to my application running on windows 2k.
Is there any method to solve this? .The Application
is developed in visual C++ using MFC.
Is there a component to serve the purpose? if there is
some component let me know how to use it
bgpandey,
|
|
|
|
|
I installed .Net,and I found the component writed with VB was correct while debug step by step,then I make the dll.But it does not work correct.(In one method of this component ,I called one function of another dll just for unzip files.)
If this is caused by .net?
sandos
|
|
|
|
|
Yeah, yeah, I know there's no quickview under 2000... I'm not asking that.
I wrote a quickview fileviewer under 98 for a proprietary format we use, and I'm wondering what my options are for porting it (somehow) to Win2K. Quickview plus doesn't look like it's expandable, or am I wrong? Is there any way to just use the old viewer somehow, or modify it slightly?
Thanks,
Josh
Joshua Berman
RealTime Gaming
|
|
|
|
|
I'd say write a shell extension that launches a viewer program. That way, you stay integrated with Explorer and can reuse that code that displays your files. Check out PicaView which takes this approach to viewing graphics files.
--Mike--
http://home.inreach.com/mdunn/
You are the weakest link, GOODBYE!
|
|
|
|
|
I heaard it possible to customize WinNT network login dialog at Windows startup.
Any information regarding this topic is very helpful.
Cheers
|
|
|
|
|
Sorry,
I have screened previous threads and found that
「GINA」 is the keyword.
Viewed MSDN, searched with that keyword and I could even get sample codes.
Thanks Jim and those who might have took a look at this topic
|
|
|
|
|
I am developing a java application and i want to get the Operation System Info. that which OS in installed on machine.
|
|
|
|
|
Use java.lang.System.getProperties()
|
|
|
|
|
Our subclassed CButtons are receiving Windows message 0x128 (296) when tabbing out of certain controls in the same dialog tab. This causes the button to draw over (or leave unpainted?) the art we want to see. In our case, the caption on the button has the standard gray button background, which we don't want. The bad drawing only occurs once in the life of the dialog. Covering/reexposing the bad areas causes them to redraw correctly.
If we return 0 from message 0x128 (not passing it to CButton), the problem disappears.
This occurs only on Windows 2000 and XP. Does anyone know what undocumented Windows message 0x128 (296) is supposed to do?
-- Phil Davidson
phil@phildavidson.com
|
|
|
|
|
The answer: This message 0x128 is WM_UPDATEUISTATE, which is documented in the MSDN library. I would have found this if I had inspected WINUSER.H from a recent version of the Platform SDK. Thanks to Usenet correspondents for this information.
-- Phil
|
|
|
|
|
Hello,
in win98 and win2k you can refresh the device tree by clicking on "refresh" in the device manager (control panel/system/hardware). Windows is then searching for new plug'n'play-devices. I want to do this refresh in my own installation program, maybe by a dll-function-call or something linke this. So far I can only reboot the computer to force the refresh. But a reboot is not really necessary. Could anyone explain me how to do such a refresh with my own src ? Thanx.
Bye.
Elmar.
|
|
|
|
|
Hi all,
I have a socket application which is running on Windows 2000. My socket application has been using local machine IP address to create a socket. Okay. at run time of the application, user can change local machine IP address throught network properties. Now in windows 2000, we dont need to restart machine after IP changes. After IP changes my application's communication will break. It want to restart again. So is there any way to know IP changes in my application, like IP change events or something?.
All comments are welcome.
Kareem ( kareem@amcomm.com)
|
|
|
|