c - Converting Functions Windows API -


just need help, wondering how convert following

heapalloc rtlcreateheap. code is

   #define thing2 1048    byte *firstheap;    firstheap= heapalloc(getprocessheap(), 0, sizeof(thing2));    //do stuff firstheap    heapfree(getprocessheap(), 0, firstheap); 

writefile ntwritefile

  handle handletofile = null;   dword      oflen;   dword zeroed = 0;   writefile(handletofile, firstheap, oflen, &zeroed, null);   //do other stuff   closehandle(handletofile); 

i doing own personal education. appreciated. thanks!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -