Thanks Gary. I found RtlStringCbCopy useful.
–Harsha
xxxxx@seagate.com wrote:
Damn Scott, Matt, David and I welcome you to the honorable Hall of
Curmudgeons.
Besides which, once he figures out how to type, that C/C++ is case
sensitive, and that NTDDK.H is for building kernel components, he/she/it
really needs to realize that a blind copy into an IRP buffer is best done
using the safe string functions such as RtlStringCbCopy.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Scott Noone
Sent: Tuesday, April 18, 2006 10:28 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Need help using rtlcopystring function.
Screw Occam…I say that it’s a compiler bug**
Not to be an ass, but really…This has nothing to do with writing drivers
or even the DDK. I’m thinkin’ that should be able to figure this one out
in
less time than it would take to post to the group (Hint: It might have
something to do with a PSTRING not being a PCHAR)
Regards,
-scott
**Yes, I’m being sarcastic
–
Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com
“Harsha Inamdar” wrote in message
news:xxxxx@ntdev…
Hi,
I am using rtlcopystring function to copy a string value to
pIrp->AssociatedIrp.SystemBuffer.
char str[20] = “USA”;
rtlcopystring((char*) pIrp->AssociatedIrp.SystemBuffer, str);
I have included ntddk.h in my program, but I am getting error as "
‘rtlcopystring’ undefined; assuming extern returning int".
Please advise.
Thanks,
Harsha
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just
2¢/min
with Yahoo! Messenger with Voice.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.