All pastes #611296 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-09 21:16 UTC
rendered paste body
lbpParams.dwFunctionID = 0x33;
            lbpParams.lpInputParameters = System.Text.ASCIIEncoding.ASCII.GetBytes(szCmd);
            lbpParams.lpOutputParameters = lpOut;
            int sizOf = Marshal.SizeOf(lbpParams);
            IntPtr ptr = Marshal.AllocHGlobal(sizOf);
            Marshal.StructureToPtr(lbpParams, ptr, true)