+ Reply to Thread
Results 1 to 2 of 2

Thread: Is ZeroMemory Win32 API function?

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    2

    Question Is ZeroMemory Win32 API function?

    Hi there,

    I was just wondering if ZeroMemory is Win32 API function? I read somewhere that it's a macro.

    -Ayden

  2. #2
    Junior Member
    Join Date
    Dec 2011
    Posts
    2
    Hello Ayden,

    ZeroMemory is defined in WINBASE.H as #define ZeroMemory RtlZeroMemory. RtlZeroMemory() is defined in WINNT.H as #define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length)). As you can see ZeroMemory is a macro that eventually calls memset function.

    Bruce

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts