|
I don't know where this came from, but it needs correcting before you start. The terms Class, Int, Public and Void are all incorrectly spelled. The correct forms are class , int , public and void ; all lower case. Also the class definition is incorrect. You have Class bit queue , but class names are only one word. You also name the constructor Bitqueue , which may or may not match the correct class name. So there is really a lot to learn before you can venture into trying to solve this question.
|
|
|
|
|
You can help me gird line opengl cli I got it
|
|
|
|
|
Is it a question or an assertion?
|
|
|
|
|
|
|
What code?
|
|
|
|
|
|
|
|
SADEGH2077 wrote: yes
|
|
|
|
|
How do I project OpenGLApplication With cli I write
|
|
|
|
|
|
If you're looking for someone to write your code for you, that's not going to happen here.
|
|
|
|
|
Forget the code, I'd be more impressed with someone that could understand just what it is he's saying. It's like a condensed version of abbreviated shorthand.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
It's so obtuse that, were in a bad mood, I'd start to flag every post as trolling.
|
|
|
|
|
|
Hello
I'm looking for How to deny usb(cd, floppy, portable hard drive, blu ray...) read and write based on vs2019.
File, Code, Class, anyone is ok.
Development on Windows Drive Kit or just VS2019, contact on filter driver i do not know which one suitable method on me.
plz Help me.....
|
|
|
|
|
Are you wanting this "denial" to happen only while your program is running, or all the time (service, or maybe something running in ring 1 or 2)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I really really appreciated your opinion.
I want to deny media device when running my program.
Course of, no one should be able to kill my program.
Making my program unkillable is also a problem, but I want the media devices to be inaccessible when my program is running.
I would wait your answer once again.
modified 27-Jul-20 23:00pm.
|
|
|
|
|
There's already policies in place that take care of that. You don't have to write a single line of code.
Google for "group policy disable usb write".
|
|
|
|
|
Thank you for answer.
However, I think that way, if I log in as an administrator, it's all through.
I have to program to prevent all situations.
Please tell me, if you have any other opinion.
Thank you.
|
|
|
|
|
If you log in as admin, no it isn't all through. It's a machine policy.
As an admin, if you write your app as a service, I can just kill the process.
The ONLY way you're going to do this with code is writing a device driver you inject into the USB chain. Do not ask me how to do that. I have no idea.
|
|
|
|
|
It was a big hint to me.
I don't know if I can....
Thank you.
|
|
|
|
|
I have the following code:
CRegKey reg;
CString sData;
CByteArray arrByte;
ULONG nLength = 0;
if (ERROR_SUCCESS == reg.Open(HKEY_CURRENT_USER, sKeyName, KEY_READ) &&
ERROR_SUCCESS == reg.QueryBinaryValue(sValueName, arrByte.GetData(), &nLength))
{
sData = CString((LPCTSTR)arrByte.GetData(), arrByte.GetSize());
}
the code is running on sData = ...
nLength has 10 value, sData is empty, arrByte has 0 size ... what I am missing here ? Of course, in that registry location I have data ...
|
|
|
|
|