thanks for the hints, but i have found another workaround. because i have already a process which gets launched at startup - i simply put a pipe in it, which delivers the needed informationen whether a user has logged on. thanks anyway.
hph
Posts
-
get logged on user -
get logged on userhello, i need to know who to determine whether a user is logged on or not. i have already tried GetUserName but this didn't work, because i have a service running as 'system', so GetUserName only returns 'system'. Now, how can i get this information ? OS: Windows 2000 Thanks in advance.
-
language problemhello everybody, what is the responsible part which decides in which language messagebox buttons are displayed ? Does someone have a clue? thanks in advance, hph
-
SecurityCenter XP2 and CreateFileHello everbody, i have a very very idiocratical problem! currently i try to change my application so it then supports the SecurityCenter located in XP Service Pack 2. The communication to the SecurityCenter works without any problems, but only in the debug version. I need to use the funcion CreateFile to enumerate some stuff. And as mentioned this works only in the debug version. In the release version the CreateFile function namly works but the communication to the SecurityCenter is missing. If i ignore (cancel out) the CreateFile function the SecurityCenter recognizes my application again, even in the release version! Has anyone an idea of what i'm doing wrong ? Thanks in advance!
-
cpu performancehello, i need to know how to determine the total cpu usage expressed in percent. Is there any function which can provide this value ? Please help me it's urgent. Thanks in advance!
-
what does "rhs" mean?hi, "rhs" is just the name of the input parameter, you can also use "cat" if you want, but only if you like cats ;-) Have a nice day! hph
-
OpenProcessHello, can someone tell me the meaning of the SYNCHRONIZE flag which can be used in OpenProcess ? Thanks in advance!
-
Events and ThreadsThank you, i got it!
-
Events and ThreadsHello at all, imagine the following situation: You have created an auto-signaled event, and multiple Threads are waiting for this event to get signaled. The event in addition gets signaled, and one thread starts its execution which implied the event has gotton nonsignaled. So my question is, when does the event gets again signaled ? Thanks in advance!
-
CreateNamedPipeyes it helped, thank you, i got it!
-
CreateNamedPipeok, thanks! and what does this mean ?
-
CreateNamedPipeHello, i have a little problem with the interpretation of CreateNamedPipe(...) what exactly is the difference between the dwOpenMode flag FILE_FLAG_OVERLAPPED and the dwPipeMode flag PIPE_WAIT, and which of those is used if both are specified? Thanks in advance!!
-
Function prototypeThank you for your help! But, please delete your citation of Adolf Hitler, there's nothing good associated with Adolf Hitler! It my be funny if you tell the citation once, but it is absolutely wrong to use it as a footnote!
-
Function prototypeThanks, but .. let's think that it is already implemented in a derived class, i only want to know what i does!!
-
Function prototypeHello, i have simple question, think of a common prototype like int FuncName(int var); now, what does it mean if i put a conclusive "=0" on it, like int FuncName(int var) = 0; Thanks in advance!
-
Inline Assemblythat's just the same!
-
Inline Assemblyhello together, i have a strange problem with the following asm command; __asm call 0h This command should jump to the next instruction and put the value of the position where the last call was made onto the stack! Well, it should, but i only get this message: error C2415: improper operand type Any ideas? Thanks in advance!
-
Kernel32.dll and dllmainThanks for your help! Actually i hoped that i am right, but i have expected that! What i try to do is the following: I have written a patch which injects some code into the kernel32.dll (Win98) which should load a specific .dll evertime the kernel32.dll is loaded. I have switched the original kernel32.dll with a boot disk. To get a little bit more specific: i have changed the adresse of the entry-point function, so it jumps to my code, where a specific dll should be loaded, and then jump back to the "real" entry-point-function! The strange but funny thing is, that windows98 starts up as if there is no manipulation in its kernel32.dll! I also have changed the code into something that makes no sense to see what happens, and yes, after that i have gotten a beautiful blue screen! The code to load the additional dll within the kernel32.dll is absolutely correct (that's what i think it is)! I don't have an idea why i doesn't load the dll! Any ideas ? Thanks in advance!
-
Kernel32.dll and dllmainhello, as you know, kernel32.dll is loaded at windows startup and remains in memory until reboot or shutdown. Furthermore every .exe and .dll which is going to be executed uses the kernel32.dll which means that it is loaded into the adresse space of the calling process. So far so good! At the moment a dll is loaded into memory its dllmain function should recieve 3 parameters whereas one of those descripes wheather the dll is attached by a process/thread or detached. But in my understanding, a system dll which is already loaded (at startup like kernel32.dll), doesn't get a notification if it is loaded or unloaded into/from a process' adresse space because it is already in the memory! Now is that true or false and how can i examine that ? Thanks in advance!
-
Kernel32.dllYes, i did! But my problem is that the LoadLibraryA function doesn't load the dll!!