Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
For Binary Buffers see the DllBinaryServices helper function.
Hopefully this untested and undebugged code sample will help you get started.
// Verify that the argument is a binary buffer. // (Using the first argument In this example.) If ( lpvvArg[0].inittype & VARTYPE_BINARY ) { LONG_PTR lSize; LONG_PTR lResult = 0; BYTE * pData = NULL; // Get the size of the binary buffer In bytes. lSize = lpViperStruct->lpfnDllBinaryServices(lpViperStruct->hBatData, lpvvArg[0].x, 0, 5); // Get a pointer To the buffer data. If ( lSize > 0 ) { lResult = lpViperStruct->lpfnDllBinaryServices(lpViperStruct->hBatData, lpvvArg[0].x, 0, 3); } // After checking For errors do whatever with the data. If ( lResult > 0 ) pData = (BYTE *) lResult; }
Article ID: W17516
Filename: Working with Binary Buffers.txt
File Created: 2012:11:26:09:50:24
Last Updated: 2012:11:26:09:50:24