I designed a filter driver which is located in device stack between "bus driver" and "function driver". The filter driver has a "symbolic link". Assuming there is two win32 applicaiton named "App-1" and "App-2". "App-1" is communicating filter driver through symbolic link. On the other side the aim of the "App-2" is going to prevent/permit communicaiton between "App-1" and "symbolic link". Is there a method to prevent/permit DeviceoIoControl(...) for "symbolic link"? OR prevent an applicaiton to communicate with symbolic links. Thanks for your help. (Platform is WinXP)
erkanina
Posts
-
prevent/permit DeviceIoControl(...) for a Symolic Link -
dynamic arrayFollowing code should be helpfull; //... First - allocate class pointer array MyClass **pArr = new MyClass* [dwClassCount]; //... Second - allocate class objects for(i=0;i<dwClassCount;i++) pArr[i] = new MyClass; //... Do the job //... Release class objects for(i=0;i<dwClassCount;i++) delete pArr[i]; //... Release class pointer array delete pArr;
-
Ask about drawing the clientFor this kind of application DirectDraw is the best solution, With DirectDraw; Less PCI bandwith consumption. You can manipulate video memory directly in various video format. You can solve flickering/twinkling by Double Buffering, Waiting Vertical SYNC.
-
video capture to memory.You need to install DirectX SDK, SDK includes a lot of Multimedia sample codes There you can find video capture source codes with DirectShow
-
code to estimate center of sphere?Or you can apply clasiccal method; You should have at least three surface point to obtain a sphere. (Xo,Yo,Zo) is center coordiane of sphere and r is half of diameter Sphere equation is (X - Xo)^2 + (Y - Yo)^2 + (Z - Zo)^2 = r^2 We have 3-samples Sample1 : (X1,Y1,Z1) Sample2 : (X2,Y2,Z2) Sample3 : (X3,Y3,Z3) Place these three sample to the above equation, and then you will obtain 3 equation with unknown Xo,Yo,Zo parameters. You can easily calculate these with three equation.
-
code to estimate center of sphere?At first I tried to remember 3D math, surface equations and surface normals But solution is easy if I do not misunderstand You have limited sample points (x,y,z) of a sphere. Search all samples and obtain Minimim and Maximum value of X,Y,Z; The center of the sphere is (Xcenter,Ycenter,Zcenter) The equation should be so; Xcenter = (Xmin + Xmax) / 2 Ycenter = (Ymin + Ymax) / 2 Zcenter = (Zmin + Zmax) / 2 I hope it helps you
-
Editing flexgridSubclassing should be usefull
-
Com portsuse EnumPorts(...) API
-
programmatically prevent dialog from resize and moveThanks for your response. It will be very helpfull.
-
programmatically prevent dialog from resize and moveHow can I prevent a dialog from resize and move; and then enable. Thanks for your responses.
-
Rename VC++ project nameThanks for your response. It will be very helpfull.
-
Rename VC++ project nameHi programmers, How can I rename an existing VC++ project?
-
DirectSound capturing 8/16 bit wave PCMDear programmers, I am capturing audio PCM with 8-bit and 16-bit from DirectSound. As you see below zero values are 128 for 8-bit and 0 for 16-bit. BITS VALUE RANGE ZERO VALUE ---- ----------- ---------- 8-bit 0 to 255 128 16-bit -32768 to +32767 0 Recently, I examined captured audio data sream for both 8 and 16 bits and I notify a strange result. When I capturing 8-bit audio the audio signal is oscilation near the 0x80 (128). It is OK. But, when I capture 16-bit audio PCM; the data is oscilating periodically from 0 to 0xffff. I copy/paste below 22050 KHZ 16-bit MONO audio PCM which is captured from microphone[ there is no high volume noise or sound source while recording]. The PCM data is consist of only air & EM noise. But there are peaks near the 0xFFFF, it is not normal. What may cause to this high amplitude audio peaks. I tried this with two different SoundBlaster but nothing has changed. What may offer you. Thanks and best regard. ff f0 (peak) 00 14 00 1e ff eb (peak) 00 16 00 2c ff f8 (peak) 00 1a ff fe (peak) 00 11 00 07 ff e4 (peak) 00 13 00 04 ff ea (peak) 00 0c 00 40 00 2d 00 15 00 15 00 08 00 1b 00 0c 00 0e 00 1d ff ff (peak)
-
using externally defined function pointersI have not applied yet but I am sure it will work. Thanks for your clear explanation.
-
using externally defined function pointersDear Programmers, I am working on an MFC/Dialog based project. I defined a function pointer in a class's header file as a static like below; ... typedef BOOL (WINAPI *blTagHCWDOGEnable)(DWORD IN_dwSecTime); static blTagHCWDOGEnable blHCWDOGEnable; ... Then I initialised this function pointer from a dll with ordinary function (LoadLibrary(...) , GetProcAddress(...)) Everything is working OK in this class. I am able to use this function but when I try to use this function from another class I am encountering errors. As if something modifying content of function pointer and it is equaling to NULL. What may cause this? Thanks and best regards
-
how to load image and detect greylevel for each pixel?If you want to make advanced image processing application; - First use DirectDraw to proceed display images. - Learn .jpeg, .bmp file format - Learn .bmp, .jpeg file compression decompression. ICImageCompress(...) and ICIamgeDecompress(...) defined vfw.h will be helpful
-
SetSystemCursor in VC++Use following codes //... Set Your Cursor SetCapture(); SetCursor(AfxGetApp()->LoadCursor(IDC_APPSTARTING)); //... Restore to old ReleaseCapture(); SetCursor(AfxGetApp()->LoadCursor(IDC_ARROW));
-
Dialog BMP background w/o MFCMove your background blitting codes to OnEraseBkgnd(...)
-
Saving JPEG FileThere are lots of good examples on www.morgan-multimedia.com
-
Saving to .jpg FileThe image data on clipboard must be uncompressed DIB format. First try to save image in *.bmp format. Then use ICImageCompress API to compress .bmp to .jpeg