|
Maybe check this[^] as a starting point, it has source code for you to examine.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
thanks
very clearly ..
i'll try
|
|
|
|
|
If you want to retrieve the number of opened handles by given process you can use GetProcessHandleCount[^]. Note that minimum supported clients for this function are Windows Vista and Windows XP with SP1.
If you want to support older windows versions you can use NtQuerySystemInformation[^]. Look for SYSTEM_PROCESS_INFORMATION class and read the documentation carefully before using this function.
I hope this helps.
|
|
|
|
|
thanks.
i 'll research...do you have a help document for me?
|
|
|
|
|
Well I already gave you the link to the documentations of two APIs.
The usage of GetProcessHandleCount is trivial, documentation says everything you need.
For NtQuerySystemInformation you can check out this[^] thread, where you will find a sample code that actually retrieves Handle Count, Thread Count, etc.
The example code actually uses ZwQuerySystemInformation[^] function but in fact this does not change anything for you, the usage is exactly the same.
P.S. If you actually want to know the difference between 'Nt' and "Zw' prefixed native API functions, have a look at this interesting article[^].
|
|
|
|
|
Hi, I'm writting a simple client/server program using microsoft RPC. The client should specify server's system user name and valid password in each RPC procedure, otherwise server reject the RPC request. I do not know how to do it. Please give me some advise. Thank you.
|
|
|
|
|
Can I put DllName.OtherName.OtherName.dll as my Win32 dll name.
|
|
|
|
|
Yes.
I am a HUMAN. I have that keyword in my name........
_AnsHUMAN_
|
|
|
|
|
Hi ,
i have an interger x=10; i want to write this by assigning it to const unsigned char variable.
whenever i tried to write in file it increase the file offset by 2. for e.g if before writing file offset was 152 after writing it become 154.
But i wrote 9 or 11 or any other number than 10 ,it increase offset by 1 means offset increase from 152 to 153.
it works fine on Linux but giving issue on windows.
Regards,
Sachin
|
|
|
|
|
The value 10 in binary means a new line character.
In Windows, a new line is converted to a new line / carriage return character pair.
Linux and Unix do not do this.
Thats the reason for this behavior.
|
|
|
|
|
Thanks Santosh for quick reply ,
Can you please help me to write a value 10 in a file .I have an integer with value 10.I do typecasting to store in unsigned char which i pass in fwrite() as parameter.
If in windows writing 10 to file treat as different operation as mentioned above, Can you please suggest me alternate way to write value 10 in file i.e. in which format I should pass parameter to fwrite()
Regards,
Sachin
|
|
|
|
|
Thanks once again Santosh.
I got the issue,Actually i was creating file in 'w' mode instead of 'wb'.
with 'wb' mode ,it is working fine.
Thanks,
Sachin
|
|
|
|
|
If it ain't text, don't pretend it is text; use binary mode instead.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Hello Friends
Is there a way in which we can capture screenshot of a game built in direct x.
I registered a shortcut key using RegisterHotKey to display a test messagebox, launched Star Wars and pressed the shortcut key configured.
No messagebox appeared and hence it seems that the system wide shortcut keys of keyboard registered using RegisterHotKey do not work.
Or it means that Direct X creates it's own secure environment in which no other software made in directx or win32 or c++ can internein ?
Regards
|
|
|
|
|
Hi All,
I am working on my college project "Virtual Keyboard Video Mouse (vKVM) Server using C on LINUX". (Probably Server will have Graphics Data available in provided memory location)
I searched on Internet. It's similar to to "Virtual Networking Computing (VNC)" & "Remote Desktop". VNC uses Remote Frame Buffering (RFB) Protocol for it. I studied "LibVNCServer" but couldn't use it.
Please suggest me how to approach for this project? How should I start writing code for it? Initial requirement of project is Basic Server to transmit video/desktop data is also fine.
Please help me for that.
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Aniket Salunkhe wrote: I studied "LibVNCServer" but couldn't use it.
In that case you are going to have to write your own versions of the client and the server modules. I suspect that this is not a trivial task and an understanding of the existing libraries is a prerequisite. If you mean that you cannot understand these libraries then you probably need to reconsider the task you have set yourself.
I must get a clever new signature for 2011.
|
|
|
|
|
Well, for a college project it's probably easier going on without studying VNC protocols and libraries. I would study TCP/IP , design a basic, very simple, protocol and implement my own client and server (they won't be light-fast, but I suppose that's not required).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I agree with cpallini.... if you even look at vnc, then it should just be a glance at the architecture involved, not the implementation... I've seen other articles floating around with implementations of remote control software, try looking around for those...
|
|
|
|
|
Hi!
I've to get the installation path(i.e the user enters during installation) from C++. How to do this?
|
|
|
|
|
|
I am using Visual Studio 5 C++. The platform is Windows CE 6.0 R3.
I need to load a bitmap from file and need the HBITMAP handle to use in my program.
I have searched the Internet for this with no result.
SHLoadImagefile() I can't use.
OleLoadPicture() I may can use but gives me a unresolved external.
Maybe someone has encountered this problem before and want to share the solution with me.
|
|
|
|
|
|
LoadImage() is suppoted for Windows CE but dous not support load from file (LR_LOADFROMFILE) I am afreid.
Thanks for your answer.
|
|
|
|
|
Does SHLoadDIBitmap[^] work maybe?
[MSDN RANT]Is it me or does MSDN confuse the hell out of one? If you check it here[^] it says:
lpszName
...
If the fuLoad parameter includes the LR_LOADFROMFILE value, lpszName is the name of the file that contains the image.
fuLoad
[in] Set to zero.
...
So basicly this says: if you use LR_LOADFROMFILE then you can load a bitmap from file, but wait, you can't because you have to specify 0 for fuLoad. Gee, thanks. [/MSDN RANT]
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Does SHLoadDIBitmap[^] work maybe?
No it does not work, but it compiled OK and the handle it returnes looks OK.
The LR_LOADFROMFILE is not supported for win CE and yes that MSDN article is confusing.
Thanks for your time.
|
|
|
|