16,002,061 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 .NET 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 Laurie Stearn (Top 12 by date)
Laurie Stearn
14-Dec-15 9:20am
View
@Jochen Great! I think we can also use this:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms680600(v=vs.85).aspx
Laurie Stearn
13-Dec-15 19:35pm
View
Gotcha now. Via Google there's a bit of variation:
We get -3FFFFFCD from here: https://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html
The idea was great here but didn't work for negative numbers:
http://www.codeproject.com/Articles/6503/An-NTSTATUS-lookup-application
Laurie Stearn
13-Dec-15 16:48pm
View
The whole shebang is here:
https://github.com/lmstearn/CreateLargeDir
Go easy please, the code is well, pretty gross. :P
Laurie Stearn
13-Dec-15 8:58am
View
The first one on Google? Or is that wrong?
http://www.binaryhexconverter.com/decimal-to-hex-converter
Laurie Stearn
13-Dec-15 7:53am
View
ntStatus = -1073741773 = 0XFF5C28F7, hdlNTOut is 0 so we are in nadaland. Hmmm, what happened to NT_ERROR?
http://rogerkar.blogspot.com.au/2009/06/nterror-ntsuccess-identifier-not-found.html
Is there a subset of NTstatus somewhere?
Laurie Stearn
13-Dec-15 7:16am
View
Thank_You for reading this. Modified the code in the question by adding a routine. Hope it helps for readability. But hdlNTOut is still zero. And there is a problem with the typedef reported here (see comment in above typedef):
http://stackoverflow.com/questions/34248470/typedef-variables-for-global-use/34248820#34248820
Laurie Stearn
11-Dec-15 5:51am
View
Gah- knew there was something fishy about it. Joy! Originally spooked by this routine in driver binaries as obsolete:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff561934(v=vs.85).aspx
which "should be replaced by RtlUnicodeStringInit". Got the names messed up. No such statement at the link you provided though.
Laurie Stearn
11-Dec-15 5:42am
View
Absolutely. But in the IDE I'm in the habit of becoming too reliant on the autos. :)
Laurie Stearn
17-Nov-15 5:42am
View
Ah yes I see your point now. I can't believe this was written in 1993, but there you go, it still applies:
https://msdn.microsoft.com/en-us/library/ms810627.aspx
Nice diagrams here
http://www2.hawaii.edu/~walbritt/ics212/examples/HeapStack.htm
This stuff is not for the faint hearted. Will have to learn about Linked Lists then, but I fear it's going to be more than five minutes!
http://www.learn-c.org/en/Linked_lists
Laurie Stearn
16-Nov-15 23:05pm
View
Thanks for the time out to reply Sergey. I guess I should have mentioned this is part of an exercise to Program that can create a long Path:
http://stackoverflow.com/questions/31858373/program-to-create-and-move-a-pathname-with-more-than-260-characters-in-windows
so I'll be wanting to touch the limits. Without being too bullish, something like 1000 * 1000 * Max_Path won't topple the stack?
That's an interesting point on fragmentation: doesn't the free() function work as expected? I always assumed Windows employed routines to defrag it's own heap on a regular basis. Found this
https://bitsum.com/virtual_memory_facts_and_memory_optimizer_scams.php interesting and illustrates your point rather well.
Laurie Stearn
16-Nov-15 22:28pm
View
Yes thanks, that's an idea. I read your tutorial, great. It's probably a little beyond the scope of my abilities to directly apply that here. Do you recommend any code samples that delve a little deeper?
Laurie Stearn
10-Oct-15 0:23am
View
My attempt at a C version of this method failed. There was a solution, however.
http://stackoverflow.com/questions/33018732/could-not-find-path-specified-createdirectoryw/33050214#33050214
@nvtkrishna: Have you tested this for very long path strings? Once created, these paths may not be easy to remove.
Show More