15,892,768 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Abhineet Ayan Verma (Top 25 by date)
Abhineet Ayan Verma
26-Sep-12 1:05am
View
Yeah I have checked...its 0 (NULL).
Abhineet Ayan Verma
20-Sep-12 9:21am
View
I have updated the question along with your anti-side effect advice :-) Is that what you suggested?
Abhineet Ayan Verma
20-Sep-12 9:17am
View
Thanks mate...Appreciated
Abhineet Ayan Verma
20-Sep-12 9:17am
View
Deleted
Thanks mate.
Abhineet Ayan Verma
20-Sep-12 8:33am
View
I meant no disrespect if I have caused any. Closing the PREDEFINED was my bad which I have already corrected in my current code. The main problem is:
1. The code works fine with Vista x86 and Win7 x64 but fails on XP x86 ( havent' checked on x64).
2. Works good when deleting in HKLM with keys having more subkeys but fails with ERROR 87 when hKey carries HKCR.
I have cross-checked the NULL-TERMINATION in lpszSub and closure of SubKey Handle but still it fails. I have no clue why this is happening. This is weird.
Abhineet Ayan Verma
20-Sep-12 7:43am
View
Yeah, I know the API but I want to do it recursively myself. Its always nice to see your own code working good rather than any API :-)
Abhineet Ayan Verma
20-Sep-12 7:22am
View
Anyways I have checked with the solution you provided and it is still same. Also, sometimes the key is there and the "lRet" returns ERROR_FILE_NOT_FOUND but when I open "REGEDIT" and open the respective key, the code finds the key and deletes it successfully. Any ideas????
Abhineet Ayan Verma
20-Sep-12 7:19am
View
@Jochen- Are you serious???? First of all, the question is entirely different. Secondly, I have already mentioned in my question that "hKey is the HANDLE to PREDEFINED ROOT KEY such as HKCR/HKLM/etc" and as quoted in MSDN - "http://msdn.microsoft.com/en-us/library/windows/desktop/ms724897(v=vs.85).aspx" ( See the <phkResult> ), I do not think the hKey closure would cause anything like this in my code.
Abhineet Ayan Verma
10-Sep-12 4:43am
View
Thanks for the links but I dont have any problem reading or editing registry keys. I want to have file which holds all the information about the registry keys and files and folders I want to modify. This file can be modified like adding a new value or deleting an existing one without touching my code. So, I want a starter on this topic.
Abhineet Ayan Verma
7-Mar-12 9:34am
View
I cant think of any API for creating session-id and i dont have any idea how to keep a timer going on. Help me .
Abhineet Ayan Verma
1-Mar-12 10:49am
View
Thanks man :-)
Abhineet Ayan Verma
1-Mar-12 9:31am
View
But what if the data is 500mb or more. I cant allocate that much, that would not be good.
Abhineet Ayan Verma
1-Mar-12 8:43am
View
Thanks a lot. Would you please give me some idea on: Follow the code below:
<pre lang="c++">
do
{
dwRecv = recv(SockAccept, pHeader, sizeof(MSG_HEADER), NULL) ;
if(dwRecv == SOCKET_ERROR)
{
printf("Main:: recv Failed: %d\n", WSAGetLastError()) ;
break ;
}
}while(dwRecv > 0) ;</pre>
Now if I allocate a buffer to read rest of the data, how can I set the buffer in recv in place of pHeader? And is there any solution for large data, so that I can do in recv-allocate-recv loop???
Abhineet Ayan Verma
1-Mar-12 7:47am
View
Can you please give me some code example. Do I have to define two structs with same members at both Client-Server???
Abhineet Ayan Verma
29-Feb-12 5:28am
View
Authentication for Client Credentials like Username and Password.
Abhineet Ayan Verma
29-Feb-12 1:01am
View
Can you give me the link to some example or provide a sample here?
Abhineet Ayan Verma
21-Feb-12 4:12am
View
Post a snippet of your code to make it more clear.
Abhineet Ayan Verma
20-Feb-12 1:58am
View
Thanks Albert Holguin, I am already using the CreateEvent Method but was stuck in the logic as to when call the SetEvent as I am having a thread pool. I got the solution by using InterlockedIncrement and InterlockedDecrement. Thanks anyways for your efforts.
Abhineet Ayan Verma
20-Feb-12 1:21am
View
No, my application is not .Net. Its WinAPI Win32 C.
Abhineet Ayan Verma
20-Feb-12 0:02am
View
I am using QueueUserWorkItem to create multiple threads, so cant use WaitForMultipleObjects as it needs an array of Handles in its second parameter.
Abhineet Ayan Verma
17-Feb-12 5:53am
View
Thanks man, Thanks for your great help.
Abhineet Ayan Verma
17-Feb-12 4:21am
View
I have not submitted the whole code as it is long. What you have pointed is all implemented in my Code. Can you please answer as to what is the problem with my QueueUserWorkItem Method? It is a Bool value and it is returning 1 but even then it is not calling the function "MyThreadProc" and goes to next line in Main itself.
Abhineet Ayan Verma
17-Feb-12 2:18am
View
Post the code where it crashes...Cant help just by looking at the Log.
Abhineet Ayan Verma
17-Feb-12 2:14am
View
Unicode is best man. Why do you want to go for Non-Unicode?????
Abhineet Ayan Verma
17-Feb-12 1:58am
View
Can you post the exact Error message you are getting. Generally this happens if you are using buffer memory and write past its boundary.
Show More