阅读:1713回复:3
sprintf对应着RtlXXX?
strcpy对应着RtlCopyMemory函数,那么sprintf对应着什么?
|
|
|
沙发#
发布于:2002-04-28 09:55
strcpy -> _strcpy
sprintf -> _sprintf |
|
|
板凳#
发布于:2005-07-01 10:19
呵呵。我也想知道。
ring0里可以直接用sprintf,对应什么就不清楚了。 看一下ntddk.h的代码,有如下定义: #define RtlEqualMemory(Destination,Source,Length) (!memcmp((Destination),(Source),(Length))) #define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length)) #define RtlCopyMemory(Destination,Source,Length) memcpy((Destination),(Source),(Length)) #define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length)) #define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length)) |
|
|
驱动老牛
![]() |
地板#
发布于:2005-07-01 17:53
我来告诉你吧
NTSTATUS RtlStringCchPrintfExW( OUT LPWSTR pszDest OPTIONAL, IN size_t cchDest, OUT LPWSTR* ppszDestEnd OPTIONAL, OUT size_t* pcchRemaining OPTIONAL, IN DWORD dwFlags, IN LPCWSTR pszFormat OPTIONAL, ... ); NTSTATUS RtlStringCchPrintfExA( OUT LPSTR pszDest OPTIONAL, IN size_t cchDest, OUT LPSTR* ppszDestEnd OPTIONAL, OUT size_t* pcchRemaining OPTIONAL, IN DWORD dwFlags, IN LPCSTR pszFormat OPTIONAL, ... ); 等等等等等。很多。 |
|